diff --git a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/exports/Get-AzDeidService.ps1 b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/exports/Get-AzDeidService.ps1 index ee50d3a2b7da..a8b55d24dfdd 100644 --- a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/exports/Get-AzDeidService.ps1 +++ b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/exports/Get-AzDeidService.ps1 @@ -134,6 +134,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -158,8 +166,6 @@ begin { List1 = 'Az.HealthDataAIServices.private\Get-AzDeidService_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -173,6 +179,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/exports/New-AzDeidService.ps1 b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/exports/New-AzDeidService.ps1 index ef9510a6c36e..8578da782238 100644 --- a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/exports/New-AzDeidService.ps1 +++ b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/exports/New-AzDeidService.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a DeidService +Create a DeidService .Description -create a DeidService +Create a DeidService .Example New-AzDeidService -Name myHealthDeidService -ResourceGroupName azpwsh-test-rg -Location eastus2 -EnableSystemAssignedIdentity -PublicNetworkAccess "Disabled" .Example @@ -170,6 +170,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -193,8 +201,6 @@ begin { CreateViaJsonString = 'Az.HealthDataAIServices.private\New-AzDeidService_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -208,6 +214,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/exports/ProxyCmdletDefinitions.ps1 index 289a955bf3f9..5851a8f5878a 100644 --- a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -134,6 +134,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -158,8 +166,6 @@ begin { List1 = 'Az.HealthDataAIServices.private\Get-AzDeidService_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -173,6 +179,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -218,9 +227,9 @@ end { <# .Synopsis -create a DeidService +Create a DeidService .Description -create a DeidService +Create a DeidService .Example New-AzDeidService -Name myHealthDeidService -ResourceGroupName azpwsh-test-rg -Location eastus2 -EnableSystemAssignedIdentity -PublicNetworkAccess "Disabled" .Example @@ -372,6 +381,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -395,8 +412,6 @@ begin { CreateViaJsonString = 'Az.HealthDataAIServices.private\New-AzDeidService_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -410,6 +425,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -586,6 +604,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -608,8 +634,6 @@ begin { DeleteViaIdentity = 'Az.HealthDataAIServices.private\Remove-AzDeidService_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -623,6 +647,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -668,9 +695,9 @@ end { <# .Synopsis -update a DeidService +Update a DeidService .Description -update a DeidService +Update a DeidService .Example Update-AzDeidService -Name myHealthDeidService -ResourceGroupName azpwsh-test-rg -EnableSystemAssignedIdentity $true .Example @@ -823,6 +850,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -845,8 +880,6 @@ begin { UpdateViaIdentityExpanded = 'Az.HealthDataAIServices.private\Update-AzDeidService_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -860,6 +893,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/exports/Remove-AzDeidService.ps1 b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/exports/Remove-AzDeidService.ps1 index 48fd5e77b035..b5ab35c7967b 100644 --- a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/exports/Remove-AzDeidService.ps1 +++ b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/exports/Remove-AzDeidService.ps1 @@ -147,6 +147,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -169,8 +177,6 @@ begin { DeleteViaIdentity = 'Az.HealthDataAIServices.private\Remove-AzDeidService_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -184,6 +190,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/exports/Update-AzDeidService.ps1 b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/exports/Update-AzDeidService.ps1 index 673ee8d88a67..2d09b0de4fd8 100644 --- a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/exports/Update-AzDeidService.ps1 +++ b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/exports/Update-AzDeidService.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update a DeidService +Update a DeidService .Description -update a DeidService +Update a DeidService .Example Update-AzDeidService -Name myHealthDeidService -ResourceGroupName azpwsh-test-rg -EnableSystemAssignedIdentity $true .Example @@ -171,6 +171,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -193,8 +201,6 @@ begin { UpdateViaIdentityExpanded = 'Az.HealthDataAIServices.private\Update-AzDeidService_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -208,6 +214,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/api/HealthDataAiServices.cs b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/api/HealthDataAiServices.cs index 0ed427b9a49a..6d62f44c12d3 100644 --- a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/api/HealthDataAiServices.cs +++ b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/api/HealthDataAiServices.cs @@ -334,13 +334,13 @@ public partial class HealthDataAiServices global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -488,13 +488,13 @@ public partial class HealthDataAiServices global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -757,13 +757,13 @@ public partial class HealthDataAiServices global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); @@ -2170,13 +2170,13 @@ public partial class HealthDataAiServices global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); @@ -2325,13 +2325,13 @@ public partial class HealthDataAiServices global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); @@ -3102,13 +3102,13 @@ public partial class HealthDataAiServices global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -3256,13 +3256,13 @@ public partial class HealthDataAiServices global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -3533,13 +3533,13 @@ public partial class HealthDataAiServices global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); diff --git a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/api/Models/ComponentsQjfoe3SchemasManagedserviceidentityupdatePropertiesUserassignedidentitiesAdditionalproperties.cs b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/api/Models/ComponentsQjfoe3SchemasManagedserviceidentityupdatePropertiesUserassignedidentitiesAdditionalproperties.cs index a852fc3c1dd0..0bd22ccd2dfc 100644 --- a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/api/Models/ComponentsQjfoe3SchemasManagedserviceidentityupdatePropertiesUserassignedidentitiesAdditionalproperties.cs +++ b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/api/Models/ComponentsQjfoe3SchemasManagedserviceidentityupdatePropertiesUserassignedidentitiesAdditionalproperties.cs @@ -23,10 +23,10 @@ public partial class ComponentsQjfoe3SchemasManagedserviceidentityupdateProperti public string ClientId { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IUserAssignedIdentityInternal)__userAssignedIdentity).ClientId; } /// Internal Acessors for ClientId - string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IUserAssignedIdentityInternal.ClientId { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IUserAssignedIdentityInternal)__userAssignedIdentity).ClientId; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IUserAssignedIdentityInternal)__userAssignedIdentity).ClientId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IUserAssignedIdentityInternal.ClientId { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IUserAssignedIdentityInternal)__userAssignedIdentity).ClientId; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IUserAssignedIdentityInternal)__userAssignedIdentity).ClientId = value ?? null; } /// Internal Acessors for PrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IUserAssignedIdentityInternal.PrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IUserAssignedIdentityInternal)__userAssignedIdentity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IUserAssignedIdentityInternal)__userAssignedIdentity).PrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IUserAssignedIdentityInternal.PrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IUserAssignedIdentityInternal)__userAssignedIdentity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IUserAssignedIdentityInternal)__userAssignedIdentity).PrincipalId = value ?? null; } /// The principal ID of the assigned identity. [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inherited)] diff --git a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/api/Models/DeidService.cs b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/api/Models/DeidService.cs index 571a7382cded..596228b8157e 100644 --- a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/api/Models/DeidService.cs +++ b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/api/Models/DeidService.cs @@ -60,40 +60,58 @@ public partial class DeidService : /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ITrackedResourceInternal)__trackedResource).Location = value ; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } /// Internal Acessors for Identity Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IManagedServiceIdentity Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IDeidServiceInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ManagedServiceIdentity()); set { {_identity = value;} } } /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IDeidServiceInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IManagedServiceIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IManagedServiceIdentityInternal)Identity).PrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IDeidServiceInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IManagedServiceIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IManagedServiceIdentityInternal)Identity).PrincipalId = value ?? null; } /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IDeidServiceInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IManagedServiceIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IManagedServiceIdentityInternal)Identity).TenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IDeidServiceInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IManagedServiceIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IManagedServiceIdentityInternal)Identity).TenantId = value ?? null; } /// Internal Acessors for PrivateEndpointConnection - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IDeidServiceInternal.PrivateEndpointConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IDeidServicePropertiesInternal)Property).PrivateEndpointConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IDeidServicePropertiesInternal)Property).PrivateEndpointConnection = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IDeidServiceInternal.PrivateEndpointConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IDeidServicePropertiesInternal)Property).PrivateEndpointConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IDeidServicePropertiesInternal)Property).PrivateEndpointConnection = value ?? null /* arrayOf */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IDeidServiceProperties Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IDeidServiceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.DeidServiceProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IDeidServiceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IDeidServicePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IDeidServicePropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IDeidServiceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IDeidServicePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IDeidServicePropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for ServiceUrl - string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IDeidServiceInternal.ServiceUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IDeidServicePropertiesInternal)Property).ServiceUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IDeidServicePropertiesInternal)Property).ServiceUrl = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IDeidServiceInternal.ServiceUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IDeidServicePropertiesInternal)Property).ServiceUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IDeidServicePropertiesInternal)Property).ServiceUrl = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inherited)] @@ -130,31 +148,31 @@ public partial class DeidService : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__trackedResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inherited)] diff --git a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/api/Models/ErrorResponse.cs b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/api/Models/ErrorResponse.cs index 890ba63a0df3..8400794412b4 100644 --- a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/api/Models/ErrorResponse.cs +++ b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/api/Models/ErrorResponse.cs @@ -40,22 +40,22 @@ public partial class ErrorResponse : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IErrorDetailInternal)Error).Message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IErrorDetailInternal)Error).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IErrorDetailInternal)Error).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IErrorDetailInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IErrorDetailInternal)Error).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IErrorDetailInternal)Error).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IErrorDetailInternal)Error).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for Error Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ErrorDetail()); set { {_error = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IErrorDetailInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IErrorDetailInternal)Error).Message = value ?? null; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IErrorDetailInternal)Error).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IErrorDetailInternal)Error).Target = value ?? null; } /// The error target. [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inlined)] diff --git a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/api/Models/Operation.cs b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/api/Models/Operation.cs index b6d0e2fd54df..6477a1c9c87c 100644 --- a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/api/Models/Operation.cs +++ b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/api/Models/Operation.cs @@ -73,16 +73,16 @@ public partial class Operation : Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IOperationDisplay Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IOperationInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.OperationDisplay()); set { {_display = value;} } } /// Internal Acessors for DisplayDescription - string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IOperationDisplayInternal)Display).Description = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IOperationDisplayInternal)Display).Description = value ?? null; } /// Internal Acessors for DisplayOperation - string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IOperationDisplayInternal)Display).Operation = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IOperationDisplayInternal)Display).Operation = value ?? null; } /// Internal Acessors for DisplayProvider - string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IOperationDisplayInternal)Display).Provider = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IOperationDisplayInternal)Display).Provider = value ?? null; } /// Internal Acessors for DisplayResource - string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IOperationDisplayInternal)Display).Resource = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IOperationDisplayInternal)Display).Resource = value ?? null; } /// Internal Acessors for IsDataAction bool? Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IOperationInternal.IsDataAction { get => this._isDataAction; set { {_isDataAction = value;} } } diff --git a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/api/Models/PrivateEndpointConnection.cs b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/api/Models/PrivateEndpointConnection.cs index 48b14ec39465..19686762902a 100644 --- a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/api/Models/PrivateEndpointConnection.cs +++ b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/api/Models/PrivateEndpointConnection.cs @@ -30,34 +30,52 @@ public partial class PrivateEndpointConnection : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).Id; } /// Internal Acessors for GroupId - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionInternal.GroupId { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionPropertiesInternal)Property).GroupId; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionPropertiesInternal)Property).GroupId = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionInternal.GroupId { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionPropertiesInternal)Property).GroupId; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionPropertiesInternal)Property).GroupId = value ?? null /* arrayOf */; } /// Internal Acessors for PrivateEndpoint - Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpoint Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionInternal.PrivateEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateEndpoint = value; } + Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpoint Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionInternal.PrivateEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateEndpoint = value ?? null /* model class */; } /// Internal Acessors for PrivateEndpointId - string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionInternal.PrivateEndpointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateEndpointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateEndpointId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionInternal.PrivateEndpointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateEndpointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateEndpointId = value ?? null; } /// Internal Acessors for PrivateLinkServiceConnectionState - Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateLinkServiceConnectionState Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionInternal.PrivateLinkServiceConnectionState { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateLinkServiceConnectionState; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateLinkServiceConnectionState = value; } + Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateLinkServiceConnectionState Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionInternal.PrivateLinkServiceConnectionState { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateLinkServiceConnectionState; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateLinkServiceConnectionState = value ?? null /* model class */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionProperties Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.PrivateEndpointConnectionProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inherited)] @@ -98,31 +116,31 @@ public partial class PrivateEndpointConnection : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" diff --git a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/api/Models/PrivateEndpointConnectionProperties.cs b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/api/Models/PrivateEndpointConnectionProperties.cs index ebcf1e9f41c9..89d56190c6c7 100644 --- a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/api/Models/PrivateEndpointConnectionProperties.cs +++ b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/api/Models/PrivateEndpointConnectionProperties.cs @@ -27,7 +27,7 @@ public partial class PrivateEndpointConnectionProperties : Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpoint Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionPropertiesInternal.PrivateEndpoint { get => (this._privateEndpoint = this._privateEndpoint ?? new Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.PrivateEndpoint()); set { {_privateEndpoint = value;} } } /// Internal Acessors for PrivateEndpointId - string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionPropertiesInternal.PrivateEndpointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointInternal)PrivateEndpoint).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointInternal)PrivateEndpoint).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionPropertiesInternal.PrivateEndpointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointInternal)PrivateEndpoint).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointInternal)PrivateEndpoint).Id = value ?? null; } /// Internal Acessors for PrivateLinkServiceConnectionState Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateLinkServiceConnectionState Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionPropertiesInternal.PrivateLinkServiceConnectionState { get => (this._privateLinkServiceConnectionState = this._privateLinkServiceConnectionState ?? new Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.PrivateLinkServiceConnectionState()); set { {_privateLinkServiceConnectionState = value;} } } diff --git a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/api/Models/PrivateEndpointConnectionResource.cs b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/api/Models/PrivateEndpointConnectionResource.cs index 413eddb399f7..78d402116de1 100644 --- a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/api/Models/PrivateEndpointConnectionResource.cs +++ b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/api/Models/PrivateEndpointConnectionResource.cs @@ -30,34 +30,52 @@ public partial class PrivateEndpointConnectionResource : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).Id; } /// Internal Acessors for GroupId - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionResourceInternal.GroupId { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionPropertiesInternal)Property).GroupId; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionPropertiesInternal)Property).GroupId = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionResourceInternal.GroupId { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionPropertiesInternal)Property).GroupId; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionPropertiesInternal)Property).GroupId = value ?? null /* arrayOf */; } /// Internal Acessors for PrivateEndpoint - Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpoint Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionResourceInternal.PrivateEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateEndpoint = value; } + Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpoint Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionResourceInternal.PrivateEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateEndpoint = value ?? null /* model class */; } /// Internal Acessors for PrivateEndpointId - string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionResourceInternal.PrivateEndpointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateEndpointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateEndpointId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionResourceInternal.PrivateEndpointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateEndpointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateEndpointId = value ?? null; } /// Internal Acessors for PrivateLinkServiceConnectionState - Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateLinkServiceConnectionState Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionResourceInternal.PrivateLinkServiceConnectionState { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateLinkServiceConnectionState; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateLinkServiceConnectionState = value; } + Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateLinkServiceConnectionState Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionResourceInternal.PrivateLinkServiceConnectionState { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateLinkServiceConnectionState; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateLinkServiceConnectionState = value ?? null /* model class */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionProperties Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.PrivateEndpointConnectionProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateEndpointConnectionPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inherited)] @@ -102,31 +120,31 @@ public partial class PrivateEndpointConnectionResource : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" diff --git a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/api/Models/PrivateLinkResource.cs b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/api/Models/PrivateLinkResource.cs index 75d2d2475c16..24a15b35dc0d 100644 --- a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/api/Models/PrivateLinkResource.cs +++ b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/api/Models/PrivateLinkResource.cs @@ -30,25 +30,43 @@ public partial class PrivateLinkResource : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).Id; } /// Internal Acessors for GroupId - string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateLinkResourceInternal.GroupId { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateLinkResourcePropertiesInternal)Property).GroupId; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateLinkResourcePropertiesInternal)Property).GroupId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateLinkResourceInternal.GroupId { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateLinkResourcePropertiesInternal)Property).GroupId; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateLinkResourcePropertiesInternal)Property).GroupId = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateLinkResourceProperties Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateLinkResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.PrivateLinkResourceProperties()); set { {_property = value;} } } /// Internal Acessors for RequiredMember - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateLinkResourceInternal.RequiredMember { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateLinkResourcePropertiesInternal)Property).RequiredMember; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateLinkResourcePropertiesInternal)Property).RequiredMember = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateLinkResourceInternal.RequiredMember { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateLinkResourcePropertiesInternal)Property).RequiredMember; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IPrivateLinkResourcePropertiesInternal)Property).RequiredMember = value ?? null /* arrayOf */; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inherited)] @@ -73,31 +91,31 @@ public partial class PrivateLinkResource : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" diff --git a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/api/Models/ProxyResource.cs b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/api/Models/ProxyResource.cs index 3c7de212df2e..7930bcf189f3 100644 --- a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/api/Models/ProxyResource.cs +++ b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/api/Models/ProxyResource.cs @@ -28,16 +28,34 @@ public partial class ProxyResource : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).Id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inherited)] @@ -47,31 +65,31 @@ public partial class ProxyResource : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" diff --git a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/api/Models/Resource.cs b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/api/Models/Resource.cs index bd25e5b1af78..ddfe1cf5be63 100644 --- a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/api/Models/Resource.cs +++ b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/api/Models/Resource.cs @@ -33,6 +33,24 @@ public partial class Resource : /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.Type { get => this._type; set { {_type = value;} } } @@ -54,27 +72,27 @@ public partial class Resource : /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// Backing field for property. private string _type; diff --git a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/api/Models/TrackedResource.cs b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/api/Models/TrackedResource.cs index a9d4251d4f59..3de0ad43ffc7 100644 --- a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/api/Models/TrackedResource.cs +++ b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/api/Models/TrackedResource.cs @@ -35,16 +35,34 @@ public partial class TrackedResource : public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inherited)] @@ -54,31 +72,31 @@ public partial class TrackedResource : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.ITrackedResourceTags _tag; @@ -118,7 +136,7 @@ public partial interface ITrackedResource : { /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, diff --git a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/cmdlets/NewAzDeidService_CreateExpanded.cs b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/cmdlets/NewAzDeidService_CreateExpanded.cs index dec4c5250f42..693ffd6cfed0 100644 --- a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/cmdlets/NewAzDeidService_CreateExpanded.cs +++ b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/cmdlets/NewAzDeidService_CreateExpanded.cs @@ -40,18 +40,9 @@ public partial class NewAzDeidService_CreateExpanded : global::System.Management /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// A HealthDataAIServicesProviderHub resource private Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IDeidService _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.DeidService(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.HealthDataAIServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.ParameterCategory.Runtime)] @@ -297,11 +288,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Cmdlets.NewAzDeid /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -643,24 +629,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IDeidService var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/cmdlets/NewAzDeidService_CreateViaJsonFilePath.cs b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/cmdlets/NewAzDeidService_CreateViaJsonFilePath.cs index 31288e5cc820..75e4e6d0ea6d 100644 --- a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/cmdlets/NewAzDeidService_CreateViaJsonFilePath.cs +++ b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/cmdlets/NewAzDeidService_CreateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class NewAzDeidService_CreateViaJsonFilePath : global::System.Man /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.HealthDataAIServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.ParameterCategory.Runtime)] @@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Cmdlets.NewAzDeid /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -583,24 +569,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IDeidService var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/cmdlets/NewAzDeidService_CreateViaJsonString.cs b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/cmdlets/NewAzDeidService_CreateViaJsonString.cs index 818f5a1d3b7e..cd62af6b479b 100644 --- a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/cmdlets/NewAzDeidService_CreateViaJsonString.cs +++ b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/cmdlets/NewAzDeidService_CreateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class NewAzDeidService_CreateViaJsonString : global::System.Manag /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.HealthDataAIServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Cmdlets.NewAzDeid /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -581,24 +567,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IDeidService var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/cmdlets/RemoveAzDeidService_Delete.cs b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/cmdlets/RemoveAzDeidService_Delete.cs index 945ff71e556c..08a2b716d948 100644 --- a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/cmdlets/RemoveAzDeidService_Delete.cs +++ b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/cmdlets/RemoveAzDeidService_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzDeidService_Delete : global::System.Management.Auto /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.HealthDataAIServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Cmdlets.RemoveAzD /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -577,7 +563,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -601,7 +587,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/cmdlets/RemoveAzDeidService_DeleteViaIdentity.cs b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/cmdlets/RemoveAzDeidService_DeleteViaIdentity.cs index a06bef65a1da..09083fe87ce9 100644 --- a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/cmdlets/RemoveAzDeidService_DeleteViaIdentity.cs +++ b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/cmdlets/RemoveAzDeidService_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzDeidService_DeleteViaIdentity : global::System.Mana /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.HealthDataAIServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Cmdlets.RemoveAzD /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -554,7 +540,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -578,7 +564,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/cmdlets/UpdateAzDeidService_UpdateExpanded.cs b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/cmdlets/UpdateAzDeidService_UpdateExpanded.cs index ab67c0d393bb..8250a2c84401 100644 --- a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/cmdlets/UpdateAzDeidService_UpdateExpanded.cs +++ b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/cmdlets/UpdateAzDeidService_UpdateExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzDeidService_UpdateExpanded : global::System.Managem /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// A HealthDataAIServicesProviderHub resource private Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IDeidService _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.DeidService(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.HealthDataAIServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.ParameterCategory.Runtime)] @@ -286,11 +277,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Cmdlets.UpdateAzD /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -659,24 +645,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IDeidService var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/cmdlets/UpdateAzDeidService_UpdateViaIdentityExpanded.cs b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/cmdlets/UpdateAzDeidService_UpdateViaIdentityExpanded.cs index 64f3a7a4f8d2..2536342cbf28 100644 --- a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/cmdlets/UpdateAzDeidService_UpdateViaIdentityExpanded.cs +++ b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/cmdlets/UpdateAzDeidService_UpdateViaIdentityExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzDeidService_UpdateViaIdentityExpanded : global::Sys /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// A HealthDataAIServicesProviderHub resource private Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IDeidService _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.DeidService(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.HealthDataAIServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.ParameterCategory.Runtime)] @@ -243,11 +234,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Cmdlets.UpdateAzD /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -639,24 +625,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Models.IDeidService var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs index 9168ee3127e9..aeea18dee45a 100644 --- a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs @@ -36,14 +36,23 @@ internal class PsHelpInfo public object Role { get; } public string NonTerminatingErrors { get; } + public static string CapitalizeFirstLetter(string text) + { + if (string.IsNullOrEmpty(text)) + return text; + + return char.ToUpper(text[0]) + text.Substring(1); + } + public PsHelpInfo(PSObject helpObject = null) { helpObject = helpObject ?? new PSObject(); CmdletName = helpObject.GetProperty("Name").NullIfEmpty() ?? helpObject.GetNestedProperty("details", "name"); ModuleName = helpObject.GetProperty("ModuleName"); - Synopsis = helpObject.GetProperty("Synopsis"); + Synopsis = CapitalizeFirstLetter(helpObject.GetProperty("Synopsis")); Description = helpObject.GetProperty("description").EmptyIfNull().ToDescriptionText().NullIfEmpty() ?? helpObject.GetNestedProperty("details", "description").EmptyIfNull().ToDescriptionText(); + Description = CapitalizeFirstLetter(Description); AlertText = helpObject.GetNestedProperty("alertSet", "alert").EmptyIfNull().ToDescriptionText(); Category = helpObject.GetProperty("Category"); HasCommonParameters = helpObject.GetProperty("CommonParameters").ToNullableBool(); diff --git a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 47bb8febf372..5e484a2c6c0a 100644 --- a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -216,6 +216,20 @@ public string GetProcessCustomAttributesAtRuntime() {Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)"; } + private string GetLoginVerification() + { + if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) + { + return $@" +{Indent}{Indent}$context = Get-AzContext +{Indent}{Indent}if (-not $context -and -not $testPlayback) {{ +{Indent}{Indent}{Indent}throw ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" +{Indent}{Indent}}} +"; + } + return ""; + } + private string GetTelemetry() { if (!VariantGroup.IsInternal && IsAzure) @@ -248,10 +262,16 @@ public override string ToString() => $@"begin {{ {Indent}{Indent}{Indent}$PSBoundParameters['OutBuffer'] = 1 {Indent}{Indent}}} {Indent}{Indent}$parameterSet = $PSCmdlet.ParameterSetName -{GetTelemetry()} +{Indent}{Indent} +{Indent}{Indent}$testPlayback = $false +{Indent}{Indent}$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object {{ if ($_) {{ $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) }} }} +{GetLoginVerification()}{GetTelemetry()} {GetParameterSetToCmdletMapping()}{GetDefaultValuesStatements()} {GetProcessCustomAttributesAtRuntime()} {Indent}{Indent}$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) +{Indent}{Indent}if ($wrappedCmd -eq $null) {{ +{Indent}{Indent}{Indent}$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) +{Indent}{Indent}}} {Indent}{Indent}$scriptCmd = {{& $wrappedCmd @PSBoundParameters}} {Indent}{Indent}$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) {Indent}{Indent}$steppablePipeline.Begin($PSCmdlet) @@ -295,8 +315,6 @@ private string GetDefaultValuesStatements() if ("SubscriptionId".Equals(parameterName)) { sb.AppendLine($"{Indent}{Indent}if (({variantListString}) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('{parameterName}'){setCondition}) {{"); - sb.AppendLine($"{Indent}{Indent}{Indent}$testPlayback = $false"); - sb.AppendLine($"{Indent}{Indent}{Indent}$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object {{ if ($_) {{ $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.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 {{"); diff --git a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs index c46fb8224552..7a99e4c076f8 100644 --- a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs @@ -49,6 +49,7 @@ internal class VariantGroup public PsHelpInfo HelpInfo { get; } public bool IsGenerated { get; } public bool IsInternal { get; } + public bool IsModelCmdlet { get; } public string OutputFolder { get; } public string FileName { get; } public string FilePath { get; } @@ -83,6 +84,7 @@ public VariantGroup(string moduleName, string cmdletName, Variant[] variants, st HelpInfo = Variants.Select(v => v.HelpInfo).FirstOrDefault() ?? new PsHelpInfo(); IsGenerated = Variants.All(v => v.Attributes.OfType().Any()); IsInternal = isInternal; + IsModelCmdlet = Variants.All(v => v.IsModelCmdlet); OutputFolder = outputFolder; FileName = $"{CmdletName}{(isTest ? ".Tests" : String.Empty)}.ps1"; FilePath = Path.Combine(OutputFolder, FileName); @@ -143,6 +145,7 @@ internal class Variant public Parameter[] Parameters { get; } public Parameter[] CmdletOnlyParameters { get; } public bool IsInternal { get; } + public bool IsModelCmdlet { get; } public bool IsDoNotExport { get; } public bool IsNotSuggestDefaultParameterSet { get; } public string[] Profiles { get; } @@ -165,6 +168,7 @@ public Variant(string cmdletName, string variantName, CommandInfo info, CommandM Parameters = this.ToParameters().OrderBy(p => p.OrderCategory).ThenByDescending(p => p.IsMandatory).ToArray(); IsInternal = Attributes.OfType().Any(); IsDoNotExport = Attributes.OfType().Any(); + IsModelCmdlet = Attributes.OfType().Any(); IsNotSuggestDefaultParameterSet = Attributes.OfType().Any(); CmdletOnlyParameters = Parameters.Where(p => !p.Categories.Any(c => c == ParameterCategory.Azure || c == ParameterCategory.Runtime)).ToArray(); Profiles = Attributes.OfType().SelectMany(pa => pa.Profiles).ToArray(); @@ -388,6 +392,7 @@ public CommentInfo(VariantGroup variantGroup) var helpInfo = variantGroup.HelpInfo; Description = variantGroup.Variants.SelectMany(v => v.Attributes).OfType().FirstOrDefault()?.Description.NullIfEmpty() ?? helpInfo.Description.EmptyIfNull(); + Description = PsHelpInfo.CapitalizeFirstLetter(Description); // If there is no Synopsis, PowerShell may put in the Syntax string as the Synopsis. This seems unintended, so we remove the Synopsis in this situation. var synopsis = helpInfo.Synopsis.EmptyIfNull().Trim().StartsWith(variantGroup.CmdletName) ? String.Empty : helpInfo.Synopsis; Synopsis = synopsis.NullIfEmpty() ?? Description; diff --git a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/runtime/BuildTime/PsAttributes.cs b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/runtime/BuildTime/PsAttributes.cs index f5f4658f911e..58fbf014a790 100644 --- a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/runtime/BuildTime/PsAttributes.cs +++ b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/runtime/BuildTime/PsAttributes.cs @@ -22,6 +22,11 @@ public class DoNotExportAttribute : Attribute { } + [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property)] + public class ModelCmdletAttribute : Attribute + { + } + [AttributeUsage(AttributeTargets.Class)] public class InternalExportAttribute : Attribute { diff --git a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/runtime/Context.cs b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/runtime/Context.cs index 2e2dd64f4eb6..b726a866966a 100644 --- a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/runtime/Context.cs +++ b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Runtime /// The IContext Interface defines the communication mechanism for input customization. /// /// - /// In the context, we will have client, pipeline, PSBoundParamters, default EventListener, Cancellation. + /// In the context, we will have client, pipeline, PSBoundParameters, default EventListener, Cancellation. /// public interface IContext { diff --git a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/runtime/MessageAttribute.cs b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/runtime/MessageAttribute.cs index c033fa0d572b..8c4ef487e500 100644 --- a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/runtime/MessageAttribute.cs +++ b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/runtime/MessageAttribute.cs @@ -16,9 +16,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Runtime public class GenericBreakingChangeAttribute : Attribute { private string _message; - //A dexcription of what the change is about, non mandatory + //A description of what the change is about, non mandatory public string ChangeDescription { get; set; } = null; + //Name of the module that is being deprecated + public string moduleName { get; set; } = String.IsNullOrEmpty(@"") ? @"Az.HealthDataAIServices" : @""; + //The version the change is effective from, non mandatory public string DeprecateByVersion { get; } public string DeprecateByAzVersion { get; } @@ -82,7 +85,7 @@ public void PrintCustomAttributeInfo(Action writeOutput) } writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByAzVersion, this.DeprecateByAzVersion)); - writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.DeprecateByVersion)); + writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.moduleName, this.DeprecateByVersion)); if (OldWay != null && NewWay != null) { @@ -191,11 +194,11 @@ public PreviewMessageAttribute(string message, string estimatedDateOfGa) : this( this.IsEstimatedGaDateSet = true; } } - + public void PrintCustomAttributeInfo(Action writeOutput) { writeOutput(this._message); - + if (IsEstimatedGaDateSet) { writeOutput(string.Format(Resources.PreviewCmdletETAMessage, this.EstimatedGaDate.ToShortDateString())); diff --git a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/runtime/Properties/Resources.resx b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/runtime/Properties/Resources.resx index a08a2e50172b..4ef90b70573d 100644 --- a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/generated/runtime/Properties/Resources.resx +++ b/generated/HealthDataAIServices/HealthDataAIServices.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 version : '{0}' +- The change is expected to take effect in '{0}' from version : '{1}' ```powershell diff --git a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/internal/Get-AzDeidOperation.ps1 b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/internal/Get-AzDeidOperation.ps1 index b61f9ab1c42b..d71334602dad 100644 --- a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/internal/Get-AzDeidOperation.ps1 +++ b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/internal/Get-AzDeidOperation.ps1 @@ -90,11 +90,17 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ List = 'Az.HealthDataAIServices.private\Get-AzDeidOperation_List'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/internal/ProxyCmdletDefinitions.ps1 b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/internal/ProxyCmdletDefinitions.ps1 index b61f9ab1c42b..d71334602dad 100644 --- a/generated/HealthDataAIServices/HealthDataAIServices.Autorest/internal/ProxyCmdletDefinitions.ps1 +++ b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/internal/ProxyCmdletDefinitions.ps1 @@ -90,11 +90,17 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.HealthDataAIServices.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ List = 'Az.HealthDataAIServices.private\Get-AzDeidOperation_List'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/src/HealthcareApis/HealthcareApis.Autorest/resources/README.md b/generated/HealthDataAIServices/HealthDataAIServices.Autorest/resources/README.md similarity index 100% rename from src/HealthcareApis/HealthcareApis.Autorest/resources/README.md rename to generated/HealthDataAIServices/HealthDataAIServices.Autorest/resources/README.md diff --git a/generated/HealthcareApis/HealthcareApis.Autorest/exports/Get-AzHealthcareApisService.ps1 b/generated/HealthcareApis/HealthcareApis.Autorest/exports/Get-AzHealthcareApisService.ps1 index 20797ef4eb2c..196f931b8c87 100644 --- a/generated/HealthcareApis/HealthcareApis.Autorest/exports/Get-AzHealthcareApisService.ps1 +++ b/generated/HealthcareApis/HealthcareApis.Autorest/exports/Get-AzHealthcareApisService.ps1 @@ -146,8 +146,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/HealthcareApis/HealthcareApis.Autorest/exports/Get-AzHealthcareApisWorkspace.ps1 b/generated/HealthcareApis/HealthcareApis.Autorest/exports/Get-AzHealthcareApisWorkspace.ps1 index 86fe1916954b..750c5e78c463 100644 --- a/generated/HealthcareApis/HealthcareApis.Autorest/exports/Get-AzHealthcareApisWorkspace.ps1 +++ b/generated/HealthcareApis/HealthcareApis.Autorest/exports/Get-AzHealthcareApisWorkspace.ps1 @@ -147,8 +147,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/HealthcareApis/HealthcareApis.Autorest/exports/Get-AzHealthcareDicomService.ps1 b/generated/HealthcareApis/HealthcareApis.Autorest/exports/Get-AzHealthcareDicomService.ps1 index 3605d4ce1dd4..32c5b52084e8 100644 --- a/generated/HealthcareApis/HealthcareApis.Autorest/exports/Get-AzHealthcareDicomService.ps1 +++ b/generated/HealthcareApis/HealthcareApis.Autorest/exports/Get-AzHealthcareDicomService.ps1 @@ -173,8 +173,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/HealthcareApis/HealthcareApis.Autorest/exports/Get-AzHealthcareFhirDestination.ps1 b/generated/HealthcareApis/HealthcareApis.Autorest/exports/Get-AzHealthcareFhirDestination.ps1 index 7e3574d5fa79..2ec3fce26a1f 100644 --- a/generated/HealthcareApis/HealthcareApis.Autorest/exports/Get-AzHealthcareFhirDestination.ps1 +++ b/generated/HealthcareApis/HealthcareApis.Autorest/exports/Get-AzHealthcareFhirDestination.ps1 @@ -118,8 +118,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/HealthcareApis/HealthcareApis.Autorest/exports/Get-AzHealthcareFhirService.ps1 b/generated/HealthcareApis/HealthcareApis.Autorest/exports/Get-AzHealthcareFhirService.ps1 index 7688f008992b..166be37456b0 100644 --- a/generated/HealthcareApis/HealthcareApis.Autorest/exports/Get-AzHealthcareFhirService.ps1 +++ b/generated/HealthcareApis/HealthcareApis.Autorest/exports/Get-AzHealthcareFhirService.ps1 @@ -173,8 +173,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/HealthcareApis/HealthcareApis.Autorest/exports/Get-AzHealthcareIotConnector.ps1 b/generated/HealthcareApis/HealthcareApis.Autorest/exports/Get-AzHealthcareIotConnector.ps1 index 9cab8efcf09b..789343725099 100644 --- a/generated/HealthcareApis/HealthcareApis.Autorest/exports/Get-AzHealthcareIotConnector.ps1 +++ b/generated/HealthcareApis/HealthcareApis.Autorest/exports/Get-AzHealthcareIotConnector.ps1 @@ -173,8 +173,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/HealthcareApis/HealthcareApis.Autorest/exports/Get-AzHealthcareIotConnectorFhirDestination.ps1 b/generated/HealthcareApis/HealthcareApis.Autorest/exports/Get-AzHealthcareIotConnectorFhirDestination.ps1 index 957077a10598..d7657ce7e7e4 100644 --- a/generated/HealthcareApis/HealthcareApis.Autorest/exports/Get-AzHealthcareIotConnectorFhirDestination.ps1 +++ b/generated/HealthcareApis/HealthcareApis.Autorest/exports/Get-AzHealthcareIotConnectorFhirDestination.ps1 @@ -196,8 +196,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/HealthcareApis/HealthcareApis.Autorest/exports/New-AzHealthcareApisService.ps1 b/generated/HealthcareApis/HealthcareApis.Autorest/exports/New-AzHealthcareApisService.ps1 index 3b7ec511bd93..1356b38898ea 100644 --- a/generated/HealthcareApis/HealthcareApis.Autorest/exports/New-AzHealthcareApisService.ps1 +++ b/generated/HealthcareApis/HealthcareApis.Autorest/exports/New-AzHealthcareApisService.ps1 @@ -289,8 +289,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/HealthcareApis/HealthcareApis.Autorest/exports/New-AzHealthcareApisWorkspace.ps1 b/generated/HealthcareApis/HealthcareApis.Autorest/exports/New-AzHealthcareApisWorkspace.ps1 index fd9ff4792490..1c72342a60e4 100644 --- a/generated/HealthcareApis/HealthcareApis.Autorest/exports/New-AzHealthcareApisWorkspace.ps1 +++ b/generated/HealthcareApis/HealthcareApis.Autorest/exports/New-AzHealthcareApisWorkspace.ps1 @@ -163,8 +163,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/HealthcareApis/HealthcareApis.Autorest/exports/New-AzHealthcareDicomService.ps1 b/generated/HealthcareApis/HealthcareApis.Autorest/exports/New-AzHealthcareDicomService.ps1 index 71fa60ed1d7d..74a442bb84e7 100644 --- a/generated/HealthcareApis/HealthcareApis.Autorest/exports/New-AzHealthcareDicomService.ps1 +++ b/generated/HealthcareApis/HealthcareApis.Autorest/exports/New-AzHealthcareDicomService.ps1 @@ -222,8 +222,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/HealthcareApis/HealthcareApis.Autorest/exports/New-AzHealthcareFhirService.ps1 b/generated/HealthcareApis/HealthcareApis.Autorest/exports/New-AzHealthcareFhirService.ps1 index f0c66fae7340..5198f8a26991 100644 --- a/generated/HealthcareApis/HealthcareApis.Autorest/exports/New-AzHealthcareFhirService.ps1 +++ b/generated/HealthcareApis/HealthcareApis.Autorest/exports/New-AzHealthcareFhirService.ps1 @@ -344,8 +344,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/HealthcareApis/HealthcareApis.Autorest/exports/New-AzHealthcareIotConnector.ps1 b/generated/HealthcareApis/HealthcareApis.Autorest/exports/New-AzHealthcareIotConnector.ps1 index 203055fe7c86..7ad776a46657 100644 --- a/generated/HealthcareApis/HealthcareApis.Autorest/exports/New-AzHealthcareIotConnector.ps1 +++ b/generated/HealthcareApis/HealthcareApis.Autorest/exports/New-AzHealthcareIotConnector.ps1 @@ -244,8 +244,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/HealthcareApis/HealthcareApis.Autorest/exports/New-AzHealthcareIotConnectorFhirDestination.ps1 b/generated/HealthcareApis/HealthcareApis.Autorest/exports/New-AzHealthcareIotConnectorFhirDestination.ps1 index 8c023c1e65fe..b4518765d75c 100644 --- a/generated/HealthcareApis/HealthcareApis.Autorest/exports/New-AzHealthcareIotConnectorFhirDestination.ps1 +++ b/generated/HealthcareApis/HealthcareApis.Autorest/exports/New-AzHealthcareIotConnectorFhirDestination.ps1 @@ -248,8 +248,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/HealthcareApis/HealthcareApis.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/HealthcareApis/HealthcareApis.Autorest/exports/ProxyCmdletDefinitions.ps1 index 7ffaeeddc928..d23dd5d9c05d 100644 --- a/generated/HealthcareApis/HealthcareApis.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/HealthcareApis/HealthcareApis.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -146,8 +146,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -366,8 +365,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -612,8 +610,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -803,8 +800,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1046,8 +1042,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1315,8 +1310,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1561,8 +1555,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1793,8 +1786,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2024,8 +2016,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2283,8 +2274,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2543,8 +2533,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2831,8 +2820,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3092,8 +3080,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3304,8 +3291,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3564,8 +3550,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3817,8 +3802,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4106,8 +4090,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4501,8 +4484,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4808,8 +4790,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5115,8 +5096,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5476,8 +5456,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5711,8 +5690,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6005,8 +5983,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6422,8 +6399,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6739,8 +6715,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -7060,8 +7035,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/HealthcareApis/HealthcareApis.Autorest/exports/Remove-AzHealthcareApisService.ps1 b/generated/HealthcareApis/HealthcareApis.Autorest/exports/Remove-AzHealthcareApisService.ps1 index 8c192399f4d4..3cb0acc68f23 100644 --- a/generated/HealthcareApis/HealthcareApis.Autorest/exports/Remove-AzHealthcareApisService.ps1 +++ b/generated/HealthcareApis/HealthcareApis.Autorest/exports/Remove-AzHealthcareApisService.ps1 @@ -159,8 +159,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/HealthcareApis/HealthcareApis.Autorest/exports/Remove-AzHealthcareApisWorkspace.ps1 b/generated/HealthcareApis/HealthcareApis.Autorest/exports/Remove-AzHealthcareApisWorkspace.ps1 index 3731d62f4d26..7a3bd9dee5f6 100644 --- a/generated/HealthcareApis/HealthcareApis.Autorest/exports/Remove-AzHealthcareApisWorkspace.ps1 +++ b/generated/HealthcareApis/HealthcareApis.Autorest/exports/Remove-AzHealthcareApisWorkspace.ps1 @@ -160,8 +160,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/HealthcareApis/HealthcareApis.Autorest/exports/Remove-AzHealthcareDicomService.ps1 b/generated/HealthcareApis/HealthcareApis.Autorest/exports/Remove-AzHealthcareDicomService.ps1 index 49caa9a54d0d..afc3e0c667ce 100644 --- a/generated/HealthcareApis/HealthcareApis.Autorest/exports/Remove-AzHealthcareDicomService.ps1 +++ b/generated/HealthcareApis/HealthcareApis.Autorest/exports/Remove-AzHealthcareDicomService.ps1 @@ -188,8 +188,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/HealthcareApis/HealthcareApis.Autorest/exports/Remove-AzHealthcareFhirService.ps1 b/generated/HealthcareApis/HealthcareApis.Autorest/exports/Remove-AzHealthcareFhirService.ps1 index 5745c9d10489..16b29af0fbe2 100644 --- a/generated/HealthcareApis/HealthcareApis.Autorest/exports/Remove-AzHealthcareFhirService.ps1 +++ b/generated/HealthcareApis/HealthcareApis.Autorest/exports/Remove-AzHealthcareFhirService.ps1 @@ -188,8 +188,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/HealthcareApis/HealthcareApis.Autorest/exports/Remove-AzHealthcareIotConnector.ps1 b/generated/HealthcareApis/HealthcareApis.Autorest/exports/Remove-AzHealthcareIotConnector.ps1 index ce77ff8b0ec7..69d6b6bb128e 100644 --- a/generated/HealthcareApis/HealthcareApis.Autorest/exports/Remove-AzHealthcareIotConnector.ps1 +++ b/generated/HealthcareApis/HealthcareApis.Autorest/exports/Remove-AzHealthcareIotConnector.ps1 @@ -188,8 +188,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/HealthcareApis/HealthcareApis.Autorest/exports/Remove-AzHealthcareIotConnectorFhirDestination.ps1 b/generated/HealthcareApis/HealthcareApis.Autorest/exports/Remove-AzHealthcareIotConnectorFhirDestination.ps1 index c884c64213fe..aa744d9270a6 100644 --- a/generated/HealthcareApis/HealthcareApis.Autorest/exports/Remove-AzHealthcareIotConnectorFhirDestination.ps1 +++ b/generated/HealthcareApis/HealthcareApis.Autorest/exports/Remove-AzHealthcareIotConnectorFhirDestination.ps1 @@ -216,8 +216,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/HealthcareApis/HealthcareApis.Autorest/exports/Test-AzHealthcareServiceNameAvailability.ps1 b/generated/HealthcareApis/HealthcareApis.Autorest/exports/Test-AzHealthcareServiceNameAvailability.ps1 index 2b40e552bf92..25412277e86b 100644 --- a/generated/HealthcareApis/HealthcareApis.Autorest/exports/Test-AzHealthcareServiceNameAvailability.ps1 +++ b/generated/HealthcareApis/HealthcareApis.Autorest/exports/Test-AzHealthcareServiceNameAvailability.ps1 @@ -140,8 +140,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/HealthcareApis/HealthcareApis.Autorest/exports/Update-AzHealthcareApisService.ps1 b/generated/HealthcareApis/HealthcareApis.Autorest/exports/Update-AzHealthcareApisService.ps1 index ab5c30d8901a..01bd1fc5007f 100644 --- a/generated/HealthcareApis/HealthcareApis.Autorest/exports/Update-AzHealthcareApisService.ps1 +++ b/generated/HealthcareApis/HealthcareApis.Autorest/exports/Update-AzHealthcareApisService.ps1 @@ -187,8 +187,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/HealthcareApis/HealthcareApis.Autorest/exports/Update-AzHealthcareApisWorkspace.ps1 b/generated/HealthcareApis/HealthcareApis.Autorest/exports/Update-AzHealthcareApisWorkspace.ps1 index 05d0bae18682..554572196577 100644 --- a/generated/HealthcareApis/HealthcareApis.Autorest/exports/Update-AzHealthcareApisWorkspace.ps1 +++ b/generated/HealthcareApis/HealthcareApis.Autorest/exports/Update-AzHealthcareApisWorkspace.ps1 @@ -180,8 +180,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/HealthcareApis/HealthcareApis.Autorest/exports/Update-AzHealthcareDicomService.ps1 b/generated/HealthcareApis/HealthcareApis.Autorest/exports/Update-AzHealthcareDicomService.ps1 index ba77636a58bb..66f56a4a6b3d 100644 --- a/generated/HealthcareApis/HealthcareApis.Autorest/exports/Update-AzHealthcareDicomService.ps1 +++ b/generated/HealthcareApis/HealthcareApis.Autorest/exports/Update-AzHealthcareDicomService.ps1 @@ -216,8 +216,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/HealthcareApis/HealthcareApis.Autorest/exports/Update-AzHealthcareFhirService.ps1 b/generated/HealthcareApis/HealthcareApis.Autorest/exports/Update-AzHealthcareFhirService.ps1 index 0a475cef00ed..cd337745b60f 100644 --- a/generated/HealthcareApis/HealthcareApis.Autorest/exports/Update-AzHealthcareFhirService.ps1 +++ b/generated/HealthcareApis/HealthcareApis.Autorest/exports/Update-AzHealthcareFhirService.ps1 @@ -323,8 +323,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/HealthcareApis/HealthcareApis.Autorest/exports/Update-AzHealthcareIotConnector.ps1 b/generated/HealthcareApis/HealthcareApis.Autorest/exports/Update-AzHealthcareIotConnector.ps1 index 2aa87cef2f6d..9e73fd8451a1 100644 --- a/generated/HealthcareApis/HealthcareApis.Autorest/exports/Update-AzHealthcareIotConnector.ps1 +++ b/generated/HealthcareApis/HealthcareApis.Autorest/exports/Update-AzHealthcareIotConnector.ps1 @@ -234,8 +234,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/HealthcareApis/HealthcareApis.Autorest/exports/Update-AzHealthcareIotConnectorFhirDestination.ps1 b/generated/HealthcareApis/HealthcareApis.Autorest/exports/Update-AzHealthcareIotConnectorFhirDestination.ps1 index 619389217e30..8542939f9a0b 100644 --- a/generated/HealthcareApis/HealthcareApis.Autorest/exports/Update-AzHealthcareIotConnectorFhirDestination.ps1 +++ b/generated/HealthcareApis/HealthcareApis.Autorest/exports/Update-AzHealthcareIotConnectorFhirDestination.ps1 @@ -235,8 +235,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/HealthcareApis/HealthcareApis.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/HealthcareApis/HealthcareApis.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 2a5734c79be5..a4bf2eca9b94 100644 --- a/generated/HealthcareApis/HealthcareApis.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/HealthcareApis/HealthcareApis.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -218,13 +218,12 @@ public string GetProcessCustomAttributesAtRuntime() private string GetLoginVerification() { - if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) + if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) { return $@" {Indent}{Indent}$context = Get-AzContext {Indent}{Indent}if (-not $context -and -not $testPlayback) {{ -{Indent}{Indent}{Indent}Write-Error ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" -{Indent}{Indent}{Indent}exit +{Indent}{Indent}{Indent}throw ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" {Indent}{Indent}}} "; } diff --git a/generated/ImageBuilder/ImageBuilder.Autorest/exports/Get-AzImageBuilderTemplate.ps1 b/generated/ImageBuilder/ImageBuilder.Autorest/exports/Get-AzImageBuilderTemplate.ps1 index bf3405d15456..c4fbdace98d7 100644 --- a/generated/ImageBuilder/ImageBuilder.Autorest/exports/Get-AzImageBuilderTemplate.ps1 +++ b/generated/ImageBuilder/ImageBuilder.Autorest/exports/Get-AzImageBuilderTemplate.ps1 @@ -141,8 +141,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ImageBuilder/ImageBuilder.Autorest/exports/Get-AzImageBuilderTemplateRunOutput.ps1 b/generated/ImageBuilder/ImageBuilder.Autorest/exports/Get-AzImageBuilderTemplateRunOutput.ps1 index 246ad31c5172..83792d8ea93e 100644 --- a/generated/ImageBuilder/ImageBuilder.Autorest/exports/Get-AzImageBuilderTemplateRunOutput.ps1 +++ b/generated/ImageBuilder/ImageBuilder.Autorest/exports/Get-AzImageBuilderTemplateRunOutput.ps1 @@ -160,8 +160,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ImageBuilder/ImageBuilder.Autorest/exports/Get-AzImageBuilderTrigger.ps1 b/generated/ImageBuilder/ImageBuilder.Autorest/exports/Get-AzImageBuilderTrigger.ps1 index 7672fec6bf9e..901f58af1b2c 100644 --- a/generated/ImageBuilder/ImageBuilder.Autorest/exports/Get-AzImageBuilderTrigger.ps1 +++ b/generated/ImageBuilder/ImageBuilder.Autorest/exports/Get-AzImageBuilderTrigger.ps1 @@ -160,8 +160,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ImageBuilder/ImageBuilder.Autorest/exports/New-AzImageBuilderTemplate.ps1 b/generated/ImageBuilder/ImageBuilder.Autorest/exports/New-AzImageBuilderTemplate.ps1 index 0acd8365b486..02c899f507d7 100644 --- a/generated/ImageBuilder/ImageBuilder.Autorest/exports/New-AzImageBuilderTemplate.ps1 +++ b/generated/ImageBuilder/ImageBuilder.Autorest/exports/New-AzImageBuilderTemplate.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a virtual machine image template +Create a virtual machine image template .Description -create a virtual machine image template +Create a virtual machine image template .Example $source = New-AzImageBuilderTemplateSourceObject -Publisher "Canonical" -Offer "UbuntuServer" -Sku "18.04-LTS" -Version "latest" $customizer = New-AzImageBuilderTemplateCustomizerObject -ShellCustomizer -Name "CheckSumCompareShellScript" -ScriptUri "https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript2.sh" -Sha256Checksum "ade4c5214c3c675e92c66e2d067a870c5b81b9844b3de3cc72c49ff36425fc93" @@ -374,8 +374,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ImageBuilder/ImageBuilder.Autorest/exports/New-AzImageBuilderTrigger.ps1 b/generated/ImageBuilder/ImageBuilder.Autorest/exports/New-AzImageBuilderTrigger.ps1 index 2db1696d6c7c..d92ffe278478 100644 --- a/generated/ImageBuilder/ImageBuilder.Autorest/exports/New-AzImageBuilderTrigger.ps1 +++ b/generated/ImageBuilder/ImageBuilder.Autorest/exports/New-AzImageBuilderTrigger.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a trigger for the specified virtual machine image template +Create a trigger for the specified virtual machine image template .Description -create a trigger for the specified virtual machine image template +Create a trigger for the specified virtual machine image template .Example New-AzImageBuilderTrigger -ImageTemplateName azps-ibt-1 -ResourceGroupName azps_test_group_imagebuilder -Name azps-buildertrigger -Kind "SourceImage" @@ -177,8 +177,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ImageBuilder/ImageBuilder.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/ImageBuilder/ImageBuilder.Autorest/exports/ProxyCmdletDefinitions.ps1 index fdb3dac11658..602eaf6a23d4 100644 --- a/generated/ImageBuilder/ImageBuilder.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/ImageBuilder/ImageBuilder.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -160,8 +160,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -374,8 +373,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -607,8 +605,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -696,9 +693,9 @@ end { <# .Synopsis -create a virtual machine image template +Create a virtual machine image template .Description -create a virtual machine image template +Create a virtual machine image template .Example $source = New-AzImageBuilderTemplateSourceObject -Publisher "Canonical" -Offer "UbuntuServer" -Sku "18.04-LTS" -Version "latest" $customizer = New-AzImageBuilderTemplateCustomizerObject -ShellCustomizer -Name "CheckSumCompareShellScript" -ScriptUri "https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript2.sh" -Sha256Checksum "ade4c5214c3c675e92c66e2d067a870c5b81b9844b3de3cc72c49ff36425fc93" @@ -1054,8 +1051,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1142,9 +1138,9 @@ end { <# .Synopsis -create a trigger for the specified virtual machine image template +Create a trigger for the specified virtual machine image template .Description -create a trigger for the specified virtual machine image template +Create a trigger for the specified virtual machine image template .Example New-AzImageBuilderTrigger -ImageTemplateName azps-ibt-1 -ResourceGroupName azps_test_group_imagebuilder -Name azps-buildertrigger -Kind "SourceImage" @@ -1303,8 +1299,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1530,8 +1525,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1776,8 +1770,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1864,9 +1857,9 @@ end { <# .Synopsis -run artifacts from a existing image template +Run artifacts from a existing image template .Description -run artifacts from a existing image template +Run artifacts from a existing image template .Example Start-AzImageBuilderTemplate -Name azps-ibt-1 -ResourceGroupName azps_test_group_imagebuilder .Example @@ -2002,8 +1995,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2227,8 +2219,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ImageBuilder/ImageBuilder.Autorest/exports/Remove-AzImageBuilderTemplate.ps1 b/generated/ImageBuilder/ImageBuilder.Autorest/exports/Remove-AzImageBuilderTemplate.ps1 index ca1261c7870d..3afb092526c3 100644 --- a/generated/ImageBuilder/ImageBuilder.Autorest/exports/Remove-AzImageBuilderTemplate.ps1 +++ b/generated/ImageBuilder/ImageBuilder.Autorest/exports/Remove-AzImageBuilderTemplate.ps1 @@ -154,8 +154,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ImageBuilder/ImageBuilder.Autorest/exports/Remove-AzImageBuilderTrigger.ps1 b/generated/ImageBuilder/ImageBuilder.Autorest/exports/Remove-AzImageBuilderTrigger.ps1 index 56af55e0adf0..eb1b705b9b65 100644 --- a/generated/ImageBuilder/ImageBuilder.Autorest/exports/Remove-AzImageBuilderTrigger.ps1 +++ b/generated/ImageBuilder/ImageBuilder.Autorest/exports/Remove-AzImageBuilderTrigger.ps1 @@ -175,8 +175,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ImageBuilder/ImageBuilder.Autorest/exports/Start-AzImageBuilderTemplate.ps1 b/generated/ImageBuilder/ImageBuilder.Autorest/exports/Start-AzImageBuilderTemplate.ps1 index ea7ee78d7656..753954c51b18 100644 --- a/generated/ImageBuilder/ImageBuilder.Autorest/exports/Start-AzImageBuilderTemplate.ps1 +++ b/generated/ImageBuilder/ImageBuilder.Autorest/exports/Start-AzImageBuilderTemplate.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -run artifacts from a existing image template +Run artifacts from a existing image template .Description -run artifacts from a existing image template +Run artifacts from a existing image template .Example Start-AzImageBuilderTemplate -Name azps-ibt-1 -ResourceGroupName azps_test_group_imagebuilder .Example @@ -154,8 +154,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ImageBuilder/ImageBuilder.Autorest/exports/Stop-AzImageBuilderTemplate.ps1 b/generated/ImageBuilder/ImageBuilder.Autorest/exports/Stop-AzImageBuilderTemplate.ps1 index 22ee8f1d9879..eb5c358c0ab0 100644 --- a/generated/ImageBuilder/ImageBuilder.Autorest/exports/Stop-AzImageBuilderTemplate.ps1 +++ b/generated/ImageBuilder/ImageBuilder.Autorest/exports/Stop-AzImageBuilderTemplate.ps1 @@ -154,8 +154,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ImageBuilder/ImageBuilder.Autorest/generated/api/Models/ImageTemplate.cs b/generated/ImageBuilder/ImageBuilder.Autorest/generated/api/Models/ImageTemplate.cs index 95ade9c31d71..84878548e267 100644 --- a/generated/ImageBuilder/ImageBuilder.Autorest/generated/api/Models/ImageTemplate.cs +++ b/generated/ImageBuilder/ImageBuilder.Autorest/generated/api/Models/ImageTemplate.cs @@ -112,88 +112,88 @@ public partial class ImageTemplate : public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } /// Internal Acessors for ExactStagingResourceGroup - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateInternal.ExactStagingResourceGroup { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).ExactStagingResourceGroup; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).ExactStagingResourceGroup = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateInternal.ExactStagingResourceGroup { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).ExactStagingResourceGroup; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).ExactStagingResourceGroup = value ?? null; } /// Internal Acessors for Identity Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateIdentity Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ImageTemplateIdentity()); set { {_identity = value;} } } /// Internal Acessors for LastRunStatus - Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateLastRunStatus Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateInternal.LastRunStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).LastRunStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).LastRunStatus = value; } + Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateLastRunStatus Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateInternal.LastRunStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).LastRunStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).LastRunStatus = value ?? null /* model class */; } /// Internal Acessors for LastRunStatusEndTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateInternal.LastRunStatusEndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).LastRunStatusEndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).LastRunStatusEndTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateInternal.LastRunStatusEndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).LastRunStatusEndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).LastRunStatusEndTime = value ?? default(global::System.DateTime); } /// Internal Acessors for LastRunStatusMessage - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateInternal.LastRunStatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).LastRunStatusMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).LastRunStatusMessage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateInternal.LastRunStatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).LastRunStatusMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).LastRunStatusMessage = value ?? null; } /// Internal Acessors for LastRunStatusRunState - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateInternal.LastRunStatusRunState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).LastRunStatusRunState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).LastRunStatusRunState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateInternal.LastRunStatusRunState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).LastRunStatusRunState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).LastRunStatusRunState = value ?? null; } /// Internal Acessors for LastRunStatusRunSubState - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateInternal.LastRunStatusRunSubState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).LastRunStatusRunSubState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).LastRunStatusRunSubState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateInternal.LastRunStatusRunSubState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).LastRunStatusRunSubState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).LastRunStatusRunSubState = value ?? null; } /// Internal Acessors for LastRunStatusStartTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateInternal.LastRunStatusStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).LastRunStatusStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).LastRunStatusStartTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateInternal.LastRunStatusStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).LastRunStatusStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).LastRunStatusStartTime = value ?? default(global::System.DateTime); } /// Internal Acessors for Optimize - Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesOptimize Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateInternal.Optimize { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).Optimize; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).Optimize = value; } + Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesOptimize Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateInternal.Optimize { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).Optimize; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).Optimize = value ?? null /* model class */; } /// Internal Acessors for OptimizeVMBoot - Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesOptimizeVMBoot Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateInternal.OptimizeVMBoot { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).OptimizeVMBoot; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).OptimizeVMBoot = value; } + Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesOptimizeVMBoot Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateInternal.OptimizeVMBoot { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).OptimizeVMBoot; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).OptimizeVMBoot = value ?? null /* model class */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateProperties Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ImageTemplateProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningError - Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IProvisioningError Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateInternal.ProvisioningError { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).ProvisioningError; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).ProvisioningError = value; } + Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IProvisioningError Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateInternal.ProvisioningError { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).ProvisioningError; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).ProvisioningError = value ?? null /* model class */; } /// Internal Acessors for ProvisioningErrorCode - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateInternal.ProvisioningErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).ProvisioningErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).ProvisioningErrorCode = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateInternal.ProvisioningErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).ProvisioningErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).ProvisioningErrorCode = value ?? null; } /// Internal Acessors for ProvisioningErrorMessage - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateInternal.ProvisioningErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).ProvisioningErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).ProvisioningErrorMessage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateInternal.ProvisioningErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).ProvisioningErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).ProvisioningErrorMessage = value ?? null; } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for VMProfile - Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateVMProfile Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateInternal.VMProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).VMProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).VMProfile = value; } + Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateVMProfile Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateInternal.VMProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).VMProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).VMProfile = value ?? null /* model class */; } /// Internal Acessors for VMProfileVnetConfig - Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IVirtualNetworkConfig Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateInternal.VMProfileVnetConfig { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).VMProfileVnetConfig; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).VMProfileVnetConfig = value; } + Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IVirtualNetworkConfig Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateInternal.VMProfileVnetConfig { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).VMProfileVnetConfig; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).VMProfileVnetConfig = value ?? null /* model class */; } /// Internal Acessors for Validate - Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesValidate Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateInternal.Validate { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).Validate; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).Validate = value; } + Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesValidate Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateInternal.Validate { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).Validate; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal)Property).Validate = value ?? null /* model class */; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Origin(Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.PropertyOrigin.Inherited)] diff --git a/generated/ImageBuilder/ImageBuilder.Autorest/generated/api/Models/ImageTemplateProperties.cs b/generated/ImageBuilder/ImageBuilder.Autorest/generated/api/Models/ImageTemplateProperties.cs index aa5bd49326ce..76082604480f 100644 --- a/generated/ImageBuilder/ImageBuilder.Autorest/generated/api/Models/ImageTemplateProperties.cs +++ b/generated/ImageBuilder/ImageBuilder.Autorest/generated/api/Models/ImageTemplateProperties.cs @@ -84,34 +84,34 @@ public partial class ImageTemplateProperties : Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateLastRunStatus Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal.LastRunStatus { get => (this._lastRunStatus = this._lastRunStatus ?? new Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ImageTemplateLastRunStatus()); set { {_lastRunStatus = value;} } } /// Internal Acessors for LastRunStatusEndTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal.LastRunStatusEndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateLastRunStatusInternal)LastRunStatus).EndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateLastRunStatusInternal)LastRunStatus).EndTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal.LastRunStatusEndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateLastRunStatusInternal)LastRunStatus).EndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateLastRunStatusInternal)LastRunStatus).EndTime = value ?? default(global::System.DateTime); } /// Internal Acessors for LastRunStatusMessage - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal.LastRunStatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateLastRunStatusInternal)LastRunStatus).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateLastRunStatusInternal)LastRunStatus).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal.LastRunStatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateLastRunStatusInternal)LastRunStatus).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateLastRunStatusInternal)LastRunStatus).Message = value ?? null; } /// Internal Acessors for LastRunStatusRunState - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal.LastRunStatusRunState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateLastRunStatusInternal)LastRunStatus).RunState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateLastRunStatusInternal)LastRunStatus).RunState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal.LastRunStatusRunState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateLastRunStatusInternal)LastRunStatus).RunState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateLastRunStatusInternal)LastRunStatus).RunState = value ?? null; } /// Internal Acessors for LastRunStatusRunSubState - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal.LastRunStatusRunSubState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateLastRunStatusInternal)LastRunStatus).RunSubState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateLastRunStatusInternal)LastRunStatus).RunSubState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal.LastRunStatusRunSubState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateLastRunStatusInternal)LastRunStatus).RunSubState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateLastRunStatusInternal)LastRunStatus).RunSubState = value ?? null; } /// Internal Acessors for LastRunStatusStartTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal.LastRunStatusStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateLastRunStatusInternal)LastRunStatus).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateLastRunStatusInternal)LastRunStatus).StartTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal.LastRunStatusStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateLastRunStatusInternal)LastRunStatus).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateLastRunStatusInternal)LastRunStatus).StartTime = value ?? default(global::System.DateTime); } /// Internal Acessors for Optimize Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesOptimize Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal.Optimize { get => (this._optimize = this._optimize ?? new Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ImageTemplatePropertiesOptimize()); set { {_optimize = value;} } } /// Internal Acessors for OptimizeVMBoot - Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesOptimizeVMBoot Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal.OptimizeVMBoot { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesOptimizeInternal)Optimize).VMBoot; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesOptimizeInternal)Optimize).VMBoot = value; } + Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesOptimizeVMBoot Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal.OptimizeVMBoot { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesOptimizeInternal)Optimize).VMBoot; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesOptimizeInternal)Optimize).VMBoot = value ?? null /* model class */; } /// Internal Acessors for ProvisioningError Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IProvisioningError Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal.ProvisioningError { get => (this._provisioningError = this._provisioningError ?? new Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ProvisioningError()); set { {_provisioningError = value;} } } /// Internal Acessors for ProvisioningErrorCode - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal.ProvisioningErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IProvisioningErrorInternal)ProvisioningError).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IProvisioningErrorInternal)ProvisioningError).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal.ProvisioningErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IProvisioningErrorInternal)ProvisioningError).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IProvisioningErrorInternal)ProvisioningError).Code = value ?? null; } /// Internal Acessors for ProvisioningErrorMessage - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal.ProvisioningErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IProvisioningErrorInternal)ProvisioningError).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IProvisioningErrorInternal)ProvisioningError).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal.ProvisioningErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IProvisioningErrorInternal)ProvisioningError).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IProvisioningErrorInternal)ProvisioningError).Message = value ?? null; } /// Internal Acessors for ProvisioningState string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } @@ -120,7 +120,7 @@ public partial class ImageTemplateProperties : Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateVMProfile Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal.VMProfile { get => (this._vMProfile = this._vMProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ImageTemplateVMProfile()); set { {_vMProfile = value;} } } /// Internal Acessors for VMProfileVnetConfig - Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IVirtualNetworkConfig Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal.VMProfileVnetConfig { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateVMProfileInternal)VMProfile).VnetConfig; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateVMProfileInternal)VMProfile).VnetConfig = value; } + Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IVirtualNetworkConfig Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal.VMProfileVnetConfig { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateVMProfileInternal)VMProfile).VnetConfig; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateVMProfileInternal)VMProfile).VnetConfig = value ?? null /* model class */; } /// Internal Acessors for Validate Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesValidate Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplatePropertiesInternal.Validate { get => (this._validate = this._validate ?? new Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ImageTemplatePropertiesValidate()); set { {_validate = value;} } } diff --git a/generated/ImageBuilder/ImageBuilder.Autorest/generated/api/Models/ProxyResource.cs b/generated/ImageBuilder/ImageBuilder.Autorest/generated/api/Models/ProxyResource.cs index 2732b73e6191..8ecce2994df3 100644 --- a/generated/ImageBuilder/ImageBuilder.Autorest/generated/api/Models/ProxyResource.cs +++ b/generated/ImageBuilder/ImageBuilder.Autorest/generated/api/Models/ProxyResource.cs @@ -27,34 +27,34 @@ public partial class ProxyResource : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).Id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).SystemDataCreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).SystemDataCreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).SystemDataCreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Origin(Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.PropertyOrigin.Inherited)] diff --git a/generated/ImageBuilder/ImageBuilder.Autorest/generated/api/Models/Resource.cs b/generated/ImageBuilder/ImageBuilder.Autorest/generated/api/Models/Resource.cs index 6575be9be9c1..a38bcb959cb5 100644 --- a/generated/ImageBuilder/ImageBuilder.Autorest/generated/api/Models/Resource.cs +++ b/generated/ImageBuilder/ImageBuilder.Autorest/generated/api/Models/Resource.cs @@ -34,22 +34,22 @@ public partial class Resource : Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.SystemData()); set { {_systemData = value;} } } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ISystemDataInternal)SystemData).CreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ISystemDataInternal)SystemData).CreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ISystemDataInternal)SystemData).CreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ISystemDataInternal)SystemData).LastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ISystemDataInternal)SystemData).LastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ISystemDataInternal)SystemData).LastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.Type { get => this._type; set { {_type = value;} } } diff --git a/generated/ImageBuilder/ImageBuilder.Autorest/generated/api/Models/RunOutput.cs b/generated/ImageBuilder/ImageBuilder.Autorest/generated/api/Models/RunOutput.cs index dfe814c1a63e..e7e54f2e1ee4 100644 --- a/generated/ImageBuilder/ImageBuilder.Autorest/generated/api/Models/RunOutput.cs +++ b/generated/ImageBuilder/ImageBuilder.Autorest/generated/api/Models/RunOutput.cs @@ -36,40 +36,40 @@ public partial class RunOutput : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).Id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IRunOutputProperties Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IRunOutputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.RunOutputProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IRunOutputInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IRunOutputPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IRunOutputPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IRunOutputInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IRunOutputPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IRunOutputPropertiesInternal)Property).ProvisioningState = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Origin(Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.PropertyOrigin.Inherited)] diff --git a/generated/ImageBuilder/ImageBuilder.Autorest/generated/api/Models/SourceImageTriggerProperties.cs b/generated/ImageBuilder/ImageBuilder.Autorest/generated/api/Models/SourceImageTriggerProperties.cs index ff7c6330d808..d19efd844675 100644 --- a/generated/ImageBuilder/ImageBuilder.Autorest/generated/api/Models/SourceImageTriggerProperties.cs +++ b/generated/ImageBuilder/ImageBuilder.Autorest/generated/api/Models/SourceImageTriggerProperties.cs @@ -25,19 +25,19 @@ public partial class SourceImageTriggerProperties : public string Kind { get => "SourceImage"; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal)__triggerProperties).Kind = "SourceImage"; } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal)__triggerProperties).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal)__triggerProperties).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal)__triggerProperties).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal)__triggerProperties).ProvisioningState = value ?? null; } /// Internal Acessors for Status - Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerStatus Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal)__triggerProperties).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal)__triggerProperties).Status = value; } + Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerStatus Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal)__triggerProperties).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal)__triggerProperties).Status = value ?? null /* model class */; } /// Internal Acessors for StatusCode - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal.StatusCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal)__triggerProperties).StatusCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal)__triggerProperties).StatusCode = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal.StatusCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal)__triggerProperties).StatusCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal)__triggerProperties).StatusCode = value ?? null; } /// Internal Acessors for StatusMessage - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal.StatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal)__triggerProperties).StatusMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal)__triggerProperties).StatusMessage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal.StatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal)__triggerProperties).StatusMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal)__triggerProperties).StatusMessage = value ?? null; } /// Internal Acessors for StatusTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal.StatusTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal)__triggerProperties).StatusTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal)__triggerProperties).StatusTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal.StatusTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal)__triggerProperties).StatusTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal)__triggerProperties).StatusTime = value ?? default(global::System.DateTime); } /// Provisioning state of the resource [Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Origin(Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.PropertyOrigin.Inherited)] diff --git a/generated/ImageBuilder/ImageBuilder.Autorest/generated/api/Models/TrackedResource.cs b/generated/ImageBuilder/ImageBuilder.Autorest/generated/api/Models/TrackedResource.cs index 79d810b2f2d1..f02e1af91fdf 100644 --- a/generated/ImageBuilder/ImageBuilder.Autorest/generated/api/Models/TrackedResource.cs +++ b/generated/ImageBuilder/ImageBuilder.Autorest/generated/api/Models/TrackedResource.cs @@ -34,34 +34,34 @@ public partial class TrackedResource : public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).SystemDataCreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).SystemDataCreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).SystemDataCreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Origin(Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.PropertyOrigin.Inherited)] diff --git a/generated/ImageBuilder/ImageBuilder.Autorest/generated/api/Models/Trigger.cs b/generated/ImageBuilder/ImageBuilder.Autorest/generated/api/Models/Trigger.cs index 0d32ebcdaae1..484dae00a9b4 100644 --- a/generated/ImageBuilder/ImageBuilder.Autorest/generated/api/Models/Trigger.cs +++ b/generated/ImageBuilder/ImageBuilder.Autorest/generated/api/Models/Trigger.cs @@ -31,52 +31,52 @@ public partial class Trigger : public string Kind { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal)Property).Kind; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal)Property).Kind = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerProperties Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.TriggerProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Status - Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerStatus Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal)Property).Status = value; } + Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerStatus Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal)Property).Status = value ?? null /* model class */; } /// Internal Acessors for StatusCode - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerInternal.StatusCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal)Property).StatusCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal)Property).StatusCode = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerInternal.StatusCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal)Property).StatusCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal)Property).StatusCode = value ?? null; } /// Internal Acessors for StatusMessage - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerInternal.StatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal)Property).StatusMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal)Property).StatusMessage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerInternal.StatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal)Property).StatusMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal)Property).StatusMessage = value ?? null; } /// Internal Acessors for StatusTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerInternal.StatusTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal)Property).StatusTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal)Property).StatusTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerInternal.StatusTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal)Property).StatusTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal)Property).StatusTime = value ?? default(global::System.DateTime); } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Origin(Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.PropertyOrigin.Inherited)] diff --git a/generated/ImageBuilder/ImageBuilder.Autorest/generated/api/Models/TriggerProperties.cs b/generated/ImageBuilder/ImageBuilder.Autorest/generated/api/Models/TriggerProperties.cs index 8294989a1ecc..05892bf52573 100644 --- a/generated/ImageBuilder/ImageBuilder.Autorest/generated/api/Models/TriggerProperties.cs +++ b/generated/ImageBuilder/ImageBuilder.Autorest/generated/api/Models/TriggerProperties.cs @@ -27,13 +27,13 @@ public partial class TriggerProperties : Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerStatus Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal.Status { get => (this._status = this._status ?? new Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.TriggerStatus()); set { {_status = value;} } } /// Internal Acessors for StatusCode - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal.StatusCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerStatusInternal)Status).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerStatusInternal)Status).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal.StatusCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerStatusInternal)Status).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerStatusInternal)Status).Code = value ?? null; } /// Internal Acessors for StatusMessage - string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal.StatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerStatusInternal)Status).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerStatusInternal)Status).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal.StatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerStatusInternal)Status).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerStatusInternal)Status).Message = value ?? null; } /// Internal Acessors for StatusTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal.StatusTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerStatusInternal)Status).Time; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerStatusInternal)Status).Time = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerPropertiesInternal.StatusTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerStatusInternal)Status).Time; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITriggerStatusInternal)Status).Time = value ?? default(global::System.DateTime); } /// Backing field for property. private string _provisioningState; diff --git a/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/NewAzImageBuilderTemplate_CreateExpanded.cs b/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/NewAzImageBuilderTemplate_CreateExpanded.cs index f2fd3a58f67c..cfa7e82e1f00 100644 --- a/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/NewAzImageBuilderTemplate_CreateExpanded.cs +++ b/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/NewAzImageBuilderTemplate_CreateExpanded.cs @@ -41,20 +41,11 @@ public partial class NewAzImageBuilderTemplate_CreateExpanded : global::System.M /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// /// Image template is an ARM resource managed by Microsoft.VirtualMachineImages provider /// private Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplate _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ImageTemplate(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ImageBuilder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.ParameterCategory.Runtime)] @@ -483,11 +474,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Cmdlets.NewAzImageBuilder /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -829,24 +815,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplate var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/NewAzImageBuilderTemplate_CreateViaJsonFilePath.cs b/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/NewAzImageBuilderTemplate_CreateViaJsonFilePath.cs index 04e01f5a5e66..9ebf57838694 100644 --- a/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/NewAzImageBuilderTemplate_CreateViaJsonFilePath.cs +++ b/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/NewAzImageBuilderTemplate_CreateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class NewAzImageBuilderTemplate_CreateViaJsonFilePath : global::S /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ImageBuilder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.ParameterCategory.Runtime)] @@ -267,11 +258,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Cmdlets.NewAzImageBuilder /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -587,24 +573,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplate var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/NewAzImageBuilderTemplate_CreateViaJsonString.cs b/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/NewAzImageBuilderTemplate_CreateViaJsonString.cs index ecc95fa7eb8d..02f41d96c632 100644 --- a/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/NewAzImageBuilderTemplate_CreateViaJsonString.cs +++ b/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/NewAzImageBuilderTemplate_CreateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class NewAzImageBuilderTemplate_CreateViaJsonString : global::Sys /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ImageBuilder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.ParameterCategory.Runtime)] @@ -264,11 +255,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Cmdlets.NewAzImageBuilder /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -584,24 +570,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplate var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/NewAzImageBuilderTrigger_CreateExpanded.cs b/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/NewAzImageBuilderTrigger_CreateExpanded.cs index 64b602a4cb8a..1c2e8b6a98d4 100644 --- a/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/NewAzImageBuilderTrigger_CreateExpanded.cs +++ b/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/NewAzImageBuilderTrigger_CreateExpanded.cs @@ -40,18 +40,9 @@ public partial class NewAzImageBuilderTrigger_CreateExpanded : global::System.Ma /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Represents a trigger that can invoke an image template build. private Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITrigger _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.Trigger(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ImageBuilder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.ParameterCategory.Runtime)] @@ -279,11 +270,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Cmdlets.NewAzImageBuilder /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -599,24 +585,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITrigger var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/NewAzImageBuilderTrigger_CreateViaIdentityImageTemplateExpanded.cs b/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/NewAzImageBuilderTrigger_CreateViaIdentityImageTemplateExpanded.cs index e0cdacf6813f..f8ffb67a86e5 100644 --- a/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/NewAzImageBuilderTrigger_CreateViaIdentityImageTemplateExpanded.cs +++ b/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/NewAzImageBuilderTrigger_CreateViaIdentityImageTemplateExpanded.cs @@ -40,18 +40,9 @@ public partial class NewAzImageBuilderTrigger_CreateViaIdentityImageTemplateExpa /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Represents a trigger that can invoke an image template build. private Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITrigger _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.Trigger(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ImageBuilder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.ParameterCategory.Runtime)] @@ -236,11 +227,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Cmdlets.NewAzImageBuilder /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -578,24 +564,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITrigger var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/NewAzImageBuilderTrigger_CreateViaJsonFilePath.cs b/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/NewAzImageBuilderTrigger_CreateViaJsonFilePath.cs index a4c3a20ae5fa..27437d1d9efd 100644 --- a/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/NewAzImageBuilderTrigger_CreateViaJsonFilePath.cs +++ b/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/NewAzImageBuilderTrigger_CreateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class NewAzImageBuilderTrigger_CreateViaJsonFilePath : global::Sy /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ImageBuilder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.ParameterCategory.Runtime)] @@ -281,11 +272,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Cmdlets.NewAzImageBuilder /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -601,24 +587,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITrigger var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/NewAzImageBuilderTrigger_CreateViaJsonString.cs b/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/NewAzImageBuilderTrigger_CreateViaJsonString.cs index 39ae491a0eaa..0f68c0277b19 100644 --- a/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/NewAzImageBuilderTrigger_CreateViaJsonString.cs +++ b/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/NewAzImageBuilderTrigger_CreateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class NewAzImageBuilderTrigger_CreateViaJsonString : global::Syst /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ImageBuilder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.ParameterCategory.Runtime)] @@ -279,11 +270,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Cmdlets.NewAzImageBuilder /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -599,24 +585,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITrigger var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/RemoveAzImageBuilderTemplate_Delete.cs b/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/RemoveAzImageBuilderTemplate_Delete.cs index fd83fbec0d09..0c63fce5872e 100644 --- a/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/RemoveAzImageBuilderTemplate_Delete.cs +++ b/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/RemoveAzImageBuilderTemplate_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzImageBuilderTemplate_Delete : global::System.Manage /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ImageBuilder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.ParameterCategory.Runtime)] @@ -264,11 +255,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Cmdlets.RemoveAzImageBuil /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -580,7 +566,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -604,7 +590,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/RemoveAzImageBuilderTemplate_DeleteViaIdentity.cs b/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/RemoveAzImageBuilderTemplate_DeleteViaIdentity.cs index 4d30af620732..6e5750587323 100644 --- a/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/RemoveAzImageBuilderTemplate_DeleteViaIdentity.cs +++ b/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/RemoveAzImageBuilderTemplate_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzImageBuilderTemplate_DeleteViaIdentity : global::Sy /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ImageBuilder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Cmdlets.RemoveAzImageBuil /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -554,7 +540,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -578,7 +564,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/RemoveAzImageBuilderTrigger_Delete.cs b/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/RemoveAzImageBuilderTrigger_Delete.cs index c4df94d1a928..be108b4d20dd 100644 --- a/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/RemoveAzImageBuilderTrigger_Delete.cs +++ b/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/RemoveAzImageBuilderTrigger_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzImageBuilderTrigger_Delete : global::System.Managem /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ImageBuilder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.ParameterCategory.Runtime)] @@ -279,11 +270,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Cmdlets.RemoveAzImageBuil /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -595,7 +581,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -619,7 +605,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/RemoveAzImageBuilderTrigger_DeleteViaIdentity.cs b/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/RemoveAzImageBuilderTrigger_DeleteViaIdentity.cs index 32e2f66b6fed..445663711e98 100644 --- a/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/RemoveAzImageBuilderTrigger_DeleteViaIdentity.cs +++ b/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/RemoveAzImageBuilderTrigger_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzImageBuilderTrigger_DeleteViaIdentity : global::Sys /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ImageBuilder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Cmdlets.RemoveAzImageBuil /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -558,7 +544,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -582,7 +568,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/RemoveAzImageBuilderTrigger_DeleteViaIdentityImageTemplate.cs b/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/RemoveAzImageBuilderTrigger_DeleteViaIdentityImageTemplate.cs index d6038aa1cb08..0f246aa1c407 100644 --- a/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/RemoveAzImageBuilderTrigger_DeleteViaIdentityImageTemplate.cs +++ b/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/RemoveAzImageBuilderTrigger_DeleteViaIdentityImageTemplate.cs @@ -40,15 +40,6 @@ public partial class RemoveAzImageBuilderTrigger_DeleteViaIdentityImageTemplate /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ImageBuilder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.ParameterCategory.Runtime)] @@ -236,11 +227,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Cmdlets.RemoveAzImageBuil /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -573,7 +559,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -597,7 +583,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/StartAzImageBuilderTemplate_Run.cs b/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/StartAzImageBuilderTemplate_Run.cs index fcf1826f904f..7d307b130eb3 100644 --- a/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/StartAzImageBuilderTemplate_Run.cs +++ b/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/StartAzImageBuilderTemplate_Run.cs @@ -40,15 +40,6 @@ public partial class StartAzImageBuilderTemplate_Run : global::System.Management /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ImageBuilder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.ParameterCategory.Runtime)] @@ -264,11 +255,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Cmdlets.StartAzImageBuild /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -580,7 +566,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -604,7 +590,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/StartAzImageBuilderTemplate_RunViaIdentity.cs b/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/StartAzImageBuilderTemplate_RunViaIdentity.cs index cfee6279bbed..f244433c6489 100644 --- a/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/StartAzImageBuilderTemplate_RunViaIdentity.cs +++ b/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/StartAzImageBuilderTemplate_RunViaIdentity.cs @@ -40,15 +40,6 @@ public partial class StartAzImageBuilderTemplate_RunViaIdentity : global::System /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ImageBuilder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Cmdlets.StartAzImageBuild /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -554,7 +540,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -578,7 +564,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/StopAzImageBuilderTemplate_Cancel.cs b/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/StopAzImageBuilderTemplate_Cancel.cs index 6526e20d56a0..3a99ee64266f 100644 --- a/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/StopAzImageBuilderTemplate_Cancel.cs +++ b/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/StopAzImageBuilderTemplate_Cancel.cs @@ -40,15 +40,6 @@ public partial class StopAzImageBuilderTemplate_Cancel : global::System.Manageme /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ImageBuilder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.ParameterCategory.Runtime)] @@ -264,11 +255,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Cmdlets.StopAzImageBuilde /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -580,7 +566,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -604,7 +590,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/StopAzImageBuilderTemplate_CancelViaIdentity.cs b/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/StopAzImageBuilderTemplate_CancelViaIdentity.cs index 5a95539013f9..2316d6174da1 100644 --- a/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/StopAzImageBuilderTemplate_CancelViaIdentity.cs +++ b/generated/ImageBuilder/ImageBuilder.Autorest/generated/cmdlets/StopAzImageBuilderTemplate_CancelViaIdentity.cs @@ -40,15 +40,6 @@ public partial class StopAzImageBuilderTemplate_CancelViaIdentity : global::Syst /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ImageBuilder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Cmdlets.StopAzImageBuilde /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -554,7 +540,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -578,7 +564,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ImageBuilder/ImageBuilder.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/ImageBuilder/ImageBuilder.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs index dbec43c255f5..c7c20a80a4c3 100644 --- a/generated/ImageBuilder/ImageBuilder.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/generated/ImageBuilder/ImageBuilder.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs @@ -36,14 +36,23 @@ internal class PsHelpInfo public object Role { get; } public string NonTerminatingErrors { get; } + public static string CapitalizeFirstLetter(string text) + { + if (string.IsNullOrEmpty(text)) + return text; + + return char.ToUpper(text[0]) + text.Substring(1); + } + public PsHelpInfo(PSObject helpObject = null) { helpObject = helpObject ?? new PSObject(); CmdletName = helpObject.GetProperty("Name").NullIfEmpty() ?? helpObject.GetNestedProperty("details", "name"); ModuleName = helpObject.GetProperty("ModuleName"); - Synopsis = helpObject.GetProperty("Synopsis"); + Synopsis = CapitalizeFirstLetter(helpObject.GetProperty("Synopsis")); Description = helpObject.GetProperty("description").EmptyIfNull().ToDescriptionText().NullIfEmpty() ?? helpObject.GetNestedProperty("details", "description").EmptyIfNull().ToDescriptionText(); + Description = CapitalizeFirstLetter(Description); AlertText = helpObject.GetNestedProperty("alertSet", "alert").EmptyIfNull().ToDescriptionText(); Category = helpObject.GetProperty("Category"); HasCommonParameters = helpObject.GetProperty("CommonParameters").ToNullableBool(); diff --git a/generated/ImageBuilder/ImageBuilder.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/ImageBuilder/ImageBuilder.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 7b425437823e..5ffd1e9e3470 100644 --- a/generated/ImageBuilder/ImageBuilder.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/ImageBuilder/ImageBuilder.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -218,13 +218,12 @@ public string GetProcessCustomAttributesAtRuntime() private string GetLoginVerification() { - if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) + if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) { return $@" {Indent}{Indent}$context = Get-AzContext {Indent}{Indent}if (-not $context -and -not $testPlayback) {{ -{Indent}{Indent}{Indent}Write-Error ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" -{Indent}{Indent}{Indent}exit +{Indent}{Indent}{Indent}throw ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" {Indent}{Indent}}} "; } diff --git a/generated/ImageBuilder/ImageBuilder.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/ImageBuilder/ImageBuilder.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs index 4018c11bc0c3..4ff23cf04498 100644 --- a/generated/ImageBuilder/ImageBuilder.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/generated/ImageBuilder/ImageBuilder.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs @@ -392,6 +392,7 @@ public CommentInfo(VariantGroup variantGroup) var helpInfo = variantGroup.HelpInfo; Description = variantGroup.Variants.SelectMany(v => v.Attributes).OfType().FirstOrDefault()?.Description.NullIfEmpty() ?? helpInfo.Description.EmptyIfNull(); + Description = PsHelpInfo.CapitalizeFirstLetter(Description); // If there is no Synopsis, PowerShell may put in the Syntax string as the Synopsis. This seems unintended, so we remove the Synopsis in this situation. var synopsis = helpInfo.Synopsis.EmptyIfNull().Trim().StartsWith(variantGroup.CmdletName) ? String.Empty : helpInfo.Synopsis; Synopsis = synopsis.NullIfEmpty() ?? Description; diff --git a/generated/ImageBuilder/ImageBuilder.Autorest/generated/runtime/Context.cs b/generated/ImageBuilder/ImageBuilder.Autorest/generated/runtime/Context.cs index 5133b416f5c3..2ab3ce9ba07e 100644 --- a/generated/ImageBuilder/ImageBuilder.Autorest/generated/runtime/Context.cs +++ b/generated/ImageBuilder/ImageBuilder.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Runtime /// The IContext Interface defines the communication mechanism for input customization. /// /// - /// In the context, we will have client, pipeline, PSBoundParamters, default EventListener, Cancellation. + /// In the context, we will have client, pipeline, PSBoundParameters, default EventListener, Cancellation. /// public interface IContext { diff --git a/generated/ImageBuilder/ImageBuilder.Autorest/generated/runtime/MessageAttribute.cs b/generated/ImageBuilder/ImageBuilder.Autorest/generated/runtime/MessageAttribute.cs index ebf8e53235f3..9a5ff697c406 100644 --- a/generated/ImageBuilder/ImageBuilder.Autorest/generated/runtime/MessageAttribute.cs +++ b/generated/ImageBuilder/ImageBuilder.Autorest/generated/runtime/MessageAttribute.cs @@ -16,9 +16,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Runtime public class GenericBreakingChangeAttribute : Attribute { private string _message; - //A dexcription of what the change is about, non mandatory + //A description of what the change is about, non mandatory public string ChangeDescription { get; set; } = null; + //Name of the module that is being deprecated + public string moduleName { get; set; } = String.IsNullOrEmpty(@"") ? @"Az.ImageBuilder" : @""; + //The version the change is effective from, non mandatory public string DeprecateByVersion { get; } public string DeprecateByAzVersion { get; } @@ -82,7 +85,7 @@ public void PrintCustomAttributeInfo(Action writeOutput) } writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByAzVersion, this.DeprecateByAzVersion)); - writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.DeprecateByVersion)); + writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.moduleName, this.DeprecateByVersion)); if (OldWay != null && NewWay != null) { @@ -191,11 +194,11 @@ public PreviewMessageAttribute(string message, string estimatedDateOfGa) : this( this.IsEstimatedGaDateSet = true; } } - + public void PrintCustomAttributeInfo(Action writeOutput) { writeOutput(this._message); - + if (IsEstimatedGaDateSet) { writeOutput(string.Format(Resources.PreviewCmdletETAMessage, this.EstimatedGaDate.ToShortDateString())); diff --git a/generated/ImageBuilder/ImageBuilder.Autorest/generated/runtime/Properties/Resources.resx b/generated/ImageBuilder/ImageBuilder.Autorest/generated/runtime/Properties/Resources.resx index a08a2e50172b..4ef90b70573d 100644 --- a/generated/ImageBuilder/ImageBuilder.Autorest/generated/runtime/Properties/Resources.resx +++ b/generated/ImageBuilder/ImageBuilder.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 version : '{0}' +- The change is expected to take effect in '{0}' from version : '{1}' ```powershell diff --git a/generated/ImageBuilder/ImageBuilder.Autorest/internal/New-AzImageBuilderTemplate.ps1 b/generated/ImageBuilder/ImageBuilder.Autorest/internal/New-AzImageBuilderTemplate.ps1 index a98ff61b464b..3bcbdca40a64 100644 --- a/generated/ImageBuilder/ImageBuilder.Autorest/internal/New-AzImageBuilderTemplate.ps1 +++ b/generated/ImageBuilder/ImageBuilder.Autorest/internal/New-AzImageBuilderTemplate.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a virtual machine image template +Create a virtual machine image template .Description -create a virtual machine image template +Create a virtual machine image template .Example $source = New-AzImageBuilderTemplateSourceObject -Publisher "Canonical" -Offer "UbuntuServer" -Sku "18.04-LTS" -Version "latest" $customizer = New-AzImageBuilderTemplateCustomizerObject -ShellCustomizer -Name "CheckSumCompareShellScript" -ScriptUri "https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript2.sh" -Sha256Checksum "ade4c5214c3c675e92c66e2d067a870c5b81b9844b3de3cc72c49ff36425fc93" diff --git a/generated/ImageBuilder/ImageBuilder.Autorest/internal/ProxyCmdletDefinitions.ps1 b/generated/ImageBuilder/ImageBuilder.Autorest/internal/ProxyCmdletDefinitions.ps1 index 942bf9914c4c..821d435dc998 100644 --- a/generated/ImageBuilder/ImageBuilder.Autorest/internal/ProxyCmdletDefinitions.ps1 +++ b/generated/ImageBuilder/ImageBuilder.Autorest/internal/ProxyCmdletDefinitions.ps1 @@ -132,9 +132,9 @@ end { <# .Synopsis -create a virtual machine image template +Create a virtual machine image template .Description -create a virtual machine image template +Create a virtual machine image template .Example $source = New-AzImageBuilderTemplateSourceObject -Publisher "Canonical" -Offer "UbuntuServer" -Sku "18.04-LTS" -Version "latest" $customizer = New-AzImageBuilderTemplateCustomizerObject -ShellCustomizer -Name "CheckSumCompareShellScript" -ScriptUri "https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript2.sh" -Sha256Checksum "ade4c5214c3c675e92c66e2d067a870c5b81b9844b3de3cc72c49ff36425fc93" diff --git a/generated/ImportExport/ImportExport.Autorest/exports/Get-AzImportExport.ps1 b/generated/ImportExport/ImportExport.Autorest/exports/Get-AzImportExport.ps1 index 6193d88e6b60..aa1569eb9962 100644 --- a/generated/ImportExport/ImportExport.Autorest/exports/Get-AzImportExport.ps1 +++ b/generated/ImportExport/ImportExport.Autorest/exports/Get-AzImportExport.ps1 @@ -163,8 +163,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ImportExport/ImportExport.Autorest/exports/Get-AzImportExportBitLockerKey.ps1 b/generated/ImportExport/ImportExport.Autorest/exports/Get-AzImportExportBitLockerKey.ps1 index 7a8a4b40f8a3..4ac495fa0567 100644 --- a/generated/ImportExport/ImportExport.Autorest/exports/Get-AzImportExportBitLockerKey.ps1 +++ b/generated/ImportExport/ImportExport.Autorest/exports/Get-AzImportExportBitLockerKey.ps1 @@ -117,8 +117,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ImportExport/ImportExport.Autorest/exports/Get-AzImportExportLocation.ps1 b/generated/ImportExport/ImportExport.Autorest/exports/Get-AzImportExportLocation.ps1 index b095da23683b..8c28b31142f3 100644 --- a/generated/ImportExport/ImportExport.Autorest/exports/Get-AzImportExportLocation.ps1 +++ b/generated/ImportExport/ImportExport.Autorest/exports/Get-AzImportExportLocation.ps1 @@ -133,8 +133,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ImportExport/ImportExport.Autorest/exports/New-AzImportExport.ps1 b/generated/ImportExport/ImportExport.Autorest/exports/New-AzImportExport.ps1 index f08b3c9e649c..e73d2da68bd9 100644 --- a/generated/ImportExport/ImportExport.Autorest/exports/New-AzImportExport.ps1 +++ b/generated/ImportExport/ImportExport.Autorest/exports/New-AzImportExport.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a new job or create an existing job in the specified subscription. +Create a new job or create an existing job in the specified subscription. .Description -create a new job or create an existing job in the specified subscription. +Create a new job or create an existing job in the specified subscription. .Example $driveList = @( @{ DriveId = "9CA995BA"; BitLockerKey = "238810-662376-448998-450120-652806-203390-606320-483076"; ManifestFile = "\\DriveManifest.xml"; ManifestHash = "109B21108597EF36D5785F08303F3638"; DriveHeaderHash = "" }) New-AzImportExport -Name test-job -ResourceGroupName ImportTestRG -Location eastus -StorageAccountId "/subscriptions//resourcegroups/ImportTestRG/providers/Microsoft.Storage/storageAccounts/teststorageforimport" -JobType Import -ReturnAddressRecipientName "Some name" -ReturnAddressStreetAddress1 "Street1" -ReturnAddressCity "Redmond" -ReturnAddressStateOrProvince "WA" -ReturnAddressPostalCode "98008" -ReturnAddressCountryOrRegion "USA" -ReturnAddressPhone "4250000000" -ReturnAddressEmail test@contoso.com -DiagnosticsPath "waimportexport" -BackupDriveManifest -DriveList $driveList @@ -442,8 +442,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ImportExport/ImportExport.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/ImportExport/ImportExport.Autorest/exports/ProxyCmdletDefinitions.ps1 index 7d4704c463d3..c94368e4c4d8 100644 --- a/generated/ImportExport/ImportExport.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/ImportExport/ImportExport.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -133,8 +133,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -361,8 +360,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -450,9 +448,9 @@ end { <# .Synopsis -create a new job or create an existing job in the specified subscription. +Create a new job or create an existing job in the specified subscription. .Description -create a new job or create an existing job in the specified subscription. +Create a new job or create an existing job in the specified subscription. .Example $driveList = @( @{ DriveId = "9CA995BA"; BitLockerKey = "238810-662376-448998-450120-652806-203390-606320-483076"; ManifestFile = "\\DriveManifest.xml"; ManifestHash = "109B21108597EF36D5785F08303F3638"; DriveHeaderHash = "" }) New-AzImportExport -Name test-job -ResourceGroupName ImportTestRG -Location eastus -StorageAccountId "/subscriptions//resourcegroups/ImportTestRG/providers/Microsoft.Storage/storageAccounts/teststorageforimport" -JobType Import -ReturnAddressRecipientName "Some name" -ReturnAddressStreetAddress1 "Street1" -ReturnAddressCity "Redmond" -ReturnAddressStateOrProvince "WA" -ReturnAddressPostalCode "98008" -ReturnAddressCountryOrRegion "USA" -ReturnAddressPhone "4250000000" -ReturnAddressEmail test@contoso.com -DiagnosticsPath "waimportexport" -BackupDriveManifest -DriveList $driveList @@ -876,8 +874,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1096,8 +1093,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1183,11 +1179,11 @@ end { <# .Synopsis -update specific properties of a job. +Update specific properties of a job. You can call this operation to notify the Import/Export service that the hard drives comprising the import or export job have been shipped to the Microsoft data center. It can also be used to cancel an existing job. .Description -update specific properties of a job. +Update specific properties of a job. You can call this operation to notify the Import/Export service that the hard drives comprising the import or export job have been shipped to the Microsoft data center. It can also be used to cancel an existing job. .Example @@ -1494,8 +1490,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1684,8 +1679,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ImportExport/ImportExport.Autorest/exports/Remove-AzImportExport.ps1 b/generated/ImportExport/ImportExport.Autorest/exports/Remove-AzImportExport.ps1 index d29e05b76919..fb8878e6c64c 100644 --- a/generated/ImportExport/ImportExport.Autorest/exports/Remove-AzImportExport.ps1 +++ b/generated/ImportExport/ImportExport.Autorest/exports/Remove-AzImportExport.ps1 @@ -148,8 +148,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ImportExport/ImportExport.Autorest/exports/Update-AzImportExport.ps1 b/generated/ImportExport/ImportExport.Autorest/exports/Update-AzImportExport.ps1 index 2cb801dadddc..be5bb480e3ab 100644 --- a/generated/ImportExport/ImportExport.Autorest/exports/Update-AzImportExport.ps1 +++ b/generated/ImportExport/ImportExport.Autorest/exports/Update-AzImportExport.ps1 @@ -16,11 +16,11 @@ <# .Synopsis -update specific properties of a job. +Update specific properties of a job. You can call this operation to notify the Import/Export service that the hard drives comprising the import or export job have been shipped to the Microsoft data center. It can also be used to cancel an existing job. .Description -update specific properties of a job. +Update specific properties of a job. You can call this operation to notify the Import/Export service that the hard drives comprising the import or export job have been shipped to the Microsoft data center. It can also be used to cancel an existing job. .Example @@ -327,8 +327,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ImportExport/ImportExport.Autorest/generated/api/Models/JobDetails.cs b/generated/ImportExport/ImportExport.Autorest/generated/api/Models/JobDetails.cs index 2edfa9567379..2ad023a2ad93 100644 --- a/generated/ImportExport/ImportExport.Autorest/generated/api/Models/JobDetails.cs +++ b/generated/ImportExport/ImportExport.Autorest/generated/api/Models/JobDetails.cs @@ -153,7 +153,7 @@ public partial class JobDetails : Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IExport Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal.Export { get => (this._export = this._export ?? new Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.Export()); set { {_export = value;} } } /// Internal Acessors for ExportBlobList - Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IExportBlobList Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal.ExportBlobList { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IExportInternal)Export).BlobList; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IExportInternal)Export).BlobList = value; } + Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IExportBlobList Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal.ExportBlobList { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IExportInternal)Export).BlobList; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IExportInternal)Export).BlobList = value ?? null /* model class */; } /// Internal Acessors for ReturnAddress Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IReturnAddress Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal.ReturnAddress { get => (this._returnAddress = this._returnAddress ?? new Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.ReturnAddress()); set { {_returnAddress = value;} } } @@ -168,7 +168,7 @@ public partial class JobDetails : Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IShippingInformation Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal.ShippingInformation { get => (this._shippingInformation = this._shippingInformation ?? new Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.ShippingInformation()); set { {_shippingInformation = value;} } } /// Internal Acessors for ShippingInformationAdditionalInformation - string Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal.ShippingInformationAdditionalInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IShippingInformationInternal)ShippingInformation).AdditionalInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IShippingInformationInternal)ShippingInformation).AdditionalInformation = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal.ShippingInformationAdditionalInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IShippingInformationInternal)ShippingInformation).AdditionalInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IShippingInformationInternal)ShippingInformation).AdditionalInformation = value ?? null; } /// Backing field for property. private long? _percentComplete; diff --git a/generated/ImportExport/ImportExport.Autorest/generated/api/Models/JobResponse.cs b/generated/ImportExport/ImportExport.Autorest/generated/api/Models/JobResponse.cs index 20e8a8124175..93a79b1a7234 100644 --- a/generated/ImportExport/ImportExport.Autorest/generated/api/Models/JobResponse.cs +++ b/generated/ImportExport/ImportExport.Autorest/generated/api/Models/JobResponse.cs @@ -130,16 +130,16 @@ public partial class JobResponse : public string LogLevel { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).LogLevel; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).LogLevel = value ?? null; } /// Internal Acessors for DeliveryPackage - Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IDeliveryPackageInformation Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobResponseInternal.DeliveryPackage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).DeliveryPackage; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).DeliveryPackage = value; } + Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IDeliveryPackageInformation Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobResponseInternal.DeliveryPackage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).DeliveryPackage; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).DeliveryPackage = value ?? null /* model class */; } /// Internal Acessors for EncryptionKey - Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IEncryptionKeyDetails Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobResponseInternal.EncryptionKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).EncryptionKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).EncryptionKey = value; } + Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IEncryptionKeyDetails Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobResponseInternal.EncryptionKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).EncryptionKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).EncryptionKey = value ?? null /* model class */; } /// Internal Acessors for Export - Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IExport Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobResponseInternal.Export { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).Export; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).Export = value; } + Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IExport Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobResponseInternal.Export { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).Export; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).Export = value ?? null /* model class */; } /// Internal Acessors for ExportBlobList - Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IExportBlobList Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobResponseInternal.ExportBlobList { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).ExportBlobList; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).ExportBlobList = value; } + Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IExportBlobList Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobResponseInternal.ExportBlobList { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).ExportBlobList; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).ExportBlobList = value ?? null /* model class */; } /// Internal Acessors for Id string Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobResponseInternal.Id { get => this._id; set { {_id = value;} } } @@ -148,10 +148,10 @@ public partial class JobResponse : Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IIdentityDetails Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobResponseInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IdentityDetails()); set { {_identity = value;} } } /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobResponseInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IIdentityDetailsInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IIdentityDetailsInternal)Identity).PrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobResponseInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IIdentityDetailsInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IIdentityDetailsInternal)Identity).PrincipalId = value ?? null; } /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobResponseInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IIdentityDetailsInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IIdentityDetailsInternal)Identity).TenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobResponseInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IIdentityDetailsInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IIdentityDetailsInternal)Identity).TenantId = value ?? null; } /// Internal Acessors for Name string Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobResponseInternal.Name { get => this._name; set { {_name = value;} } } @@ -160,40 +160,40 @@ public partial class JobResponse : Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetails Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobResponseInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.JobDetails()); set { {_property = value;} } } /// Internal Acessors for ReturnAddress - Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IReturnAddress Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobResponseInternal.ReturnAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).ReturnAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).ReturnAddress = value; } + Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IReturnAddress Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobResponseInternal.ReturnAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).ReturnAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).ReturnAddress = value ?? null /* model class */; } /// Internal Acessors for ReturnPackage - Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IPackageInformation Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobResponseInternal.ReturnPackage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).ReturnPackage; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).ReturnPackage = value; } + Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IPackageInformation Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobResponseInternal.ReturnPackage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).ReturnPackage; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).ReturnPackage = value ?? null /* model class */; } /// Internal Acessors for ReturnShipping - Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IReturnShipping Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobResponseInternal.ReturnShipping { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).ReturnShipping; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).ReturnShipping = value; } + Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IReturnShipping Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobResponseInternal.ReturnShipping { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).ReturnShipping; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).ReturnShipping = value ?? null /* model class */; } /// Internal Acessors for ShippingInformation - Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IShippingInformation Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobResponseInternal.ShippingInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).ShippingInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).ShippingInformation = value; } + Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IShippingInformation Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobResponseInternal.ShippingInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).ShippingInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).ShippingInformation = value ?? null /* model class */; } /// Internal Acessors for ShippingInformationAdditionalInformation - string Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobResponseInternal.ShippingInformationAdditionalInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).ShippingInformationAdditionalInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).ShippingInformationAdditionalInformation = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobResponseInternal.ShippingInformationAdditionalInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).ShippingInformationAdditionalInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).ShippingInformationAdditionalInformation = value ?? null; } /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobResponseInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.SystemData()); set { {_systemData = value;} } } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobResponseInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.ISystemDataInternal)SystemData).CreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobResponseInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobResponseInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.ISystemDataInternal)SystemData).CreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobResponseInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobResponseInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.ISystemDataInternal)SystemData).CreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobResponseInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobResponseInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.ISystemDataInternal)SystemData).LastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobResponseInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobResponseInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.ISystemDataInternal)SystemData).LastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobResponseInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobResponseInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.ISystemDataInternal)SystemData).LastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobResponseInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobResponseInternal.Type { get => this._type; set { {_type = value;} } } diff --git a/generated/ImportExport/ImportExport.Autorest/generated/api/Models/PutJobParameters.cs b/generated/ImportExport/ImportExport.Autorest/generated/api/Models/PutJobParameters.cs index ac07a14a69d6..539ef8b46a17 100644 --- a/generated/ImportExport/ImportExport.Autorest/generated/api/Models/PutJobParameters.cs +++ b/generated/ImportExport/ImportExport.Autorest/generated/api/Models/PutJobParameters.cs @@ -104,34 +104,34 @@ public partial class PutJobParameters : public string LogLevel { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).LogLevel; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).LogLevel = value ?? null; } /// Internal Acessors for DeliveryPackage - Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IDeliveryPackageInformation Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IPutJobParametersInternal.DeliveryPackage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).DeliveryPackage; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).DeliveryPackage = value; } + Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IDeliveryPackageInformation Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IPutJobParametersInternal.DeliveryPackage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).DeliveryPackage; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).DeliveryPackage = value ?? null /* model class */; } /// Internal Acessors for EncryptionKey - Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IEncryptionKeyDetails Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IPutJobParametersInternal.EncryptionKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).EncryptionKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).EncryptionKey = value; } + Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IEncryptionKeyDetails Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IPutJobParametersInternal.EncryptionKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).EncryptionKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).EncryptionKey = value ?? null /* model class */; } /// Internal Acessors for Export - Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IExport Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IPutJobParametersInternal.Export { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).Export; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).Export = value; } + Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IExport Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IPutJobParametersInternal.Export { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).Export; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).Export = value ?? null /* model class */; } /// Internal Acessors for ExportBlobList - Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IExportBlobList Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IPutJobParametersInternal.ExportBlobList { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).ExportBlobList; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).ExportBlobList = value; } + Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IExportBlobList Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IPutJobParametersInternal.ExportBlobList { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).ExportBlobList; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).ExportBlobList = value ?? null /* model class */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetails Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IPutJobParametersInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.JobDetails()); set { {_property = value;} } } /// Internal Acessors for ReturnAddress - Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IReturnAddress Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IPutJobParametersInternal.ReturnAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).ReturnAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).ReturnAddress = value; } + Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IReturnAddress Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IPutJobParametersInternal.ReturnAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).ReturnAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).ReturnAddress = value ?? null /* model class */; } /// Internal Acessors for ReturnPackage - Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IPackageInformation Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IPutJobParametersInternal.ReturnPackage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).ReturnPackage; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).ReturnPackage = value; } + Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IPackageInformation Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IPutJobParametersInternal.ReturnPackage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).ReturnPackage; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).ReturnPackage = value ?? null /* model class */; } /// Internal Acessors for ReturnShipping - Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IReturnShipping Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IPutJobParametersInternal.ReturnShipping { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).ReturnShipping; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).ReturnShipping = value; } + Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IReturnShipping Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IPutJobParametersInternal.ReturnShipping { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).ReturnShipping; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).ReturnShipping = value ?? null /* model class */; } /// Internal Acessors for ShippingInformation - Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IShippingInformation Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IPutJobParametersInternal.ShippingInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).ShippingInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).ShippingInformation = value; } + Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IShippingInformation Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IPutJobParametersInternal.ShippingInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).ShippingInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).ShippingInformation = value ?? null /* model class */; } /// Internal Acessors for ShippingInformationAdditionalInformation - string Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IPutJobParametersInternal.ShippingInformationAdditionalInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).ShippingInformationAdditionalInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).ShippingInformationAdditionalInformation = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IPutJobParametersInternal.ShippingInformationAdditionalInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).ShippingInformationAdditionalInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IJobDetailsInternal)Property).ShippingInformationAdditionalInformation = value ?? null; } /// Overall percentage completed for the job. [Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Origin(Microsoft.Azure.PowerShell.Cmdlets.ImportExport.PropertyOrigin.Inlined)] diff --git a/generated/ImportExport/ImportExport.Autorest/generated/api/Models/UpdateJobParameters.cs b/generated/ImportExport/ImportExport.Autorest/generated/api/Models/UpdateJobParameters.cs index 34bafef3279f..f0f987e352c1 100644 --- a/generated/ImportExport/ImportExport.Autorest/generated/api/Models/UpdateJobParameters.cs +++ b/generated/ImportExport/ImportExport.Autorest/generated/api/Models/UpdateJobParameters.cs @@ -50,16 +50,16 @@ public partial class UpdateJobParameters : public string LogLevel { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IUpdateJobParametersPropertiesInternal)Property).LogLevel; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IUpdateJobParametersPropertiesInternal)Property).LogLevel = value ?? null; } /// Internal Acessors for DeliveryPackage - Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IDeliveryPackageInformation Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IUpdateJobParametersInternal.DeliveryPackage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IUpdateJobParametersPropertiesInternal)Property).DeliveryPackage; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IUpdateJobParametersPropertiesInternal)Property).DeliveryPackage = value; } + Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IDeliveryPackageInformation Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IUpdateJobParametersInternal.DeliveryPackage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IUpdateJobParametersPropertiesInternal)Property).DeliveryPackage; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IUpdateJobParametersPropertiesInternal)Property).DeliveryPackage = value ?? null /* model class */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IUpdateJobParametersProperties Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IUpdateJobParametersInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.UpdateJobParametersProperties()); set { {_property = value;} } } /// Internal Acessors for ReturnAddress - Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IReturnAddress Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IUpdateJobParametersInternal.ReturnAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IUpdateJobParametersPropertiesInternal)Property).ReturnAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IUpdateJobParametersPropertiesInternal)Property).ReturnAddress = value; } + Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IReturnAddress Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IUpdateJobParametersInternal.ReturnAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IUpdateJobParametersPropertiesInternal)Property).ReturnAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IUpdateJobParametersPropertiesInternal)Property).ReturnAddress = value ?? null /* model class */; } /// Internal Acessors for ReturnShipping - Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IReturnShipping Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IUpdateJobParametersInternal.ReturnShipping { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IUpdateJobParametersPropertiesInternal)Property).ReturnShipping; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IUpdateJobParametersPropertiesInternal)Property).ReturnShipping = value; } + Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IReturnShipping Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IUpdateJobParametersInternal.ReturnShipping { get => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IUpdateJobParametersPropertiesInternal)Property).ReturnShipping; set => ((Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IUpdateJobParametersPropertiesInternal)Property).ReturnShipping = value ?? null /* model class */; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.IUpdateJobParametersProperties _property; diff --git a/generated/ImportExport/ImportExport.Autorest/generated/cmdlets/RemoveAzImportExport_Delete.cs b/generated/ImportExport/ImportExport.Autorest/generated/cmdlets/RemoveAzImportExport_Delete.cs index cbabb11aeb4d..d077c4350de1 100644 --- a/generated/ImportExport/ImportExport.Autorest/generated/cmdlets/RemoveAzImportExport_Delete.cs +++ b/generated/ImportExport/ImportExport.Autorest/generated/cmdlets/RemoveAzImportExport_Delete.cs @@ -503,7 +503,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ImportExport/ImportExport.Autorest/generated/cmdlets/RemoveAzImportExport_DeleteViaIdentity.cs b/generated/ImportExport/ImportExport.Autorest/generated/cmdlets/RemoveAzImportExport_DeleteViaIdentity.cs index d91ffe805dfa..e528c377c61e 100644 --- a/generated/ImportExport/ImportExport.Autorest/generated/cmdlets/RemoveAzImportExport_DeleteViaIdentity.cs +++ b/generated/ImportExport/ImportExport.Autorest/generated/cmdlets/RemoveAzImportExport_DeleteViaIdentity.cs @@ -481,7 +481,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ImportExport/ImportExport.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/ImportExport/ImportExport.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs index 2c551deec303..9822cfffef19 100644 --- a/generated/ImportExport/ImportExport.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/generated/ImportExport/ImportExport.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs @@ -36,14 +36,23 @@ internal class PsHelpInfo public object Role { get; } public string NonTerminatingErrors { get; } + public static string CapitalizeFirstLetter(string text) + { + if (string.IsNullOrEmpty(text)) + return text; + + return char.ToUpper(text[0]) + text.Substring(1); + } + public PsHelpInfo(PSObject helpObject = null) { helpObject = helpObject ?? new PSObject(); CmdletName = helpObject.GetProperty("Name").NullIfEmpty() ?? helpObject.GetNestedProperty("details", "name"); ModuleName = helpObject.GetProperty("ModuleName"); - Synopsis = helpObject.GetProperty("Synopsis"); + Synopsis = CapitalizeFirstLetter(helpObject.GetProperty("Synopsis")); Description = helpObject.GetProperty("description").EmptyIfNull().ToDescriptionText().NullIfEmpty() ?? helpObject.GetNestedProperty("details", "description").EmptyIfNull().ToDescriptionText(); + Description = CapitalizeFirstLetter(Description); AlertText = helpObject.GetNestedProperty("alertSet", "alert").EmptyIfNull().ToDescriptionText(); Category = helpObject.GetProperty("Category"); HasCommonParameters = helpObject.GetProperty("CommonParameters").ToNullableBool(); diff --git a/generated/ImportExport/ImportExport.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/ImportExport/ImportExport.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 870c35bb974c..367e3f936dd9 100644 --- a/generated/ImportExport/ImportExport.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/ImportExport/ImportExport.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -218,13 +218,12 @@ public string GetProcessCustomAttributesAtRuntime() private string GetLoginVerification() { - if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) + if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) { return $@" {Indent}{Indent}$context = Get-AzContext {Indent}{Indent}if (-not $context -and -not $testPlayback) {{ -{Indent}{Indent}{Indent}Write-Error ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" -{Indent}{Indent}{Indent}exit +{Indent}{Indent}{Indent}throw ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" {Indent}{Indent}}} "; } diff --git a/generated/ImportExport/ImportExport.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/ImportExport/ImportExport.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs index 29343bec6c2d..8c5cbf9c1268 100644 --- a/generated/ImportExport/ImportExport.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/generated/ImportExport/ImportExport.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs @@ -392,6 +392,7 @@ public CommentInfo(VariantGroup variantGroup) var helpInfo = variantGroup.HelpInfo; Description = variantGroup.Variants.SelectMany(v => v.Attributes).OfType().FirstOrDefault()?.Description.NullIfEmpty() ?? helpInfo.Description.EmptyIfNull(); + Description = PsHelpInfo.CapitalizeFirstLetter(Description); // If there is no Synopsis, PowerShell may put in the Syntax string as the Synopsis. This seems unintended, so we remove the Synopsis in this situation. var synopsis = helpInfo.Synopsis.EmptyIfNull().Trim().StartsWith(variantGroup.CmdletName) ? String.Empty : helpInfo.Synopsis; Synopsis = synopsis.NullIfEmpty() ?? Description; diff --git a/generated/ImportExport/ImportExport.Autorest/generated/runtime/Context.cs b/generated/ImportExport/ImportExport.Autorest/generated/runtime/Context.cs index 1fba4984a82c..2445f682d8df 100644 --- a/generated/ImportExport/ImportExport.Autorest/generated/runtime/Context.cs +++ b/generated/ImportExport/ImportExport.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Runtime /// The IContext Interface defines the communication mechanism for input customization. /// /// - /// In the context, we will have client, pipeline, PSBoundParamters, default EventListener, Cancellation. + /// In the context, we will have client, pipeline, PSBoundParameters, default EventListener, Cancellation. /// public interface IContext { diff --git a/generated/ImportExport/ImportExport.Autorest/generated/runtime/MessageAttribute.cs b/generated/ImportExport/ImportExport.Autorest/generated/runtime/MessageAttribute.cs index 8ded19c140b7..c613ef5411f2 100644 --- a/generated/ImportExport/ImportExport.Autorest/generated/runtime/MessageAttribute.cs +++ b/generated/ImportExport/ImportExport.Autorest/generated/runtime/MessageAttribute.cs @@ -16,9 +16,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Runtime public class GenericBreakingChangeAttribute : Attribute { private string _message; - //A dexcription of what the change is about, non mandatory + //A description of what the change is about, non mandatory public string ChangeDescription { get; set; } = null; + //Name of the module that is being deprecated + public string moduleName { get; set; } = String.IsNullOrEmpty(@"") ? @"Az.ImportExport" : @""; + //The version the change is effective from, non mandatory public string DeprecateByVersion { get; } public string DeprecateByAzVersion { get; } @@ -82,7 +85,7 @@ public void PrintCustomAttributeInfo(Action writeOutput) } writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByAzVersion, this.DeprecateByAzVersion)); - writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.DeprecateByVersion)); + writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.moduleName, this.DeprecateByVersion)); if (OldWay != null && NewWay != null) { @@ -191,11 +194,11 @@ public PreviewMessageAttribute(string message, string estimatedDateOfGa) : this( this.IsEstimatedGaDateSet = true; } } - + public void PrintCustomAttributeInfo(Action writeOutput) { writeOutput(this._message); - + if (IsEstimatedGaDateSet) { writeOutput(string.Format(Resources.PreviewCmdletETAMessage, this.EstimatedGaDate.ToShortDateString())); diff --git a/generated/ImportExport/ImportExport.Autorest/generated/runtime/Properties/Resources.resx b/generated/ImportExport/ImportExport.Autorest/generated/runtime/Properties/Resources.resx index a08a2e50172b..4ef90b70573d 100644 --- a/generated/ImportExport/ImportExport.Autorest/generated/runtime/Properties/Resources.resx +++ b/generated/ImportExport/ImportExport.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 version : '{0}' +- The change is expected to take effect in '{0}' from version : '{1}' ```powershell diff --git a/generated/Informatica/Informatica.Autorest/exports/Get-AzInformaticaOrganization.ps1 b/generated/Informatica/Informatica.Autorest/exports/Get-AzInformaticaOrganization.ps1 index 1b9c12492335..761f79bd87ea 100644 --- a/generated/Informatica/Informatica.Autorest/exports/Get-AzInformaticaOrganization.ps1 +++ b/generated/Informatica/Informatica.Autorest/exports/Get-AzInformaticaOrganization.ps1 @@ -131,6 +131,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -155,8 +163,6 @@ begin { List1 = 'Az.Informatica.private\Get-AzInformaticaOrganization_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -170,6 +176,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Informatica/Informatica.Autorest/exports/Get-AzInformaticaOrganizationServerlessMetadata.ps1 b/generated/Informatica/Informatica.Autorest/exports/Get-AzInformaticaOrganizationServerlessMetadata.ps1 index cf67f1c88b2f..8ebd0a1bd311 100644 --- a/generated/Informatica/Informatica.Autorest/exports/Get-AzInformaticaOrganizationServerlessMetadata.ps1 +++ b/generated/Informatica/Informatica.Autorest/exports/Get-AzInformaticaOrganizationServerlessMetadata.ps1 @@ -127,6 +127,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -149,8 +157,6 @@ begin { GetViaIdentity = 'Az.Informatica.private\Get-AzInformaticaOrganizationServerlessMetadata_GetViaIdentity'; } if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -164,6 +170,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Informatica/Informatica.Autorest/exports/Get-AzInformaticaOrganizationServerlessRuntime.ps1 b/generated/Informatica/Informatica.Autorest/exports/Get-AzInformaticaOrganizationServerlessRuntime.ps1 index 51944a30889e..1ed31bddb52c 100644 --- a/generated/Informatica/Informatica.Autorest/exports/Get-AzInformaticaOrganizationServerlessRuntime.ps1 +++ b/generated/Informatica/Informatica.Autorest/exports/Get-AzInformaticaOrganizationServerlessRuntime.ps1 @@ -127,6 +127,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -149,8 +157,6 @@ begin { GetViaIdentity = 'Az.Informatica.private\Get-AzInformaticaOrganizationServerlessRuntime_GetViaIdentity'; } if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -164,6 +170,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Informatica/Informatica.Autorest/exports/Get-AzInformaticaServerlessRuntime.ps1 b/generated/Informatica/Informatica.Autorest/exports/Get-AzInformaticaServerlessRuntime.ps1 index f2a1d13a9512..3bef76e49270 100644 --- a/generated/Informatica/Informatica.Autorest/exports/Get-AzInformaticaServerlessRuntime.ps1 +++ b/generated/Informatica/Informatica.Autorest/exports/Get-AzInformaticaServerlessRuntime.ps1 @@ -151,6 +151,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -175,8 +183,6 @@ begin { List = 'Az.Informatica.private\Get-AzInformaticaServerlessRuntime_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -190,6 +196,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Informatica/Informatica.Autorest/exports/Invoke-AzInformaticaServerlessRuntimeResource.ps1 b/generated/Informatica/Informatica.Autorest/exports/Invoke-AzInformaticaServerlessRuntimeResource.ps1 index 5d07433e90cf..eb5a9c714167 100644 --- a/generated/Informatica/Informatica.Autorest/exports/Invoke-AzInformaticaServerlessRuntimeResource.ps1 +++ b/generated/Informatica/Informatica.Autorest/exports/Invoke-AzInformaticaServerlessRuntimeResource.ps1 @@ -147,6 +147,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -170,8 +178,6 @@ begin { ServerlessViaIdentityOrganization = 'Az.Informatica.private\Invoke-AzInformaticaServerlessRuntimeResource_ServerlessViaIdentityOrganization'; } if (('Serverless') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -185,6 +191,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Informatica/Informatica.Autorest/exports/New-AzInformaticaOrganization.ps1 b/generated/Informatica/Informatica.Autorest/exports/New-AzInformaticaOrganization.ps1 index e9b4bc5ed3c2..a03af0457fc0 100644 --- a/generated/Informatica/Informatica.Autorest/exports/New-AzInformaticaOrganization.ps1 +++ b/generated/Informatica/Informatica.Autorest/exports/New-AzInformaticaOrganization.ps1 @@ -284,6 +284,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -307,8 +315,6 @@ begin { CreateViaJsonString = 'Az.Informatica.private\New-AzInformaticaOrganization_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -322,6 +328,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Informatica/Informatica.Autorest/exports/New-AzInformaticaServerlessRuntime.ps1 b/generated/Informatica/Informatica.Autorest/exports/New-AzInformaticaServerlessRuntime.ps1 index 638d63ff5009..a87fda1fb174 100644 --- a/generated/Informatica/Informatica.Autorest/exports/New-AzInformaticaServerlessRuntime.ps1 +++ b/generated/Informatica/Informatica.Autorest/exports/New-AzInformaticaServerlessRuntime.ps1 @@ -295,6 +295,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -318,8 +326,6 @@ begin { CreateViaJsonString = 'Az.Informatica.private\New-AzInformaticaServerlessRuntime_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -333,6 +339,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Informatica/Informatica.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/Informatica/Informatica.Autorest/exports/ProxyCmdletDefinitions.ps1 index 5f9dbbf1eecd..6e82393b114c 100644 --- a/generated/Informatica/Informatica.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/Informatica/Informatica.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -127,6 +127,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -149,8 +157,6 @@ begin { GetViaIdentity = 'Az.Informatica.private\Get-AzInformaticaOrganizationServerlessMetadata_GetViaIdentity'; } if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -164,6 +170,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -320,6 +329,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -342,8 +359,6 @@ begin { GetViaIdentity = 'Az.Informatica.private\Get-AzInformaticaOrganizationServerlessRuntime_GetViaIdentity'; } if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -357,6 +372,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -517,6 +535,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -541,8 +567,6 @@ begin { List1 = 'Az.Informatica.private\Get-AzInformaticaOrganization_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -556,6 +580,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -736,6 +763,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -760,8 +795,6 @@ begin { List = 'Az.Informatica.private\Get-AzInformaticaServerlessRuntime_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -775,6 +808,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -951,6 +987,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -974,8 +1018,6 @@ begin { ServerlessViaIdentityOrganization = 'Az.Informatica.private\Invoke-AzInformaticaServerlessRuntimeResource_ServerlessViaIdentityOrganization'; } if (('Serverless') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -989,6 +1031,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -1302,6 +1347,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -1325,8 +1378,6 @@ begin { CreateViaJsonString = 'Az.Informatica.private\New-AzInformaticaOrganization_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -1340,6 +1391,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -1664,6 +1718,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -1687,8 +1749,6 @@ begin { CreateViaJsonString = 'Az.Informatica.private\New-AzInformaticaServerlessRuntime_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -1702,6 +1762,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -1877,6 +1940,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -1899,8 +1970,6 @@ begin { DeleteViaIdentity = 'Az.Informatica.private\Remove-AzInformaticaOrganization_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -1914,6 +1983,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -2109,6 +2181,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -2132,8 +2212,6 @@ begin { DeleteViaIdentityOrganization = 'Az.Informatica.private\Remove-AzInformaticaServerlessRuntime_DeleteViaIdentityOrganization'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -2147,6 +2225,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -2329,6 +2410,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -2352,8 +2441,6 @@ begin { StartViaIdentityOrganization = 'Az.Informatica.private\Start-AzInformaticaServerlessRuntimeFailedServerlessRuntime_StartViaIdentityOrganization'; } if (('Start') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -2367,6 +2454,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -2543,6 +2633,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -2566,8 +2664,6 @@ begin { CheckViaIdentityOrganization = 'Az.Informatica.private\Test-AzInformaticaServerlessRuntimeDependency_CheckViaIdentityOrganization'; } if (('Check') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -2581,6 +2677,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -2823,6 +2922,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -2847,8 +2954,6 @@ begin { UpdateViaJsonString = 'Az.Informatica.private\Update-AzInformaticaOrganization_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -2862,6 +2967,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -3241,6 +3349,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -3266,8 +3382,6 @@ begin { UpdateViaJsonString = 'Az.Informatica.private\Update-AzInformaticaServerlessRuntime_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -3281,6 +3395,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Informatica/Informatica.Autorest/exports/Remove-AzInformaticaOrganization.ps1 b/generated/Informatica/Informatica.Autorest/exports/Remove-AzInformaticaOrganization.ps1 index 8d65d54ac650..23f3c72bd0ac 100644 --- a/generated/Informatica/Informatica.Autorest/exports/Remove-AzInformaticaOrganization.ps1 +++ b/generated/Informatica/Informatica.Autorest/exports/Remove-AzInformaticaOrganization.ps1 @@ -146,6 +146,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -168,8 +176,6 @@ begin { DeleteViaIdentity = 'Az.Informatica.private\Remove-AzInformaticaOrganization_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -183,6 +189,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Informatica/Informatica.Autorest/exports/Remove-AzInformaticaServerlessRuntime.ps1 b/generated/Informatica/Informatica.Autorest/exports/Remove-AzInformaticaServerlessRuntime.ps1 index 026d87eb16d8..78a5dc341447 100644 --- a/generated/Informatica/Informatica.Autorest/exports/Remove-AzInformaticaServerlessRuntime.ps1 +++ b/generated/Informatica/Informatica.Autorest/exports/Remove-AzInformaticaServerlessRuntime.ps1 @@ -166,6 +166,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -189,8 +197,6 @@ begin { DeleteViaIdentityOrganization = 'Az.Informatica.private\Remove-AzInformaticaServerlessRuntime_DeleteViaIdentityOrganization'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -204,6 +210,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Informatica/Informatica.Autorest/exports/Start-AzInformaticaServerlessRuntimeFailedServerlessRuntime.ps1 b/generated/Informatica/Informatica.Autorest/exports/Start-AzInformaticaServerlessRuntimeFailedServerlessRuntime.ps1 index fbc5b71abb65..5f48dad0e64b 100644 --- a/generated/Informatica/Informatica.Autorest/exports/Start-AzInformaticaServerlessRuntimeFailedServerlessRuntime.ps1 +++ b/generated/Informatica/Informatica.Autorest/exports/Start-AzInformaticaServerlessRuntimeFailedServerlessRuntime.ps1 @@ -153,6 +153,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -176,8 +184,6 @@ begin { StartViaIdentityOrganization = 'Az.Informatica.private\Start-AzInformaticaServerlessRuntimeFailedServerlessRuntime_StartViaIdentityOrganization'; } if (('Start') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -191,6 +197,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Informatica/Informatica.Autorest/exports/Test-AzInformaticaServerlessRuntimeDependency.ps1 b/generated/Informatica/Informatica.Autorest/exports/Test-AzInformaticaServerlessRuntimeDependency.ps1 index 868611da32fe..8ec57a52ca04 100644 --- a/generated/Informatica/Informatica.Autorest/exports/Test-AzInformaticaServerlessRuntimeDependency.ps1 +++ b/generated/Informatica/Informatica.Autorest/exports/Test-AzInformaticaServerlessRuntimeDependency.ps1 @@ -147,6 +147,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -170,8 +178,6 @@ begin { CheckViaIdentityOrganization = 'Az.Informatica.private\Test-AzInformaticaServerlessRuntimeDependency_CheckViaIdentityOrganization'; } if (('Check') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -185,6 +191,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Informatica/Informatica.Autorest/exports/Update-AzInformaticaOrganization.ps1 b/generated/Informatica/Informatica.Autorest/exports/Update-AzInformaticaOrganization.ps1 index 1fe5a3a42e49..bd97905f958e 100644 --- a/generated/Informatica/Informatica.Autorest/exports/Update-AzInformaticaOrganization.ps1 +++ b/generated/Informatica/Informatica.Autorest/exports/Update-AzInformaticaOrganization.ps1 @@ -213,6 +213,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -237,8 +245,6 @@ begin { UpdateViaJsonString = 'Az.Informatica.private\Update-AzInformaticaOrganization_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -252,6 +258,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Informatica/Informatica.Autorest/exports/Update-AzInformaticaServerlessRuntime.ps1 b/generated/Informatica/Informatica.Autorest/exports/Update-AzInformaticaServerlessRuntime.ps1 index 55ad14a0ffff..b6275d8f025f 100644 --- a/generated/Informatica/Informatica.Autorest/exports/Update-AzInformaticaServerlessRuntime.ps1 +++ b/generated/Informatica/Informatica.Autorest/exports/Update-AzInformaticaServerlessRuntime.ps1 @@ -350,6 +350,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -375,8 +383,6 @@ begin { UpdateViaJsonString = 'Az.Informatica.private\Update-AzInformaticaServerlessRuntime_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -390,6 +396,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Informatica/Informatica.Autorest/generated/api/Informatica.cs b/generated/Informatica/Informatica.Autorest/generated/api/Informatica.cs index 44f1eebde990..ca13ad2d133d 100644 --- a/generated/Informatica/Informatica.Autorest/generated/api/Informatica.cs +++ b/generated/Informatica/Informatica.Autorest/generated/api/Informatica.cs @@ -295,7 +295,7 @@ public partial class Informatica } } - /// Update a InformaticaOrganizationResource + /// update a InformaticaOrganizationResource /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Organizations resource @@ -344,7 +344,7 @@ public partial class Informatica } } - /// Update a InformaticaOrganizationResource + /// update a InformaticaOrganizationResource /// /// Resource create parameters. /// a delegate that is called when the remote service returns 200 (OK). @@ -403,7 +403,7 @@ public partial class Informatica } } - /// Update a InformaticaOrganizationResource + /// update a InformaticaOrganizationResource /// /// Resource create parameters. /// an instance that will receive events. @@ -460,7 +460,7 @@ public partial class Informatica } } - /// Update a InformaticaOrganizationResource + /// update a InformaticaOrganizationResource /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Organizations resource @@ -508,7 +508,7 @@ public partial class Informatica } } - /// Update a InformaticaOrganizationResource + /// update a InformaticaOrganizationResource /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Organizations resource @@ -554,7 +554,7 @@ public partial class Informatica } } - /// Update a InformaticaOrganizationResource + /// update a InformaticaOrganizationResource /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Organizations resource @@ -618,13 +618,13 @@ public partial class Informatica global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -772,13 +772,13 @@ public partial class Informatica global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -1041,13 +1041,13 @@ public partial class Informatica global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); @@ -2801,7 +2801,7 @@ public partial class Informatica } } - /// Update a InformaticaOrganizationResource + /// update a InformaticaOrganizationResource /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Organizations resource @@ -2850,7 +2850,7 @@ public partial class Informatica } } - /// Update a InformaticaOrganizationResource + /// update a InformaticaOrganizationResource /// /// The resource properties to be updated. /// a delegate that is called when the remote service returns 200 (OK). @@ -2909,7 +2909,7 @@ public partial class Informatica } } - /// Update a InformaticaOrganizationResource + /// update a InformaticaOrganizationResource /// /// The resource properties to be updated. /// an instance that will receive events. @@ -2966,7 +2966,7 @@ public partial class Informatica } } - /// Update a InformaticaOrganizationResource + /// update a InformaticaOrganizationResource /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Organizations resource @@ -3014,7 +3014,7 @@ public partial class Informatica } } - /// Update a InformaticaOrganizationResource + /// update a InformaticaOrganizationResource /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Organizations resource @@ -3060,7 +3060,7 @@ public partial class Informatica } } - /// Update a InformaticaOrganizationResource + /// update a InformaticaOrganizationResource /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Organizations resource @@ -3591,7 +3591,7 @@ public partial class Informatica } } - /// Update a InformaticaServerlessRuntimeResource + /// update a InformaticaServerlessRuntimeResource /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Organizations resource @@ -3643,7 +3643,7 @@ public partial class Informatica } } - /// Update a InformaticaServerlessRuntimeResource + /// update a InformaticaServerlessRuntimeResource /// /// Resource create parameters. /// a delegate that is called when the remote service returns 200 (OK). @@ -3705,7 +3705,7 @@ public partial class Informatica } } - /// Update a InformaticaServerlessRuntimeResource + /// update a InformaticaServerlessRuntimeResource /// /// Resource create parameters. /// an instance that will receive events. @@ -3765,7 +3765,7 @@ public partial class Informatica } } - /// Update a InformaticaServerlessRuntimeResource + /// update a InformaticaServerlessRuntimeResource /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Organizations resource @@ -3816,7 +3816,7 @@ public partial class Informatica } } - /// Update a InformaticaServerlessRuntimeResource + /// update a InformaticaServerlessRuntimeResource /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Organizations resource @@ -3865,7 +3865,7 @@ public partial class Informatica } } - /// Update a InformaticaServerlessRuntimeResource + /// update a InformaticaServerlessRuntimeResource /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Organizations resource @@ -3932,13 +3932,13 @@ public partial class Informatica global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -4086,13 +4086,13 @@ public partial class Informatica global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -4364,13 +4364,13 @@ public partial class Informatica global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); @@ -5731,7 +5731,7 @@ public partial class Informatica } } - /// Update a InformaticaServerlessRuntimeResource + /// update a InformaticaServerlessRuntimeResource /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Organizations resource @@ -5783,7 +5783,7 @@ public partial class Informatica } } - /// Update a InformaticaServerlessRuntimeResource + /// update a InformaticaServerlessRuntimeResource /// /// The resource properties to be updated. /// a delegate that is called when the remote service returns 200 (OK). @@ -5845,7 +5845,7 @@ public partial class Informatica } } - /// Update a InformaticaServerlessRuntimeResource + /// update a InformaticaServerlessRuntimeResource /// /// The resource properties to be updated. /// an instance that will receive events. @@ -5905,7 +5905,7 @@ public partial class Informatica } } - /// Update a InformaticaServerlessRuntimeResource + /// update a InformaticaServerlessRuntimeResource /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Organizations resource @@ -5956,7 +5956,7 @@ public partial class Informatica } } - /// Update a InformaticaServerlessRuntimeResource + /// update a InformaticaServerlessRuntimeResource /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Organizations resource @@ -6005,7 +6005,7 @@ public partial class Informatica } } - /// Update a InformaticaServerlessRuntimeResource + /// update a InformaticaServerlessRuntimeResource /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Organizations resource diff --git a/generated/Informatica/Informatica.Autorest/generated/api/Models/ErrorResponse.cs b/generated/Informatica/Informatica.Autorest/generated/api/Models/ErrorResponse.cs index 9b4006b2be9e..0e6b0c361b7e 100644 --- a/generated/Informatica/Informatica.Autorest/generated/api/Models/ErrorResponse.cs +++ b/generated/Informatica/Informatica.Autorest/generated/api/Models/ErrorResponse.cs @@ -40,22 +40,22 @@ public partial class ErrorResponse : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IErrorDetailInternal)Error).Message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IErrorDetailInternal)Error).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IErrorDetailInternal)Error).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IErrorDetailInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IErrorDetailInternal)Error).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IErrorDetailInternal)Error).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IErrorDetailInternal)Error).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for Error Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ErrorDetail()); set { {_error = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IErrorDetailInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IErrorDetailInternal)Error).Message = value ?? null; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IErrorDetailInternal)Error).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IErrorDetailInternal)Error).Target = value ?? null; } /// The error target. [Microsoft.Azure.PowerShell.Cmdlets.Informatica.Origin(Microsoft.Azure.PowerShell.Cmdlets.Informatica.PropertyOrigin.Inlined)] diff --git a/generated/Informatica/Informatica.Autorest/generated/api/Models/InformaticaOrganizationResource.cs b/generated/Informatica/Informatica.Autorest/generated/api/Models/InformaticaOrganizationResource.cs index 4cb2846baaa7..9a35979a2467 100644 --- a/generated/Informatica/Informatica.Autorest/generated/api/Models/InformaticaOrganizationResource.cs +++ b/generated/Informatica/Informatica.Autorest/generated/api/Models/InformaticaOrganizationResource.cs @@ -71,47 +71,65 @@ public partial class InformaticaOrganizationResource : /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.Informatica.Origin(Microsoft.Azure.PowerShell.Cmdlets.Informatica.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ITrackedResourceInternal)__trackedResource).Location = value ; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } /// Marketplace Subscription Id [Microsoft.Azure.PowerShell.Cmdlets.Informatica.Origin(Microsoft.Azure.PowerShell.Cmdlets.Informatica.PropertyOrigin.Inlined)] public string MarketplaceDetailMarketplaceSubscriptionId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOrganizationPropertiesInternal)Property).MarketplaceDetailMarketplaceSubscriptionId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOrganizationPropertiesInternal)Property).MarketplaceDetailMarketplaceSubscriptionId = value ?? null; } /// Internal Acessors for CompanyDetail - Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ICompanyDetails Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaOrganizationResourceInternal.CompanyDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOrganizationPropertiesInternal)Property).CompanyDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOrganizationPropertiesInternal)Property).CompanyDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ICompanyDetails Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaOrganizationResourceInternal.CompanyDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOrganizationPropertiesInternal)Property).CompanyDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOrganizationPropertiesInternal)Property).CompanyDetail = value ?? null /* model class */; } /// Internal Acessors for InformaticaProperty - Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaProperties Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaOrganizationResourceInternal.InformaticaProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOrganizationPropertiesInternal)Property).InformaticaProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOrganizationPropertiesInternal)Property).InformaticaProperty = value; } + Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaProperties Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaOrganizationResourceInternal.InformaticaProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOrganizationPropertiesInternal)Property).InformaticaProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOrganizationPropertiesInternal)Property).InformaticaProperty = value ?? null /* model class */; } /// Internal Acessors for LinkOrganization - Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ILinkOrganization Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaOrganizationResourceInternal.LinkOrganization { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOrganizationPropertiesInternal)Property).LinkOrganization; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOrganizationPropertiesInternal)Property).LinkOrganization = value; } + Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ILinkOrganization Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaOrganizationResourceInternal.LinkOrganization { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOrganizationPropertiesInternal)Property).LinkOrganization; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOrganizationPropertiesInternal)Property).LinkOrganization = value ?? null /* model class */; } /// Internal Acessors for MarketplaceDetail - Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IMarketplaceDetails Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaOrganizationResourceInternal.MarketplaceDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOrganizationPropertiesInternal)Property).MarketplaceDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOrganizationPropertiesInternal)Property).MarketplaceDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IMarketplaceDetails Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaOrganizationResourceInternal.MarketplaceDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOrganizationPropertiesInternal)Property).MarketplaceDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOrganizationPropertiesInternal)Property).MarketplaceDetail = value ?? null /* model class */; } /// Internal Acessors for MarketplaceDetailOfferDetail - Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOfferDetails Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaOrganizationResourceInternal.MarketplaceDetailOfferDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOrganizationPropertiesInternal)Property).MarketplaceDetailOfferDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOrganizationPropertiesInternal)Property).MarketplaceDetailOfferDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOfferDetails Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaOrganizationResourceInternal.MarketplaceDetailOfferDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOrganizationPropertiesInternal)Property).MarketplaceDetailOfferDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOrganizationPropertiesInternal)Property).MarketplaceDetailOfferDetail = value ?? null /* model class */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOrganizationProperties Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaOrganizationResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.OrganizationProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaOrganizationResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOrganizationPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOrganizationPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaOrganizationResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOrganizationPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOrganizationPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for UserDetail - Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IUserDetails Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaOrganizationResourceInternal.UserDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOrganizationPropertiesInternal)Property).UserDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOrganizationPropertiesInternal)Property).UserDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IUserDetails Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaOrganizationResourceInternal.UserDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOrganizationPropertiesInternal)Property).UserDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOrganizationPropertiesInternal)Property).UserDetail = value ?? null /* model class */; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Informatica.Origin(Microsoft.Azure.PowerShell.Cmdlets.Informatica.PropertyOrigin.Inherited)] @@ -160,31 +178,31 @@ public partial class InformaticaOrganizationResource : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.Informatica.Origin(Microsoft.Azure.PowerShell.Cmdlets.Informatica.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__trackedResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Informatica.Origin(Microsoft.Azure.PowerShell.Cmdlets.Informatica.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Informatica.Origin(Microsoft.Azure.PowerShell.Cmdlets.Informatica.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Informatica.Origin(Microsoft.Azure.PowerShell.Cmdlets.Informatica.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Informatica.Origin(Microsoft.Azure.PowerShell.Cmdlets.Informatica.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Informatica.Origin(Microsoft.Azure.PowerShell.Cmdlets.Informatica.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Informatica.Origin(Microsoft.Azure.PowerShell.Cmdlets.Informatica.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.Informatica.Origin(Microsoft.Azure.PowerShell.Cmdlets.Informatica.PropertyOrigin.Inherited)] diff --git a/generated/Informatica/Informatica.Autorest/generated/api/Models/InformaticaServerlessRuntimeProperties.cs b/generated/Informatica/Informatica.Autorest/generated/api/Models/InformaticaServerlessRuntimeProperties.cs index ef0dfbb541c1..b85ef698464d 100644 --- a/generated/Informatica/Informatica.Autorest/generated/api/Models/InformaticaServerlessRuntimeProperties.cs +++ b/generated/Informatica/Informatica.Autorest/generated/api/Models/InformaticaServerlessRuntimeProperties.cs @@ -60,7 +60,7 @@ public partial class InformaticaServerlessRuntimeProperties : /// /// Internal Acessors for ServerlessRuntimeNetworkProfileNetworkInterfaceConfiguration /// - Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.INetworkInterfaceConfiguration Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaServerlessRuntimePropertiesInternal.ServerlessRuntimeNetworkProfileNetworkInterfaceConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IServerlessRuntimeNetworkProfileInternal)ServerlessRuntimeNetworkProfile).NetworkInterfaceConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IServerlessRuntimeNetworkProfileInternal)ServerlessRuntimeNetworkProfile).NetworkInterfaceConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.INetworkInterfaceConfiguration Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaServerlessRuntimePropertiesInternal.ServerlessRuntimeNetworkProfileNetworkInterfaceConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IServerlessRuntimeNetworkProfileInternal)ServerlessRuntimeNetworkProfile).NetworkInterfaceConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IServerlessRuntimeNetworkProfileInternal)ServerlessRuntimeNetworkProfile).NetworkInterfaceConfiguration = value ?? null /* model class */; } /// Internal Acessors for ServerlessRuntimeUserContextProperty Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IServerlessRuntimeUserContextProperties Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaServerlessRuntimePropertiesInternal.ServerlessRuntimeUserContextProperty { get => (this._serverlessRuntimeUserContextProperty = this._serverlessRuntimeUserContextProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ServerlessRuntimeUserContextProperties()); set { {_serverlessRuntimeUserContextProperty = value;} } } diff --git a/generated/Informatica/Informatica.Autorest/generated/api/Models/InformaticaServerlessRuntimeResource.cs b/generated/Informatica/Informatica.Autorest/generated/api/Models/InformaticaServerlessRuntimeResource.cs index 826bd2441faa..9c0d3cde9864 100644 --- a/generated/Informatica/Informatica.Autorest/generated/api/Models/InformaticaServerlessRuntimeResource.cs +++ b/generated/Informatica/Informatica.Autorest/generated/api/Models/InformaticaServerlessRuntimeResource.cs @@ -48,33 +48,51 @@ public partial class InformaticaServerlessRuntimeResource : Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaServerlessRuntimeProperties Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaServerlessRuntimeResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.InformaticaServerlessRuntimeProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaServerlessRuntimeResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaServerlessRuntimePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaServerlessRuntimePropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaServerlessRuntimeResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaServerlessRuntimePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaServerlessRuntimePropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for ServerlessRuntimeConfig - Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IServerlessRuntimeConfigProperties Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaServerlessRuntimeResourceInternal.ServerlessRuntimeConfig { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaServerlessRuntimePropertiesInternal)Property).ServerlessRuntimeConfig; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaServerlessRuntimePropertiesInternal)Property).ServerlessRuntimeConfig = value; } + Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IServerlessRuntimeConfigProperties Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaServerlessRuntimeResourceInternal.ServerlessRuntimeConfig { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaServerlessRuntimePropertiesInternal)Property).ServerlessRuntimeConfig; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaServerlessRuntimePropertiesInternal)Property).ServerlessRuntimeConfig = value ?? null /* model class */; } /// Internal Acessors for ServerlessRuntimeNetworkProfile - Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IServerlessRuntimeNetworkProfile Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaServerlessRuntimeResourceInternal.ServerlessRuntimeNetworkProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaServerlessRuntimePropertiesInternal)Property).ServerlessRuntimeNetworkProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaServerlessRuntimePropertiesInternal)Property).ServerlessRuntimeNetworkProfile = value; } + Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IServerlessRuntimeNetworkProfile Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaServerlessRuntimeResourceInternal.ServerlessRuntimeNetworkProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaServerlessRuntimePropertiesInternal)Property).ServerlessRuntimeNetworkProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaServerlessRuntimePropertiesInternal)Property).ServerlessRuntimeNetworkProfile = value ?? null /* model class */; } /// /// Internal Acessors for ServerlessRuntimeNetworkProfileNetworkInterfaceConfiguration /// - Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.INetworkInterfaceConfiguration Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaServerlessRuntimeResourceInternal.ServerlessRuntimeNetworkProfileNetworkInterfaceConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaServerlessRuntimePropertiesInternal)Property).ServerlessRuntimeNetworkProfileNetworkInterfaceConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaServerlessRuntimePropertiesInternal)Property).ServerlessRuntimeNetworkProfileNetworkInterfaceConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.INetworkInterfaceConfiguration Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaServerlessRuntimeResourceInternal.ServerlessRuntimeNetworkProfileNetworkInterfaceConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaServerlessRuntimePropertiesInternal)Property).ServerlessRuntimeNetworkProfileNetworkInterfaceConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaServerlessRuntimePropertiesInternal)Property).ServerlessRuntimeNetworkProfileNetworkInterfaceConfiguration = value ?? null /* model class */; } /// Internal Acessors for ServerlessRuntimeUserContextProperty - Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IServerlessRuntimeUserContextProperties Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaServerlessRuntimeResourceInternal.ServerlessRuntimeUserContextProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaServerlessRuntimePropertiesInternal)Property).ServerlessRuntimeUserContextProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaServerlessRuntimePropertiesInternal)Property).ServerlessRuntimeUserContextProperty = value; } + Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IServerlessRuntimeUserContextProperties Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaServerlessRuntimeResourceInternal.ServerlessRuntimeUserContextProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaServerlessRuntimePropertiesInternal)Property).ServerlessRuntimeUserContextProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaServerlessRuntimePropertiesInternal)Property).ServerlessRuntimeUserContextProperty = value ?? null /* model class */; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Informatica.Origin(Microsoft.Azure.PowerShell.Cmdlets.Informatica.PropertyOrigin.Inherited)] @@ -139,31 +157,31 @@ public partial class InformaticaServerlessRuntimeResource : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.Informatica.Origin(Microsoft.Azure.PowerShell.Cmdlets.Informatica.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__proxyResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Informatica.Origin(Microsoft.Azure.PowerShell.Cmdlets.Informatica.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Informatica.Origin(Microsoft.Azure.PowerShell.Cmdlets.Informatica.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Informatica.Origin(Microsoft.Azure.PowerShell.Cmdlets.Informatica.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Informatica.Origin(Microsoft.Azure.PowerShell.Cmdlets.Informatica.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Informatica.Origin(Microsoft.Azure.PowerShell.Cmdlets.Informatica.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Informatica.Origin(Microsoft.Azure.PowerShell.Cmdlets.Informatica.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" diff --git a/generated/Informatica/Informatica.Autorest/generated/api/Models/InformaticaServerlessRuntimeResourceUpdate.cs b/generated/Informatica/Informatica.Autorest/generated/api/Models/InformaticaServerlessRuntimeResourceUpdate.cs index 9ae51fd04f7c..9f1430ad74f4 100644 --- a/generated/Informatica/Informatica.Autorest/generated/api/Models/InformaticaServerlessRuntimeResourceUpdate.cs +++ b/generated/Informatica/Informatica.Autorest/generated/api/Models/InformaticaServerlessRuntimeResourceUpdate.cs @@ -37,18 +37,18 @@ public partial class InformaticaServerlessRuntimeResourceUpdate : Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IServerlessRuntimePropertiesCustomUpdate Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaServerlessRuntimeResourceUpdateInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ServerlessRuntimePropertiesCustomUpdate()); set { {_property = value;} } } /// Internal Acessors for ServerlessRuntimeConfig - Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IServerlessRuntimeConfigPropertiesUpdate Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaServerlessRuntimeResourceUpdateInternal.ServerlessRuntimeConfig { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IServerlessRuntimePropertiesCustomUpdateInternal)Property).ServerlessRuntimeConfig; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IServerlessRuntimePropertiesCustomUpdateInternal)Property).ServerlessRuntimeConfig = value; } + Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IServerlessRuntimeConfigPropertiesUpdate Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaServerlessRuntimeResourceUpdateInternal.ServerlessRuntimeConfig { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IServerlessRuntimePropertiesCustomUpdateInternal)Property).ServerlessRuntimeConfig; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IServerlessRuntimePropertiesCustomUpdateInternal)Property).ServerlessRuntimeConfig = value ?? null /* model class */; } /// Internal Acessors for ServerlessRuntimeNetworkProfile - Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IServerlessRuntimeNetworkProfileUpdate Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaServerlessRuntimeResourceUpdateInternal.ServerlessRuntimeNetworkProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IServerlessRuntimePropertiesCustomUpdateInternal)Property).ServerlessRuntimeNetworkProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IServerlessRuntimePropertiesCustomUpdateInternal)Property).ServerlessRuntimeNetworkProfile = value; } + Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IServerlessRuntimeNetworkProfileUpdate Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaServerlessRuntimeResourceUpdateInternal.ServerlessRuntimeNetworkProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IServerlessRuntimePropertiesCustomUpdateInternal)Property).ServerlessRuntimeNetworkProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IServerlessRuntimePropertiesCustomUpdateInternal)Property).ServerlessRuntimeNetworkProfile = value ?? null /* model class */; } /// /// Internal Acessors for ServerlessRuntimeNetworkProfileNetworkInterfaceConfiguration /// - Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.INetworkInterfaceConfigurationUpdate Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaServerlessRuntimeResourceUpdateInternal.ServerlessRuntimeNetworkProfileNetworkInterfaceConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IServerlessRuntimePropertiesCustomUpdateInternal)Property).ServerlessRuntimeNetworkProfileNetworkInterfaceConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IServerlessRuntimePropertiesCustomUpdateInternal)Property).ServerlessRuntimeNetworkProfileNetworkInterfaceConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.INetworkInterfaceConfigurationUpdate Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaServerlessRuntimeResourceUpdateInternal.ServerlessRuntimeNetworkProfileNetworkInterfaceConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IServerlessRuntimePropertiesCustomUpdateInternal)Property).ServerlessRuntimeNetworkProfileNetworkInterfaceConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IServerlessRuntimePropertiesCustomUpdateInternal)Property).ServerlessRuntimeNetworkProfileNetworkInterfaceConfiguration = value ?? null /* model class */; } /// Internal Acessors for ServerlessRuntimeUserContextProperty - Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IServerlessRuntimeUserContextPropertiesUpdate Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaServerlessRuntimeResourceUpdateInternal.ServerlessRuntimeUserContextProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IServerlessRuntimePropertiesCustomUpdateInternal)Property).ServerlessRuntimeUserContextProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IServerlessRuntimePropertiesCustomUpdateInternal)Property).ServerlessRuntimeUserContextProperty = value; } + Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IServerlessRuntimeUserContextPropertiesUpdate Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaServerlessRuntimeResourceUpdateInternal.ServerlessRuntimeUserContextProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IServerlessRuntimePropertiesCustomUpdateInternal)Property).ServerlessRuntimeUserContextProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IServerlessRuntimePropertiesCustomUpdateInternal)Property).ServerlessRuntimeUserContextProperty = value ?? null /* model class */; } /// Virtual network subnet resource id [Microsoft.Azure.PowerShell.Cmdlets.Informatica.Origin(Microsoft.Azure.PowerShell.Cmdlets.Informatica.PropertyOrigin.Inlined)] diff --git a/generated/Informatica/Informatica.Autorest/generated/api/Models/Operation.cs b/generated/Informatica/Informatica.Autorest/generated/api/Models/Operation.cs index 8812aec6f4c7..15730ea9828c 100644 --- a/generated/Informatica/Informatica.Autorest/generated/api/Models/Operation.cs +++ b/generated/Informatica/Informatica.Autorest/generated/api/Models/Operation.cs @@ -73,16 +73,16 @@ public partial class Operation : Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOperationDisplay Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOperationInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.OperationDisplay()); set { {_display = value;} } } /// Internal Acessors for DisplayDescription - string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOperationDisplayInternal)Display).Description = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOperationDisplayInternal)Display).Description = value ?? null; } /// Internal Acessors for DisplayOperation - string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOperationDisplayInternal)Display).Operation = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOperationDisplayInternal)Display).Operation = value ?? null; } /// Internal Acessors for DisplayProvider - string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOperationDisplayInternal)Display).Provider = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOperationDisplayInternal)Display).Provider = value ?? null; } /// Internal Acessors for DisplayResource - string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOperationDisplayInternal)Display).Resource = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOperationDisplayInternal)Display).Resource = value ?? null; } /// Internal Acessors for IsDataAction bool? Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOperationInternal.IsDataAction { get => this._isDataAction; set { {_isDataAction = value;} } } diff --git a/generated/Informatica/Informatica.Autorest/generated/api/Models/OrganizationProperties.cs b/generated/Informatica/Informatica.Autorest/generated/api/Models/OrganizationProperties.cs index d969dc9b93a0..e375055e0365 100644 --- a/generated/Informatica/Informatica.Autorest/generated/api/Models/OrganizationProperties.cs +++ b/generated/Informatica/Informatica.Autorest/generated/api/Models/OrganizationProperties.cs @@ -102,7 +102,7 @@ public partial class OrganizationProperties : Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IMarketplaceDetails Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOrganizationPropertiesInternal.MarketplaceDetail { get => (this._marketplaceDetail = this._marketplaceDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.MarketplaceDetails()); set { {_marketplaceDetail = value;} } } /// Internal Acessors for MarketplaceDetailOfferDetail - Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOfferDetails Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOrganizationPropertiesInternal.MarketplaceDetailOfferDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IMarketplaceDetailsInternal)MarketplaceDetail).OfferDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IMarketplaceDetailsInternal)MarketplaceDetail).OfferDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOfferDetails Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOrganizationPropertiesInternal.MarketplaceDetailOfferDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IMarketplaceDetailsInternal)MarketplaceDetail).OfferDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IMarketplaceDetailsInternal)MarketplaceDetail).OfferDetail = value ?? null /* model class */; } /// Internal Acessors for ProvisioningState string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOrganizationPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } diff --git a/generated/Informatica/Informatica.Autorest/generated/api/Models/OrganizationPropertiesCustomUpdate.cs b/generated/Informatica/Informatica.Autorest/generated/api/Models/OrganizationPropertiesCustomUpdate.cs index f0824785c143..88a9cbdf50da 100644 --- a/generated/Informatica/Informatica.Autorest/generated/api/Models/OrganizationPropertiesCustomUpdate.cs +++ b/generated/Informatica/Informatica.Autorest/generated/api/Models/OrganizationPropertiesCustomUpdate.cs @@ -76,7 +76,7 @@ public partial class OrganizationPropertiesCustomUpdate : Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IMarketplaceDetailsUpdate Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOrganizationPropertiesCustomUpdateInternal.MarketplaceDetail { get => (this._marketplaceDetail = this._marketplaceDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.MarketplaceDetailsUpdate()); set { {_marketplaceDetail = value;} } } /// Internal Acessors for MarketplaceDetailOfferDetail - Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOfferDetailsUpdate Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOrganizationPropertiesCustomUpdateInternal.MarketplaceDetailOfferDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IMarketplaceDetailsUpdateInternal)MarketplaceDetail).OfferDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IMarketplaceDetailsUpdateInternal)MarketplaceDetail).OfferDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOfferDetailsUpdate Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOrganizationPropertiesCustomUpdateInternal.MarketplaceDetailOfferDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IMarketplaceDetailsUpdateInternal)MarketplaceDetail).OfferDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IMarketplaceDetailsUpdateInternal)MarketplaceDetail).OfferDetail = value ?? null /* model class */; } /// Internal Acessors for UserDetail Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IUserDetailsUpdate Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IOrganizationPropertiesCustomUpdateInternal.UserDetail { get => (this._userDetail = this._userDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.UserDetailsUpdate()); set { {_userDetail = value;} } } diff --git a/generated/Informatica/Informatica.Autorest/generated/api/Models/ProxyResource.cs b/generated/Informatica/Informatica.Autorest/generated/api/Models/ProxyResource.cs index 37d44443ea89..b98819605929 100644 --- a/generated/Informatica/Informatica.Autorest/generated/api/Models/ProxyResource.cs +++ b/generated/Informatica/Informatica.Autorest/generated/api/Models/ProxyResource.cs @@ -27,16 +27,34 @@ public partial class ProxyResource : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).Id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Informatica.Origin(Microsoft.Azure.PowerShell.Cmdlets.Informatica.PropertyOrigin.Inherited)] @@ -46,31 +64,31 @@ public partial class ProxyResource : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.Informatica.Origin(Microsoft.Azure.PowerShell.Cmdlets.Informatica.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Informatica.Origin(Microsoft.Azure.PowerShell.Cmdlets.Informatica.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Informatica.Origin(Microsoft.Azure.PowerShell.Cmdlets.Informatica.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Informatica.Origin(Microsoft.Azure.PowerShell.Cmdlets.Informatica.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Informatica.Origin(Microsoft.Azure.PowerShell.Cmdlets.Informatica.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Informatica.Origin(Microsoft.Azure.PowerShell.Cmdlets.Informatica.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Informatica.Origin(Microsoft.Azure.PowerShell.Cmdlets.Informatica.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" diff --git a/generated/Informatica/Informatica.Autorest/generated/api/Models/Resource.cs b/generated/Informatica/Informatica.Autorest/generated/api/Models/Resource.cs index f65e37f5dba5..0caadedc1874 100644 --- a/generated/Informatica/Informatica.Autorest/generated/api/Models/Resource.cs +++ b/generated/Informatica/Informatica.Autorest/generated/api/Models/Resource.cs @@ -33,6 +33,24 @@ public partial class Resource : /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.Type { get => this._type; set { {_type = value;} } } @@ -54,27 +72,27 @@ public partial class Resource : /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Informatica.Origin(Microsoft.Azure.PowerShell.Cmdlets.Informatica.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Informatica.Origin(Microsoft.Azure.PowerShell.Cmdlets.Informatica.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Informatica.Origin(Microsoft.Azure.PowerShell.Cmdlets.Informatica.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Informatica.Origin(Microsoft.Azure.PowerShell.Cmdlets.Informatica.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Informatica.Origin(Microsoft.Azure.PowerShell.Cmdlets.Informatica.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Informatica.Origin(Microsoft.Azure.PowerShell.Cmdlets.Informatica.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// Backing field for property. private string _type; diff --git a/generated/Informatica/Informatica.Autorest/generated/api/Models/ServerlessRuntimePropertiesCustomUpdate.cs b/generated/Informatica/Informatica.Autorest/generated/api/Models/ServerlessRuntimePropertiesCustomUpdate.cs index dc1d659bc07a..9ec47c86f80e 100644 --- a/generated/Informatica/Informatica.Autorest/generated/api/Models/ServerlessRuntimePropertiesCustomUpdate.cs +++ b/generated/Informatica/Informatica.Autorest/generated/api/Models/ServerlessRuntimePropertiesCustomUpdate.cs @@ -57,7 +57,7 @@ public partial class ServerlessRuntimePropertiesCustomUpdate : /// /// Internal Acessors for ServerlessRuntimeNetworkProfileNetworkInterfaceConfiguration /// - Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.INetworkInterfaceConfigurationUpdate Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IServerlessRuntimePropertiesCustomUpdateInternal.ServerlessRuntimeNetworkProfileNetworkInterfaceConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IServerlessRuntimeNetworkProfileUpdateInternal)ServerlessRuntimeNetworkProfile).NetworkInterfaceConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IServerlessRuntimeNetworkProfileUpdateInternal)ServerlessRuntimeNetworkProfile).NetworkInterfaceConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.INetworkInterfaceConfigurationUpdate Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IServerlessRuntimePropertiesCustomUpdateInternal.ServerlessRuntimeNetworkProfileNetworkInterfaceConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IServerlessRuntimeNetworkProfileUpdateInternal)ServerlessRuntimeNetworkProfile).NetworkInterfaceConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IServerlessRuntimeNetworkProfileUpdateInternal)ServerlessRuntimeNetworkProfile).NetworkInterfaceConfiguration = value ?? null /* model class */; } /// Internal Acessors for ServerlessRuntimeUserContextProperty Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IServerlessRuntimeUserContextPropertiesUpdate Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IServerlessRuntimePropertiesCustomUpdateInternal.ServerlessRuntimeUserContextProperty { get => (this._serverlessRuntimeUserContextProperty = this._serverlessRuntimeUserContextProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ServerlessRuntimeUserContextPropertiesUpdate()); set { {_serverlessRuntimeUserContextProperty = value;} } } diff --git a/generated/Informatica/Informatica.Autorest/generated/api/Models/TrackedResource.cs b/generated/Informatica/Informatica.Autorest/generated/api/Models/TrackedResource.cs index 259cd06a6ff1..26bbb6490791 100644 --- a/generated/Informatica/Informatica.Autorest/generated/api/Models/TrackedResource.cs +++ b/generated/Informatica/Informatica.Autorest/generated/api/Models/TrackedResource.cs @@ -34,16 +34,34 @@ public partial class TrackedResource : public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Informatica.Origin(Microsoft.Azure.PowerShell.Cmdlets.Informatica.PropertyOrigin.Inherited)] @@ -53,31 +71,31 @@ public partial class TrackedResource : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.Informatica.Origin(Microsoft.Azure.PowerShell.Cmdlets.Informatica.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Informatica.Origin(Microsoft.Azure.PowerShell.Cmdlets.Informatica.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Informatica.Origin(Microsoft.Azure.PowerShell.Cmdlets.Informatica.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Informatica.Origin(Microsoft.Azure.PowerShell.Cmdlets.Informatica.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Informatica.Origin(Microsoft.Azure.PowerShell.Cmdlets.Informatica.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Informatica.Origin(Microsoft.Azure.PowerShell.Cmdlets.Informatica.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Informatica.Origin(Microsoft.Azure.PowerShell.Cmdlets.Informatica.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.ITrackedResourceTags _tag; @@ -117,7 +135,7 @@ public partial interface ITrackedResource : { /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, diff --git a/generated/Informatica/Informatica.Autorest/generated/cmdlets/NewAzInformaticaOrganization_CreateExpanded.cs b/generated/Informatica/Informatica.Autorest/generated/cmdlets/NewAzInformaticaOrganization_CreateExpanded.cs index 307c2099eb2a..caf5b584b322 100644 --- a/generated/Informatica/Informatica.Autorest/generated/cmdlets/NewAzInformaticaOrganization_CreateExpanded.cs +++ b/generated/Informatica/Informatica.Autorest/generated/cmdlets/NewAzInformaticaOrganization_CreateExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Informatica.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.Cmdlets; using System; - /// Create a InformaticaOrganizationResource + /// create a InformaticaOrganizationResource /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzInformaticaOrganization_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaOrganizationResource))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.Description(@"Create a InformaticaOrganizationResource")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.Description(@"create a InformaticaOrganizationResource")] [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}", ApiVersion = "2024-05-08")] public partial class NewAzInformaticaOrganization_CreateExpanded : global::System.Management.Automation.PSCmdlet, @@ -40,18 +40,9 @@ public partial class NewAzInformaticaOrganization_CreateExpanded : global::Syste /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// An Organization Resource by Informatica. private Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaOrganizationResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.InformaticaOrganizationResource(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Informatica.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.ParameterCategory.Runtime)] @@ -526,11 +517,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Informatica.Cmdlets.NewAzInformaticaOr /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Informatica.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -846,24 +832,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaOrganizationResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Informatica/Informatica.Autorest/generated/cmdlets/NewAzInformaticaOrganization_CreateViaJsonFilePath.cs b/generated/Informatica/Informatica.Autorest/generated/cmdlets/NewAzInformaticaOrganization_CreateViaJsonFilePath.cs index b094224c937c..dacfb12e23cb 100644 --- a/generated/Informatica/Informatica.Autorest/generated/cmdlets/NewAzInformaticaOrganization_CreateViaJsonFilePath.cs +++ b/generated/Informatica/Informatica.Autorest/generated/cmdlets/NewAzInformaticaOrganization_CreateViaJsonFilePath.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Informatica.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.Cmdlets; using System; - /// Create a InformaticaOrganizationResource + /// create a InformaticaOrganizationResource /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzInformaticaOrganization_CreateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaOrganizationResource))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.Description(@"Create a InformaticaOrganizationResource")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.Description(@"create a InformaticaOrganizationResource")] [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}", ApiVersion = "2024-05-08")] [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.NotSuggestDefaultParameterSet] @@ -41,17 +41,8 @@ public partial class NewAzInformaticaOrganization_CreateViaJsonFilePath : global /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Informatica.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.ParameterCategory.Runtime)] @@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Informatica.Cmdlets.NewAzInformaticaOr /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Informatica.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -583,24 +569,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaOrganizationResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Informatica/Informatica.Autorest/generated/cmdlets/NewAzInformaticaOrganization_CreateViaJsonString.cs b/generated/Informatica/Informatica.Autorest/generated/cmdlets/NewAzInformaticaOrganization_CreateViaJsonString.cs index e4adcdc6d540..9adc275fbe69 100644 --- a/generated/Informatica/Informatica.Autorest/generated/cmdlets/NewAzInformaticaOrganization_CreateViaJsonString.cs +++ b/generated/Informatica/Informatica.Autorest/generated/cmdlets/NewAzInformaticaOrganization_CreateViaJsonString.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Informatica.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.Cmdlets; using System; - /// Create a InformaticaOrganizationResource + /// create a InformaticaOrganizationResource /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzInformaticaOrganization_CreateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaOrganizationResource))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.Description(@"Create a InformaticaOrganizationResource")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.Description(@"create a InformaticaOrganizationResource")] [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}", ApiVersion = "2024-05-08")] [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.NotSuggestDefaultParameterSet] @@ -41,15 +41,6 @@ public partial class NewAzInformaticaOrganization_CreateViaJsonString : global:: /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Informatica.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Informatica.Cmdlets.NewAzInformaticaOr /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Informatica.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -581,24 +567,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaOrganizationResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Informatica/Informatica.Autorest/generated/cmdlets/NewAzInformaticaServerlessRuntime_CreateExpanded.cs b/generated/Informatica/Informatica.Autorest/generated/cmdlets/NewAzInformaticaServerlessRuntime_CreateExpanded.cs index 7ef6fbad9144..c58781761c57 100644 --- a/generated/Informatica/Informatica.Autorest/generated/cmdlets/NewAzInformaticaServerlessRuntime_CreateExpanded.cs +++ b/generated/Informatica/Informatica.Autorest/generated/cmdlets/NewAzInformaticaServerlessRuntime_CreateExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Informatica.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.Cmdlets; using System; - /// Create a InformaticaServerlessRuntimeResource + /// create a InformaticaServerlessRuntimeResource /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzInformaticaServerlessRuntime_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaServerlessRuntimeResource))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.Description(@"Create a InformaticaServerlessRuntimeResource")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.Description(@"create a InformaticaServerlessRuntimeResource")] [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}", ApiVersion = "2024-05-08")] public partial class NewAzInformaticaServerlessRuntime_CreateExpanded : global::System.Management.Automation.PSCmdlet, @@ -40,18 +40,9 @@ public partial class NewAzInformaticaServerlessRuntime_CreateExpanded : global:: /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// A Serverless Runtime environment resource by Informatica. private Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaServerlessRuntimeResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.InformaticaServerlessRuntimeResource(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// String KV pairs indicating Advanced custom properties. [global::System.Management.Automation.AllowEmptyCollection] [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "String KV pairs indicating Advanced custom properties.")] @@ -436,11 +427,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Informatica.Cmdlets.NewAzInformaticaSe /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Informatica.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -756,24 +742,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaServerlessRuntimeResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Informatica/Informatica.Autorest/generated/cmdlets/NewAzInformaticaServerlessRuntime_CreateViaJsonFilePath.cs b/generated/Informatica/Informatica.Autorest/generated/cmdlets/NewAzInformaticaServerlessRuntime_CreateViaJsonFilePath.cs index 8cd9755be012..81f6dcf0fac3 100644 --- a/generated/Informatica/Informatica.Autorest/generated/cmdlets/NewAzInformaticaServerlessRuntime_CreateViaJsonFilePath.cs +++ b/generated/Informatica/Informatica.Autorest/generated/cmdlets/NewAzInformaticaServerlessRuntime_CreateViaJsonFilePath.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Informatica.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.Cmdlets; using System; - /// Create a InformaticaServerlessRuntimeResource + /// create a InformaticaServerlessRuntimeResource /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzInformaticaServerlessRuntime_CreateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaServerlessRuntimeResource))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.Description(@"Create a InformaticaServerlessRuntimeResource")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.Description(@"create a InformaticaServerlessRuntimeResource")] [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}", ApiVersion = "2024-05-08")] [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.NotSuggestDefaultParameterSet] @@ -41,17 +41,8 @@ public partial class NewAzInformaticaServerlessRuntime_CreateViaJsonFilePath : g /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Informatica.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.ParameterCategory.Runtime)] @@ -278,11 +269,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Informatica.Cmdlets.NewAzInformaticaSe /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Informatica.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -598,24 +584,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaServerlessRuntimeResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Informatica/Informatica.Autorest/generated/cmdlets/NewAzInformaticaServerlessRuntime_CreateViaJsonString.cs b/generated/Informatica/Informatica.Autorest/generated/cmdlets/NewAzInformaticaServerlessRuntime_CreateViaJsonString.cs index b585c6121131..b14220cc0e1e 100644 --- a/generated/Informatica/Informatica.Autorest/generated/cmdlets/NewAzInformaticaServerlessRuntime_CreateViaJsonString.cs +++ b/generated/Informatica/Informatica.Autorest/generated/cmdlets/NewAzInformaticaServerlessRuntime_CreateViaJsonString.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Informatica.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.Cmdlets; using System; - /// Create a InformaticaServerlessRuntimeResource + /// create a InformaticaServerlessRuntimeResource /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzInformaticaServerlessRuntime_CreateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaServerlessRuntimeResource))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.Description(@"Create a InformaticaServerlessRuntimeResource")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.Description(@"create a InformaticaServerlessRuntimeResource")] [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}", ApiVersion = "2024-05-08")] [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.NotSuggestDefaultParameterSet] @@ -41,15 +41,6 @@ public partial class NewAzInformaticaServerlessRuntime_CreateViaJsonString : glo /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Informatica.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.ParameterCategory.Runtime)] @@ -276,11 +267,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Informatica.Cmdlets.NewAzInformaticaSe /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Informatica.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -596,24 +582,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaServerlessRuntimeResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Informatica/Informatica.Autorest/generated/cmdlets/RemoveAzInformaticaOrganization_Delete.cs b/generated/Informatica/Informatica.Autorest/generated/cmdlets/RemoveAzInformaticaOrganization_Delete.cs index 6fe45af68330..6a5849182b3c 100644 --- a/generated/Informatica/Informatica.Autorest/generated/cmdlets/RemoveAzInformaticaOrganization_Delete.cs +++ b/generated/Informatica/Informatica.Autorest/generated/cmdlets/RemoveAzInformaticaOrganization_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzInformaticaOrganization_Delete : global::System.Man /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Informatica.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Informatica.Cmdlets.RemoveAzInformatic /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Informatica.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -577,7 +563,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -601,7 +587,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Informatica/Informatica.Autorest/generated/cmdlets/RemoveAzInformaticaOrganization_DeleteViaIdentity.cs b/generated/Informatica/Informatica.Autorest/generated/cmdlets/RemoveAzInformaticaOrganization_DeleteViaIdentity.cs index 4fdb05ae37bf..c350c37a9852 100644 --- a/generated/Informatica/Informatica.Autorest/generated/cmdlets/RemoveAzInformaticaOrganization_DeleteViaIdentity.cs +++ b/generated/Informatica/Informatica.Autorest/generated/cmdlets/RemoveAzInformaticaOrganization_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzInformaticaOrganization_DeleteViaIdentity : global: /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Informatica.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Informatica.Cmdlets.RemoveAzInformatic /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Informatica.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -554,7 +540,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -578,7 +564,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Informatica/Informatica.Autorest/generated/cmdlets/RemoveAzInformaticaServerlessRuntime_Delete.cs b/generated/Informatica/Informatica.Autorest/generated/cmdlets/RemoveAzInformaticaServerlessRuntime_Delete.cs index e3bd7a34b7a8..fcacb1a7b8e9 100644 --- a/generated/Informatica/Informatica.Autorest/generated/cmdlets/RemoveAzInformaticaServerlessRuntime_Delete.cs +++ b/generated/Informatica/Informatica.Autorest/generated/cmdlets/RemoveAzInformaticaServerlessRuntime_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzInformaticaServerlessRuntime_Delete : global::Syste /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Informatica.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.ParameterCategory.Runtime)] @@ -276,11 +267,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Informatica.Cmdlets.RemoveAzInformatic /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Informatica.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -592,7 +578,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -616,7 +602,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Informatica/Informatica.Autorest/generated/cmdlets/RemoveAzInformaticaServerlessRuntime_DeleteViaIdentity.cs b/generated/Informatica/Informatica.Autorest/generated/cmdlets/RemoveAzInformaticaServerlessRuntime_DeleteViaIdentity.cs index b6ff96a1f9d4..707c63cd40d4 100644 --- a/generated/Informatica/Informatica.Autorest/generated/cmdlets/RemoveAzInformaticaServerlessRuntime_DeleteViaIdentity.cs +++ b/generated/Informatica/Informatica.Autorest/generated/cmdlets/RemoveAzInformaticaServerlessRuntime_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzInformaticaServerlessRuntime_DeleteViaIdentity : gl /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Informatica.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Informatica.Cmdlets.RemoveAzInformatic /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Informatica.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -558,7 +544,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -582,7 +568,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Informatica/Informatica.Autorest/generated/cmdlets/RemoveAzInformaticaServerlessRuntime_DeleteViaIdentityOrganization.cs b/generated/Informatica/Informatica.Autorest/generated/cmdlets/RemoveAzInformaticaServerlessRuntime_DeleteViaIdentityOrganization.cs index ae25663b6458..beb564b67bd7 100644 --- a/generated/Informatica/Informatica.Autorest/generated/cmdlets/RemoveAzInformaticaServerlessRuntime_DeleteViaIdentityOrganization.cs +++ b/generated/Informatica/Informatica.Autorest/generated/cmdlets/RemoveAzInformaticaServerlessRuntime_DeleteViaIdentityOrganization.cs @@ -40,15 +40,6 @@ public partial class RemoveAzInformaticaServerlessRuntime_DeleteViaIdentityOrgan /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Informatica.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.ParameterCategory.Runtime)] @@ -236,11 +227,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Informatica.Cmdlets.RemoveAzInformatic /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Informatica.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -574,7 +560,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -598,7 +584,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Informatica/Informatica.Autorest/generated/cmdlets/StartAzInformaticaServerlessRuntimeFailedServerlessRuntime_Start.cs b/generated/Informatica/Informatica.Autorest/generated/cmdlets/StartAzInformaticaServerlessRuntimeFailedServerlessRuntime_Start.cs index 7d941376ee99..005dd8f344d8 100644 --- a/generated/Informatica/Informatica.Autorest/generated/cmdlets/StartAzInformaticaServerlessRuntimeFailedServerlessRuntime_Start.cs +++ b/generated/Informatica/Informatica.Autorest/generated/cmdlets/StartAzInformaticaServerlessRuntimeFailedServerlessRuntime_Start.cs @@ -499,7 +499,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Informatica/Informatica.Autorest/generated/cmdlets/StartAzInformaticaServerlessRuntimeFailedServerlessRuntime_StartViaIdentity.cs b/generated/Informatica/Informatica.Autorest/generated/cmdlets/StartAzInformaticaServerlessRuntimeFailedServerlessRuntime_StartViaIdentity.cs index eebe3e73ed9b..63bd72673f31 100644 --- a/generated/Informatica/Informatica.Autorest/generated/cmdlets/StartAzInformaticaServerlessRuntimeFailedServerlessRuntime_StartViaIdentity.cs +++ b/generated/Informatica/Informatica.Autorest/generated/cmdlets/StartAzInformaticaServerlessRuntimeFailedServerlessRuntime_StartViaIdentity.cs @@ -470,7 +470,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Informatica/Informatica.Autorest/generated/cmdlets/StartAzInformaticaServerlessRuntimeFailedServerlessRuntime_StartViaIdentityOrganization.cs b/generated/Informatica/Informatica.Autorest/generated/cmdlets/StartAzInformaticaServerlessRuntimeFailedServerlessRuntime_StartViaIdentityOrganization.cs index 2a5d05f0cb68..a94ac33d79f0 100644 --- a/generated/Informatica/Informatica.Autorest/generated/cmdlets/StartAzInformaticaServerlessRuntimeFailedServerlessRuntime_StartViaIdentityOrganization.cs +++ b/generated/Informatica/Informatica.Autorest/generated/cmdlets/StartAzInformaticaServerlessRuntimeFailedServerlessRuntime_StartViaIdentityOrganization.cs @@ -481,7 +481,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Informatica/Informatica.Autorest/generated/cmdlets/UpdateAzInformaticaOrganization_UpdateExpanded.cs b/generated/Informatica/Informatica.Autorest/generated/cmdlets/UpdateAzInformaticaOrganization_UpdateExpanded.cs index 93a27f4164c6..8846d983611d 100644 --- a/generated/Informatica/Informatica.Autorest/generated/cmdlets/UpdateAzInformaticaOrganization_UpdateExpanded.cs +++ b/generated/Informatica/Informatica.Autorest/generated/cmdlets/UpdateAzInformaticaOrganization_UpdateExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Informatica.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.Cmdlets; using System; - /// Update a InformaticaOrganizationResource + /// update a InformaticaOrganizationResource /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzInformaticaOrganization_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaOrganizationResource))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.Description(@"Update a InformaticaOrganizationResource")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.Description(@"update a InformaticaOrganizationResource")] [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}", ApiVersion = "2024-05-08")] public partial class UpdateAzInformaticaOrganization_UpdateExpanded : global::System.Management.Automation.PSCmdlet, diff --git a/generated/Informatica/Informatica.Autorest/generated/cmdlets/UpdateAzInformaticaOrganization_UpdateViaIdentityExpanded.cs b/generated/Informatica/Informatica.Autorest/generated/cmdlets/UpdateAzInformaticaOrganization_UpdateViaIdentityExpanded.cs index 40ddc652388a..d6b3e8eee2fc 100644 --- a/generated/Informatica/Informatica.Autorest/generated/cmdlets/UpdateAzInformaticaOrganization_UpdateViaIdentityExpanded.cs +++ b/generated/Informatica/Informatica.Autorest/generated/cmdlets/UpdateAzInformaticaOrganization_UpdateViaIdentityExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Informatica.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.Cmdlets; using System; - /// Update a InformaticaOrganizationResource + /// update a InformaticaOrganizationResource /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzInformaticaOrganization_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaOrganizationResource))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.Description(@"Update a InformaticaOrganizationResource")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.Description(@"update a InformaticaOrganizationResource")] [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}", ApiVersion = "2024-05-08")] public partial class UpdateAzInformaticaOrganization_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, diff --git a/generated/Informatica/Informatica.Autorest/generated/cmdlets/UpdateAzInformaticaOrganization_UpdateViaJsonFilePath.cs b/generated/Informatica/Informatica.Autorest/generated/cmdlets/UpdateAzInformaticaOrganization_UpdateViaJsonFilePath.cs index af1ed7a801d4..e8863ed85b8b 100644 --- a/generated/Informatica/Informatica.Autorest/generated/cmdlets/UpdateAzInformaticaOrganization_UpdateViaJsonFilePath.cs +++ b/generated/Informatica/Informatica.Autorest/generated/cmdlets/UpdateAzInformaticaOrganization_UpdateViaJsonFilePath.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Informatica.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.Cmdlets; using System; - /// Update a InformaticaOrganizationResource + /// update a InformaticaOrganizationResource /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzInformaticaOrganization_UpdateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaOrganizationResource))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.Description(@"Update a InformaticaOrganizationResource")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.Description(@"update a InformaticaOrganizationResource")] [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}", ApiVersion = "2024-05-08")] [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.NotSuggestDefaultParameterSet] diff --git a/generated/Informatica/Informatica.Autorest/generated/cmdlets/UpdateAzInformaticaOrganization_UpdateViaJsonString.cs b/generated/Informatica/Informatica.Autorest/generated/cmdlets/UpdateAzInformaticaOrganization_UpdateViaJsonString.cs index c83bb3d245a6..113988283d72 100644 --- a/generated/Informatica/Informatica.Autorest/generated/cmdlets/UpdateAzInformaticaOrganization_UpdateViaJsonString.cs +++ b/generated/Informatica/Informatica.Autorest/generated/cmdlets/UpdateAzInformaticaOrganization_UpdateViaJsonString.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Informatica.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.Cmdlets; using System; - /// Update a InformaticaOrganizationResource + /// update a InformaticaOrganizationResource /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzInformaticaOrganization_UpdateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaOrganizationResource))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.Description(@"Update a InformaticaOrganizationResource")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.Description(@"update a InformaticaOrganizationResource")] [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}", ApiVersion = "2024-05-08")] [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.NotSuggestDefaultParameterSet] diff --git a/generated/Informatica/Informatica.Autorest/generated/cmdlets/UpdateAzInformaticaServerlessRuntime_UpdateExpanded.cs b/generated/Informatica/Informatica.Autorest/generated/cmdlets/UpdateAzInformaticaServerlessRuntime_UpdateExpanded.cs index 9e389d218a83..1fc9489688d2 100644 --- a/generated/Informatica/Informatica.Autorest/generated/cmdlets/UpdateAzInformaticaServerlessRuntime_UpdateExpanded.cs +++ b/generated/Informatica/Informatica.Autorest/generated/cmdlets/UpdateAzInformaticaServerlessRuntime_UpdateExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Informatica.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.Cmdlets; using System; - /// Update a InformaticaServerlessRuntimeResource + /// update a InformaticaServerlessRuntimeResource /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzInformaticaServerlessRuntime_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaServerlessRuntimeResource))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.Description(@"Update a InformaticaServerlessRuntimeResource")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.Description(@"update a InformaticaServerlessRuntimeResource")] [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}", ApiVersion = "2024-05-08")] public partial class UpdateAzInformaticaServerlessRuntime_UpdateExpanded : global::System.Management.Automation.PSCmdlet, diff --git a/generated/Informatica/Informatica.Autorest/generated/cmdlets/UpdateAzInformaticaServerlessRuntime_UpdateViaIdentityExpanded.cs b/generated/Informatica/Informatica.Autorest/generated/cmdlets/UpdateAzInformaticaServerlessRuntime_UpdateViaIdentityExpanded.cs index f9b7eb9c896a..f6af0bc02839 100644 --- a/generated/Informatica/Informatica.Autorest/generated/cmdlets/UpdateAzInformaticaServerlessRuntime_UpdateViaIdentityExpanded.cs +++ b/generated/Informatica/Informatica.Autorest/generated/cmdlets/UpdateAzInformaticaServerlessRuntime_UpdateViaIdentityExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Informatica.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.Cmdlets; using System; - /// Update a InformaticaServerlessRuntimeResource + /// update a InformaticaServerlessRuntimeResource /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzInformaticaServerlessRuntime_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaServerlessRuntimeResource))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.Description(@"Update a InformaticaServerlessRuntimeResource")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.Description(@"update a InformaticaServerlessRuntimeResource")] [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}", ApiVersion = "2024-05-08")] public partial class UpdateAzInformaticaServerlessRuntime_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, diff --git a/generated/Informatica/Informatica.Autorest/generated/cmdlets/UpdateAzInformaticaServerlessRuntime_UpdateViaIdentityOrganizationExpanded.cs b/generated/Informatica/Informatica.Autorest/generated/cmdlets/UpdateAzInformaticaServerlessRuntime_UpdateViaIdentityOrganizationExpanded.cs index e3c4fc35cc25..049e916d73da 100644 --- a/generated/Informatica/Informatica.Autorest/generated/cmdlets/UpdateAzInformaticaServerlessRuntime_UpdateViaIdentityOrganizationExpanded.cs +++ b/generated/Informatica/Informatica.Autorest/generated/cmdlets/UpdateAzInformaticaServerlessRuntime_UpdateViaIdentityOrganizationExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Informatica.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.Cmdlets; using System; - /// Update a InformaticaServerlessRuntimeResource + /// update a InformaticaServerlessRuntimeResource /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzInformaticaServerlessRuntime_UpdateViaIdentityOrganizationExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaServerlessRuntimeResource))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.Description(@"Update a InformaticaServerlessRuntimeResource")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.Description(@"update a InformaticaServerlessRuntimeResource")] [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}", ApiVersion = "2024-05-08")] public partial class UpdateAzInformaticaServerlessRuntime_UpdateViaIdentityOrganizationExpanded : global::System.Management.Automation.PSCmdlet, diff --git a/generated/Informatica/Informatica.Autorest/generated/cmdlets/UpdateAzInformaticaServerlessRuntime_UpdateViaJsonFilePath.cs b/generated/Informatica/Informatica.Autorest/generated/cmdlets/UpdateAzInformaticaServerlessRuntime_UpdateViaJsonFilePath.cs index e0cdc7b81f75..da25513e99ce 100644 --- a/generated/Informatica/Informatica.Autorest/generated/cmdlets/UpdateAzInformaticaServerlessRuntime_UpdateViaJsonFilePath.cs +++ b/generated/Informatica/Informatica.Autorest/generated/cmdlets/UpdateAzInformaticaServerlessRuntime_UpdateViaJsonFilePath.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Informatica.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.Cmdlets; using System; - /// Update a InformaticaServerlessRuntimeResource + /// update a InformaticaServerlessRuntimeResource /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzInformaticaServerlessRuntime_UpdateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaServerlessRuntimeResource))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.Description(@"Update a InformaticaServerlessRuntimeResource")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.Description(@"update a InformaticaServerlessRuntimeResource")] [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}", ApiVersion = "2024-05-08")] [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.NotSuggestDefaultParameterSet] diff --git a/generated/Informatica/Informatica.Autorest/generated/cmdlets/UpdateAzInformaticaServerlessRuntime_UpdateViaJsonString.cs b/generated/Informatica/Informatica.Autorest/generated/cmdlets/UpdateAzInformaticaServerlessRuntime_UpdateViaJsonString.cs index 42e53147f79d..1c79c016270a 100644 --- a/generated/Informatica/Informatica.Autorest/generated/cmdlets/UpdateAzInformaticaServerlessRuntime_UpdateViaJsonString.cs +++ b/generated/Informatica/Informatica.Autorest/generated/cmdlets/UpdateAzInformaticaServerlessRuntime_UpdateViaJsonString.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Informatica.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.Cmdlets; using System; - /// Update a InformaticaServerlessRuntimeResource + /// update a InformaticaServerlessRuntimeResource /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzInformaticaServerlessRuntime_UpdateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Informatica.Models.IInformaticaServerlessRuntimeResource))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.Description(@"Update a InformaticaServerlessRuntimeResource")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.Description(@"update a InformaticaServerlessRuntimeResource")] [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}", ApiVersion = "2024-05-08")] [global::Microsoft.Azure.PowerShell.Cmdlets.Informatica.NotSuggestDefaultParameterSet] diff --git a/generated/Informatica/Informatica.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/Informatica/Informatica.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs index db5f8d269fcd..19485035358a 100644 --- a/generated/Informatica/Informatica.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/generated/Informatica/Informatica.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs @@ -36,14 +36,23 @@ internal class PsHelpInfo public object Role { get; } public string NonTerminatingErrors { get; } + public static string CapitalizeFirstLetter(string text) + { + if (string.IsNullOrEmpty(text)) + return text; + + return char.ToUpper(text[0]) + text.Substring(1); + } + public PsHelpInfo(PSObject helpObject = null) { helpObject = helpObject ?? new PSObject(); CmdletName = helpObject.GetProperty("Name").NullIfEmpty() ?? helpObject.GetNestedProperty("details", "name"); ModuleName = helpObject.GetProperty("ModuleName"); - Synopsis = helpObject.GetProperty("Synopsis"); + Synopsis = CapitalizeFirstLetter(helpObject.GetProperty("Synopsis")); Description = helpObject.GetProperty("description").EmptyIfNull().ToDescriptionText().NullIfEmpty() ?? helpObject.GetNestedProperty("details", "description").EmptyIfNull().ToDescriptionText(); + Description = CapitalizeFirstLetter(Description); AlertText = helpObject.GetNestedProperty("alertSet", "alert").EmptyIfNull().ToDescriptionText(); Category = helpObject.GetProperty("Category"); HasCommonParameters = helpObject.GetProperty("CommonParameters").ToNullableBool(); diff --git a/generated/Informatica/Informatica.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/Informatica/Informatica.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index c1dafdac6e83..01aaf2f8f83f 100644 --- a/generated/Informatica/Informatica.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/Informatica/Informatica.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -216,6 +216,20 @@ public string GetProcessCustomAttributesAtRuntime() {Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)"; } + private string GetLoginVerification() + { + if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) + { + return $@" +{Indent}{Indent}$context = Get-AzContext +{Indent}{Indent}if (-not $context -and -not $testPlayback) {{ +{Indent}{Indent}{Indent}throw ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" +{Indent}{Indent}}} +"; + } + return ""; + } + private string GetTelemetry() { if (!VariantGroup.IsInternal && IsAzure) @@ -248,10 +262,16 @@ public override string ToString() => $@"begin {{ {Indent}{Indent}{Indent}$PSBoundParameters['OutBuffer'] = 1 {Indent}{Indent}}} {Indent}{Indent}$parameterSet = $PSCmdlet.ParameterSetName -{GetTelemetry()} +{Indent}{Indent} +{Indent}{Indent}$testPlayback = $false +{Indent}{Indent}$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object {{ if ($_) {{ $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) }} }} +{GetLoginVerification()}{GetTelemetry()} {GetParameterSetToCmdletMapping()}{GetDefaultValuesStatements()} {GetProcessCustomAttributesAtRuntime()} {Indent}{Indent}$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) +{Indent}{Indent}if ($wrappedCmd -eq $null) {{ +{Indent}{Indent}{Indent}$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) +{Indent}{Indent}}} {Indent}{Indent}$scriptCmd = {{& $wrappedCmd @PSBoundParameters}} {Indent}{Indent}$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) {Indent}{Indent}$steppablePipeline.Begin($PSCmdlet) @@ -295,8 +315,6 @@ private string GetDefaultValuesStatements() if ("SubscriptionId".Equals(parameterName)) { sb.AppendLine($"{Indent}{Indent}if (({variantListString}) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('{parameterName}'){setCondition}) {{"); - sb.AppendLine($"{Indent}{Indent}{Indent}$testPlayback = $false"); - sb.AppendLine($"{Indent}{Indent}{Indent}$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object {{ if ($_) {{ $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Informatica.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 {{"); diff --git a/generated/Informatica/Informatica.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/Informatica/Informatica.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs index 1e421d3d712c..2cc662e783c7 100644 --- a/generated/Informatica/Informatica.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/generated/Informatica/Informatica.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs @@ -49,6 +49,7 @@ internal class VariantGroup public PsHelpInfo HelpInfo { get; } public bool IsGenerated { get; } public bool IsInternal { get; } + public bool IsModelCmdlet { get; } public string OutputFolder { get; } public string FileName { get; } public string FilePath { get; } @@ -83,6 +84,7 @@ public VariantGroup(string moduleName, string cmdletName, Variant[] variants, st HelpInfo = Variants.Select(v => v.HelpInfo).FirstOrDefault() ?? new PsHelpInfo(); IsGenerated = Variants.All(v => v.Attributes.OfType().Any()); IsInternal = isInternal; + IsModelCmdlet = Variants.All(v => v.IsModelCmdlet); OutputFolder = outputFolder; FileName = $"{CmdletName}{(isTest ? ".Tests" : String.Empty)}.ps1"; FilePath = Path.Combine(OutputFolder, FileName); @@ -143,6 +145,7 @@ internal class Variant public Parameter[] Parameters { get; } public Parameter[] CmdletOnlyParameters { get; } public bool IsInternal { get; } + public bool IsModelCmdlet { get; } public bool IsDoNotExport { get; } public bool IsNotSuggestDefaultParameterSet { get; } public string[] Profiles { get; } @@ -165,6 +168,7 @@ public Variant(string cmdletName, string variantName, CommandInfo info, CommandM Parameters = this.ToParameters().OrderBy(p => p.OrderCategory).ThenByDescending(p => p.IsMandatory).ToArray(); IsInternal = Attributes.OfType().Any(); IsDoNotExport = Attributes.OfType().Any(); + IsModelCmdlet = Attributes.OfType().Any(); IsNotSuggestDefaultParameterSet = Attributes.OfType().Any(); CmdletOnlyParameters = Parameters.Where(p => !p.Categories.Any(c => c == ParameterCategory.Azure || c == ParameterCategory.Runtime)).ToArray(); Profiles = Attributes.OfType().SelectMany(pa => pa.Profiles).ToArray(); @@ -388,6 +392,7 @@ public CommentInfo(VariantGroup variantGroup) var helpInfo = variantGroup.HelpInfo; Description = variantGroup.Variants.SelectMany(v => v.Attributes).OfType().FirstOrDefault()?.Description.NullIfEmpty() ?? helpInfo.Description.EmptyIfNull(); + Description = PsHelpInfo.CapitalizeFirstLetter(Description); // If there is no Synopsis, PowerShell may put in the Syntax string as the Synopsis. This seems unintended, so we remove the Synopsis in this situation. var synopsis = helpInfo.Synopsis.EmptyIfNull().Trim().StartsWith(variantGroup.CmdletName) ? String.Empty : helpInfo.Synopsis; Synopsis = synopsis.NullIfEmpty() ?? Description; diff --git a/generated/Informatica/Informatica.Autorest/generated/runtime/BuildTime/PsAttributes.cs b/generated/Informatica/Informatica.Autorest/generated/runtime/BuildTime/PsAttributes.cs index c7a530b4f0c0..fd71b80a00e3 100644 --- a/generated/Informatica/Informatica.Autorest/generated/runtime/BuildTime/PsAttributes.cs +++ b/generated/Informatica/Informatica.Autorest/generated/runtime/BuildTime/PsAttributes.cs @@ -22,6 +22,11 @@ public class DoNotExportAttribute : Attribute { } + [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property)] + public class ModelCmdletAttribute : Attribute + { + } + [AttributeUsage(AttributeTargets.Class)] public class InternalExportAttribute : Attribute { diff --git a/generated/Informatica/Informatica.Autorest/generated/runtime/Context.cs b/generated/Informatica/Informatica.Autorest/generated/runtime/Context.cs index 3a060ab4884b..80e8f0a7dbf7 100644 --- a/generated/Informatica/Informatica.Autorest/generated/runtime/Context.cs +++ b/generated/Informatica/Informatica.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime /// The IContext Interface defines the communication mechanism for input customization. /// /// - /// In the context, we will have client, pipeline, PSBoundParamters, default EventListener, Cancellation. + /// In the context, we will have client, pipeline, PSBoundParameters, default EventListener, Cancellation. /// public interface IContext { diff --git a/generated/Informatica/Informatica.Autorest/generated/runtime/MessageAttribute.cs b/generated/Informatica/Informatica.Autorest/generated/runtime/MessageAttribute.cs index 2f45091783b3..6b6c905272ef 100644 --- a/generated/Informatica/Informatica.Autorest/generated/runtime/MessageAttribute.cs +++ b/generated/Informatica/Informatica.Autorest/generated/runtime/MessageAttribute.cs @@ -16,9 +16,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime public class GenericBreakingChangeAttribute : Attribute { private string _message; - //A dexcription of what the change is about, non mandatory + //A description of what the change is about, non mandatory public string ChangeDescription { get; set; } = null; + //Name of the module that is being deprecated + public string moduleName { get; set; } = String.IsNullOrEmpty(@"") ? @"Az.Informatica" : @""; + //The version the change is effective from, non mandatory public string DeprecateByVersion { get; } public string DeprecateByAzVersion { get; } @@ -82,7 +85,7 @@ public void PrintCustomAttributeInfo(Action writeOutput) } writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByAzVersion, this.DeprecateByAzVersion)); - writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.DeprecateByVersion)); + writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.moduleName, this.DeprecateByVersion)); if (OldWay != null && NewWay != null) { @@ -191,11 +194,11 @@ public PreviewMessageAttribute(string message, string estimatedDateOfGa) : this( this.IsEstimatedGaDateSet = true; } } - + public void PrintCustomAttributeInfo(Action writeOutput) { writeOutput(this._message); - + if (IsEstimatedGaDateSet) { writeOutput(string.Format(Resources.PreviewCmdletETAMessage, this.EstimatedGaDate.ToShortDateString())); diff --git a/generated/Informatica/Informatica.Autorest/generated/runtime/Properties/Resources.resx b/generated/Informatica/Informatica.Autorest/generated/runtime/Properties/Resources.resx index a08a2e50172b..4ef90b70573d 100644 --- a/generated/Informatica/Informatica.Autorest/generated/runtime/Properties/Resources.resx +++ b/generated/Informatica/Informatica.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 version : '{0}' +- The change is expected to take effect in '{0}' from version : '{1}' ```powershell diff --git a/generated/Informatica/Informatica.Autorest/internal/Get-AzInformaticaOperation.ps1 b/generated/Informatica/Informatica.Autorest/internal/Get-AzInformaticaOperation.ps1 index 5022de21268e..1e0677cdaf87 100644 --- a/generated/Informatica/Informatica.Autorest/internal/Get-AzInformaticaOperation.ps1 +++ b/generated/Informatica/Informatica.Autorest/internal/Get-AzInformaticaOperation.ps1 @@ -90,11 +90,17 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ List = 'Az.Informatica.private\Get-AzInformaticaOperation_List'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Informatica/Informatica.Autorest/internal/ProxyCmdletDefinitions.ps1 b/generated/Informatica/Informatica.Autorest/internal/ProxyCmdletDefinitions.ps1 index 5022de21268e..1e0677cdaf87 100644 --- a/generated/Informatica/Informatica.Autorest/internal/ProxyCmdletDefinitions.ps1 +++ b/generated/Informatica/Informatica.Autorest/internal/ProxyCmdletDefinitions.ps1 @@ -90,11 +90,17 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Informatica.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ List = 'Az.Informatica.private\Get-AzInformaticaOperation_List'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/src/ImageBuilder/ImageBuilder.Autorest/resources/README.md b/generated/Informatica/Informatica.Autorest/resources/README.md similarity index 100% rename from src/ImageBuilder/ImageBuilder.Autorest/resources/README.md rename to generated/Informatica/Informatica.Autorest/resources/README.md diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Get-AzIoTOperationsServiceBroker.ps1 b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Get-AzIoTOperationsServiceBroker.ps1 index 626613bf8e39..942fc10abd5f 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Get-AzIoTOperationsServiceBroker.ps1 +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Get-AzIoTOperationsServiceBroker.ps1 @@ -169,8 +169,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Get-AzIoTOperationsServiceBrokerAuthentication.ps1 b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Get-AzIoTOperationsServiceBrokerAuthentication.ps1 index 7f4185917659..45c9e719b6a0 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Get-AzIoTOperationsServiceBrokerAuthentication.ps1 +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Get-AzIoTOperationsServiceBrokerAuthentication.ps1 @@ -196,8 +196,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Get-AzIoTOperationsServiceBrokerAuthorization.ps1 b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Get-AzIoTOperationsServiceBrokerAuthorization.ps1 index 2f20d49acfae..32486530e526 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Get-AzIoTOperationsServiceBrokerAuthorization.ps1 +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Get-AzIoTOperationsServiceBrokerAuthorization.ps1 @@ -196,8 +196,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Get-AzIoTOperationsServiceBrokerListener.ps1 b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Get-AzIoTOperationsServiceBrokerListener.ps1 index 3b5dd378918c..de5af4c08a82 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Get-AzIoTOperationsServiceBrokerListener.ps1 +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Get-AzIoTOperationsServiceBrokerListener.ps1 @@ -196,8 +196,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Get-AzIoTOperationsServiceDataflow.ps1 b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Get-AzIoTOperationsServiceDataflow.ps1 index 75f52c021f77..51dd99056fcd 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Get-AzIoTOperationsServiceDataflow.ps1 +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Get-AzIoTOperationsServiceDataflow.ps1 @@ -199,8 +199,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Get-AzIoTOperationsServiceDataflowEndpoint.ps1 b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Get-AzIoTOperationsServiceDataflowEndpoint.ps1 index c4618dc0f506..e0638f68d84a 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Get-AzIoTOperationsServiceDataflowEndpoint.ps1 +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Get-AzIoTOperationsServiceDataflowEndpoint.ps1 @@ -169,8 +169,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Get-AzIoTOperationsServiceDataflowProfile.ps1 b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Get-AzIoTOperationsServiceDataflowProfile.ps1 index 3db548309a31..1e3d170ab614 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Get-AzIoTOperationsServiceDataflowProfile.ps1 +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Get-AzIoTOperationsServiceDataflowProfile.ps1 @@ -169,8 +169,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Get-AzIoTOperationsServiceInstance.ps1 b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Get-AzIoTOperationsServiceInstance.ps1 index ac5430d668ea..a471367a0cd5 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Get-AzIoTOperationsServiceInstance.ps1 +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Get-AzIoTOperationsServiceInstance.ps1 @@ -143,8 +143,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/New-AzIoTOperationsServiceBroker.ps1 b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/New-AzIoTOperationsServiceBroker.ps1 index 72d3cb33b02e..601dcca2d01e 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/New-AzIoTOperationsServiceBroker.ps1 +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/New-AzIoTOperationsServiceBroker.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a BrokerResource +Create a BrokerResource .Description -create a BrokerResource +Create a BrokerResource .Example New-AzIoTOperationsServiceBroker -InstanceName "aio-instance-name" -Name "my-broker" -ResourceGroupName "aio-validation-116116143" -ExtendedLocationName "/subscriptions/d4ccd08b-0809-446d-a8b7-7af8a90109cd/resourceGroups/aio-validation-116116143/providers/Microsoft.ExtendedLocation/customLocations/location-116116143" @@ -390,8 +390,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/New-AzIoTOperationsServiceBrokerAuthentication.ps1 b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/New-AzIoTOperationsServiceBrokerAuthentication.ps1 index a51a47e13a52..e1a0304cef0c 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/New-AzIoTOperationsServiceBrokerAuthentication.ps1 +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/New-AzIoTOperationsServiceBrokerAuthentication.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a BrokerAuthenticationResource +Create a BrokerAuthenticationResource .Description -create a BrokerAuthenticationResource +Create a BrokerAuthenticationResource .Example New-AzIoTOperationsServiceBrokerAuthentication ` -AuthenticationName "my-authn" ` @@ -195,8 +195,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/New-AzIoTOperationsServiceBrokerAuthorization.ps1 b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/New-AzIoTOperationsServiceBrokerAuthorization.ps1 index b9cc64b9a698..b4b4ba79728c 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/New-AzIoTOperationsServiceBrokerAuthorization.ps1 +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/New-AzIoTOperationsServiceBrokerAuthorization.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a BrokerAuthorizationResource +Create a BrokerAuthorizationResource .Description -create a BrokerAuthorizationResource +Create a BrokerAuthorizationResource .Example New-AzIoTOperationsServiceBrokerAuthorization ` -AuthorizationName "my-authz" ` @@ -222,8 +222,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/New-AzIoTOperationsServiceBrokerListener.ps1 b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/New-AzIoTOperationsServiceBrokerListener.ps1 index e1c938fe1837..9c68c46cb715 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/New-AzIoTOperationsServiceBrokerListener.ps1 +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/New-AzIoTOperationsServiceBrokerListener.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a BrokerListenerResource +Create a BrokerListenerResource .Description -create a BrokerListenerResource +Create a BrokerListenerResource .Example New-AzIoTOperationsServiceBrokerListener -BrokerName "my-broker" -InstanceName "aio-instance-name" -ListenerName my-listener -ResourceGroupName "aio-validation-116116143" -ExtendedLocationName "/subscriptions/d4ccd08b-0809-446d-a8b7-7af8a90109cd/resourceGroups/aio-validation-116116143/providers/Microsoft.ExtendedLocation/customLocations/location-116116143" -Port @(@{ port = 1883 }) @@ -199,8 +199,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/New-AzIoTOperationsServiceDataflow.ps1 b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/New-AzIoTOperationsServiceDataflow.ps1 index db8d5a28abab..ef69b140802d 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/New-AzIoTOperationsServiceDataflow.ps1 +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/New-AzIoTOperationsServiceDataflow.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a DataflowResource +Create a DataflowResource .Description -create a DataflowResource +Create a DataflowResource .Example New-AzIoTOperationsServiceDataflow -InstanceName "aio-117832708" ` -Name "dataflow-name" ` @@ -246,8 +246,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/New-AzIoTOperationsServiceDataflowEndpoint.ps1 b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/New-AzIoTOperationsServiceDataflowEndpoint.ps1 index b7cfea0346d3..1846230313f6 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/New-AzIoTOperationsServiceDataflowEndpoint.ps1 +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/New-AzIoTOperationsServiceDataflowEndpoint.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a DataflowEndpointResource +Create a DataflowEndpointResource .Description -create a DataflowEndpointResource +Create a DataflowEndpointResource .Example New-AzIoTOperationsServiceDataflowEndpoint -InstanceName "aio-instance-name" -Name "local-storage-endpoint" -ResourceGroupName "aio-validation-116116143" -ExtendedLocationName "/subscriptions/d4ccd08b-0809-446d-a8b7-7af8a90109cd/resourceGroups/aio-validation-116116143/providers/Microsoft.ExtendedLocation/customLocations/location-116116143" -EndpointType "LocalStorage" -LocalStorageSettingPersistentVolumeClaimRef "myPersistentVolumeClaim" @@ -405,8 +405,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/New-AzIoTOperationsServiceDataflowProfile.ps1 b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/New-AzIoTOperationsServiceDataflowProfile.ps1 index a570a7e00ee0..1f81a274aa32 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/New-AzIoTOperationsServiceDataflowProfile.ps1 +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/New-AzIoTOperationsServiceDataflowProfile.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a DataflowProfileResource +Create a DataflowProfileResource .Description -create a DataflowProfileResource +Create a DataflowProfileResource .Example New-AzIoTOperationsServiceDataflowProfile -InstanceName "aio-117832708" -Name "dataflowprofile-name" -ResourceGroupName "aio-validation-117832708" -ExtendedLocationName "/subscriptions/d4ccd08b-0809-446d-a8b7-7af8a90109cd/resourceGroups/aio-validation-117832708/providers/Microsoft.ExtendedLocation/customLocations/location-117832708" @@ -170,8 +170,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/New-AzIoTOperationsServiceInstance.ps1 b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/New-AzIoTOperationsServiceInstance.ps1 index 8930d33ded5c..a278a7227676 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/New-AzIoTOperationsServiceInstance.ps1 +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/New-AzIoTOperationsServiceInstance.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a InstanceResource +Create a InstanceResource .Description -create a InstanceResource +Create a InstanceResource .Example New-AzIoTOperationsServiceInstance -Name "aio-instance-name" -ResourceGroupName "aio-validation-116116143" -ExtendedLocationName "/subscriptions/d4ccd08b-0809-446d-a8b7-7af8a90109cd/resourceGroups/aio-validation-116116143/providers/Microsoft.ExtendedLocation/customLocations/location-116116143" -Location "eastus2" -Description test -SchemaRegistryRefResourceId "/subscriptions/d4ccd08b-0809-446d-a8b7-7af8a90109cd/resourceGroups/aio-validation-116116143/providers/Microsoft.DeviceRegistry/schemaRegistries/aio-sr-dd5644c861" @@ -184,8 +184,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/ProxyCmdletDefinitions.ps1 index e098f80bd429..fac6b8ae377d 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -196,8 +196,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -466,8 +465,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -736,8 +734,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -979,8 +976,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1221,8 +1217,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1463,8 +1458,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1735,8 +1729,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1952,8 +1945,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2041,9 +2033,9 @@ end { <# .Synopsis -create a BrokerAuthenticationResource +Create a BrokerAuthenticationResource .Description -create a BrokerAuthenticationResource +Create a BrokerAuthenticationResource .Example New-AzIoTOperationsServiceBrokerAuthentication ` -AuthenticationName "my-authn" ` @@ -2220,8 +2212,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2308,9 +2299,9 @@ end { <# .Synopsis -create a BrokerAuthorizationResource +Create a BrokerAuthorizationResource .Description -create a BrokerAuthorizationResource +Create a BrokerAuthorizationResource .Example New-AzIoTOperationsServiceBrokerAuthorization ` -AuthorizationName "my-authz" ` @@ -2514,8 +2505,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2602,9 +2592,9 @@ end { <# .Synopsis -create a BrokerListenerResource +Create a BrokerListenerResource .Description -create a BrokerListenerResource +Create a BrokerListenerResource .Example New-AzIoTOperationsServiceBrokerListener -BrokerName "my-broker" -InstanceName "aio-instance-name" -ListenerName my-listener -ResourceGroupName "aio-validation-116116143" -ExtendedLocationName "/subscriptions/d4ccd08b-0809-446d-a8b7-7af8a90109cd/resourceGroups/aio-validation-116116143/providers/Microsoft.ExtendedLocation/customLocations/location-116116143" -Port @(@{ port = 1883 }) @@ -2785,8 +2775,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2873,9 +2862,9 @@ end { <# .Synopsis -create a BrokerResource +Create a BrokerResource .Description -create a BrokerResource +Create a BrokerResource .Example New-AzIoTOperationsServiceBroker -InstanceName "aio-instance-name" -Name "my-broker" -ResourceGroupName "aio-validation-116116143" -ExtendedLocationName "/subscriptions/d4ccd08b-0809-446d-a8b7-7af8a90109cd/resourceGroups/aio-validation-116116143/providers/Microsoft.ExtendedLocation/customLocations/location-116116143" @@ -3247,8 +3236,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3335,9 +3323,9 @@ end { <# .Synopsis -create a DataflowEndpointResource +Create a DataflowEndpointResource .Description -create a DataflowEndpointResource +Create a DataflowEndpointResource .Example New-AzIoTOperationsServiceDataflowEndpoint -InstanceName "aio-instance-name" -Name "local-storage-endpoint" -ResourceGroupName "aio-validation-116116143" -ExtendedLocationName "/subscriptions/d4ccd08b-0809-446d-a8b7-7af8a90109cd/resourceGroups/aio-validation-116116143/providers/Microsoft.ExtendedLocation/customLocations/location-116116143" -EndpointType "LocalStorage" -LocalStorageSettingPersistentVolumeClaimRef "myPersistentVolumeClaim" @@ -3724,8 +3712,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3812,9 +3799,9 @@ end { <# .Synopsis -create a DataflowProfileResource +Create a DataflowProfileResource .Description -create a DataflowProfileResource +Create a DataflowProfileResource .Example New-AzIoTOperationsServiceDataflowProfile -InstanceName "aio-117832708" -Name "dataflowprofile-name" -ResourceGroupName "aio-validation-117832708" -ExtendedLocationName "/subscriptions/d4ccd08b-0809-446d-a8b7-7af8a90109cd/resourceGroups/aio-validation-117832708/providers/Microsoft.ExtendedLocation/customLocations/location-117832708" @@ -3966,8 +3953,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4054,9 +4040,9 @@ end { <# .Synopsis -create a DataflowResource +Create a DataflowResource .Description -create a DataflowResource +Create a DataflowResource .Example New-AzIoTOperationsServiceDataflow -InstanceName "aio-117832708" ` -Name "dataflow-name" ` @@ -4284,8 +4270,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4372,9 +4357,9 @@ end { <# .Synopsis -create a InstanceResource +Create a InstanceResource .Description -create a InstanceResource +Create a InstanceResource .Example New-AzIoTOperationsServiceInstance -Name "aio-instance-name" -ResourceGroupName "aio-validation-116116143" -ExtendedLocationName "/subscriptions/d4ccd08b-0809-446d-a8b7-7af8a90109cd/resourceGroups/aio-validation-116116143/providers/Microsoft.ExtendedLocation/customLocations/location-116116143" -Location "eastus2" -Description test -SchemaRegistryRefResourceId "/subscriptions/d4ccd08b-0809-446d-a8b7-7af8a90109cd/resourceGroups/aio-validation-116116143/providers/Microsoft.DeviceRegistry/schemaRegistries/aio-sr-dd5644c861" @@ -4540,8 +4525,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4822,8 +4806,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5105,8 +5088,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5388,8 +5370,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5645,8 +5626,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5901,8 +5881,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6157,8 +6136,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6441,8 +6419,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6672,8 +6649,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6759,9 +6735,9 @@ end { <# .Synopsis -update a BrokerAuthenticationResource +Update a BrokerAuthenticationResource .Description -update a BrokerAuthenticationResource +Update a BrokerAuthenticationResource .Example Set-AzIoTOperationsServiceBrokerAuthentication ` -AuthenticationName "my-authn" ` @@ -6938,8 +6914,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -7026,9 +7001,9 @@ end { <# .Synopsis -update a BrokerAuthorizationResource +Update a BrokerAuthorizationResource .Description -update a BrokerAuthorizationResource +Update a BrokerAuthorizationResource .Example Set-AzIoTOperationsServiceBrokerAuthorization -BrokerName "default" -InstanceName "aio-117832708" -ResourceGroupName "aio-validation-117832708" @@ -7198,8 +7173,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -7286,9 +7260,9 @@ end { <# .Synopsis -update a BrokerListenerResource +Update a BrokerListenerResource .Description -update a BrokerListenerResource +Update a BrokerListenerResource .Example Set-AzIoTOperationsServiceBrokerListener -BrokerName "my-broker" -InstanceName "aio-instance-name" -ListenerName my-listener -ResourceGroupName "aio-validation-116116143" -ExtendedLocationName "/subscriptions/d4ccd08b-0809-446d-a8b7-7af8a90109cd/resourceGroups/aio-validation-116116143/providers/Microsoft.ExtendedLocation/customLocations/location-116116143" -Port @(@{ port = 1883 }) @@ -7469,8 +7443,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -7557,9 +7530,9 @@ end { <# .Synopsis -update a BrokerResource +Update a BrokerResource .Description -update a BrokerResource +Update a BrokerResource .Example Set-AzIoTOperationsServiceBroker -InstanceName "aio-instance-name" -Name "my-broker" -ResourceGroupName "aio-validation-116116143" -ExtendedLocationName "/subscriptions/d4ccd08b-0809-446d-a8b7-7af8a90109cd/resourceGroups/aio-validation-116116143/providers/Microsoft.ExtendedLocation/customLocations/location-116116143" @@ -7931,8 +7904,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -8019,9 +7991,9 @@ end { <# .Synopsis -update a DataflowEndpointResource +Update a DataflowEndpointResource .Description -update a DataflowEndpointResource +Update a DataflowEndpointResource .Example New-AzIoTOperationsServiceDataflowEndpoint -InstanceName "aio-instance-name" -Name "local-storage-endpoint" -ResourceGroupName "aio-validation-116116143" -ExtendedLocationName "/subscriptions/d4ccd08b-0809-446d-a8b7-7af8a90109cd/resourceGroups/aio-validation-116116143/providers/Microsoft.ExtendedLocation/customLocations/location-116116143" -EndpointType "LocalStorage" -LocalStorageSettingPersistentVolumeClaimRef "myPersistentVolumeClaim" @@ -8408,8 +8380,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -8496,9 +8467,9 @@ end { <# .Synopsis -update a DataflowProfileResource +Update a DataflowProfileResource .Description -update a DataflowProfileResource +Update a DataflowProfileResource .Example New-AzIoTOperationsServiceDataflowProfile -InstanceName "aio-instance-name" -Name dataflowprofile-name -ResourceGroupName "aio-validation-116116143" -ExtendedLocationName "/subscriptions/d4ccd08b-0809-446d-a8b7-7af8a90109cd/resourceGroups/aio-validation-116116143/providers/Microsoft.ExtendedLocation/customLocations/location-116116143" @@ -8650,8 +8621,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -8738,9 +8708,9 @@ end { <# .Synopsis -update a DataflowResource +Update a DataflowResource .Description -update a DataflowResource +Update a DataflowResource .Example Set-AzIoTOperationsServiceDataflow -InstanceName "aio-117832708" ` -Name "dataflow-name" ` @@ -8968,8 +8938,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -9056,9 +9025,9 @@ end { <# .Synopsis -update a InstanceResource +Update a InstanceResource .Description -update a InstanceResource +Update a InstanceResource .Example Set-AzIoTOperationsServiceInstance -Name "aio-instance-name" -ResourceGroupName "aio-validation-116116143" -ExtendedLocationName "/subscriptions/d4ccd08b-0809-446d-a8b7-7af8a90109cd/resourceGroups/aio-validation-116116143/providers/Microsoft.ExtendedLocation/customLocations/location-116116143" -Location "eastus2" -Description "new-description" -SchemaRegistryRefResourceId "/subscriptions/d4ccd08b-0809-446d-a8b7-7af8a90109cd/resourceGroups/aio-validation-116116143/providers/Microsoft.DeviceRegistry/schemaRegistries/aio-sr-dd5644c861" @@ -9224,8 +9193,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -9312,9 +9280,9 @@ end { <# .Synopsis -update a BrokerAuthenticationResource +Update a BrokerAuthenticationResource .Description -update a BrokerAuthenticationResource +Update a BrokerAuthenticationResource .Example Update-AzIoTOperationsServiceBrokerAuthentication ` -AuthenticationName "my-authn" ` @@ -9534,8 +9502,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -9623,9 +9590,9 @@ end { <# .Synopsis -update a BrokerAuthorizationResource +Update a BrokerAuthorizationResource .Description -update a BrokerAuthorizationResource +Update a BrokerAuthorizationResource .Example Update-AzIoTOperationsServiceBrokerAuthorization -BrokerName "default" -InstanceName "aio-117832708" -ResourceGroupName "aio-validation-117832708" @@ -9839,8 +9806,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -9928,9 +9894,9 @@ end { <# .Synopsis -update a BrokerListenerResource +Update a BrokerListenerResource .Description -update a BrokerListenerResource +Update a BrokerListenerResource .Example Update-AzIoTOperationsServiceBrokerListener -BrokerName "my-broker" -InstanceName "aio-instance-name" -ListenerName "my-listener" -ResourceGroupName "aio-validation-116116143" -Port @(@{ port = 1883 }) @@ -10155,8 +10121,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -10244,9 +10209,9 @@ end { <# .Synopsis -update a BrokerResource +Update a BrokerResource .Description -update a BrokerResource +Update a BrokerResource .Example Update-AzIoTOperationsServiceBroker -InstanceName "aio-instance-name" -Name "my-broker" -ResourceGroupName "aio-validation-116116143" @@ -10470,8 +10435,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -10558,9 +10522,9 @@ end { <# .Synopsis -update a DataflowEndpointResource +Update a DataflowEndpointResource .Description -update a DataflowEndpointResource +Update a DataflowEndpointResource .Example Update-AzIoTOperationsServiceDataflowEndpoint -InstanceName "aio-instance-name" -Name "local-storage-endpoint" -ResourceGroupName "aio-validation-116116143" -EndpointType "LocalStorage" -LocalStorageSettingPersistentVolumeClaimRef "myPersistentVolumeClaim" @@ -10970,8 +10934,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -11058,9 +11021,9 @@ end { <# .Synopsis -update a DataflowProfileResource +Update a DataflowProfileResource .Description -update a DataflowProfileResource +Update a DataflowProfileResource .Example Update-AzIoTOperationsServiceDataflowProfile -InstanceName "aio-instance-name" -Name dataflowprofile-name -ResourceGroupName "aio-validation-116116143" @@ -11239,8 +11202,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -11327,9 +11289,9 @@ end { <# .Synopsis -update a DataflowResource +Update a DataflowResource .Description -update a DataflowResource +Update a DataflowResource .Example Update-AzIoTOperationsServiceDataflow -InstanceName "aio-117832708" ` -Name "dataflow-name" ` @@ -11600,8 +11562,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -11689,9 +11650,9 @@ end { <# .Synopsis -update a InstanceResource +Update a InstanceResource .Description -update a InstanceResource +Update a InstanceResource .Example Update-AzIoTOperationsServiceInstance -Name "aio-instance-name" -ResourceGroupName "aio-validation-116116143" -Description "new-description" -SchemaRegistryRefResourceId "/subscriptions/d4ccd08b-0809-446d-a8b7-7af8a90109cd/resourceGroups/aio-validation-116116143/providers/Microsoft.DeviceRegistry/schemaRegistries/aio-sr-dd5644c861" @@ -11858,8 +11819,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Remove-AzIoTOperationsServiceBroker.ps1 b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Remove-AzIoTOperationsServiceBroker.ps1 index 742d5e6b18e2..90bb0a363e53 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Remove-AzIoTOperationsServiceBroker.ps1 +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Remove-AzIoTOperationsServiceBroker.ps1 @@ -184,8 +184,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Remove-AzIoTOperationsServiceBrokerAuthentication.ps1 b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Remove-AzIoTOperationsServiceBrokerAuthentication.ps1 index 2f8f6633d91a..b685ec61c7ea 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Remove-AzIoTOperationsServiceBrokerAuthentication.ps1 +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Remove-AzIoTOperationsServiceBrokerAuthentication.ps1 @@ -210,8 +210,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Remove-AzIoTOperationsServiceBrokerAuthorization.ps1 b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Remove-AzIoTOperationsServiceBrokerAuthorization.ps1 index cdea83f71367..e0561046a9c2 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Remove-AzIoTOperationsServiceBrokerAuthorization.ps1 +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Remove-AzIoTOperationsServiceBrokerAuthorization.ps1 @@ -210,8 +210,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Remove-AzIoTOperationsServiceBrokerListener.ps1 b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Remove-AzIoTOperationsServiceBrokerListener.ps1 index 066a4f960d72..493ee9a66a3d 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Remove-AzIoTOperationsServiceBrokerListener.ps1 +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Remove-AzIoTOperationsServiceBrokerListener.ps1 @@ -210,8 +210,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Remove-AzIoTOperationsServiceDataflow.ps1 b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Remove-AzIoTOperationsServiceDataflow.ps1 index 7e5ded8da116..5fbdf4e6d8fa 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Remove-AzIoTOperationsServiceDataflow.ps1 +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Remove-AzIoTOperationsServiceDataflow.ps1 @@ -212,8 +212,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Remove-AzIoTOperationsServiceDataflowEndpoint.ps1 b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Remove-AzIoTOperationsServiceDataflowEndpoint.ps1 index 9759a8277f51..af5117b283c3 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Remove-AzIoTOperationsServiceDataflowEndpoint.ps1 +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Remove-AzIoTOperationsServiceDataflowEndpoint.ps1 @@ -184,8 +184,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Remove-AzIoTOperationsServiceDataflowProfile.ps1 b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Remove-AzIoTOperationsServiceDataflowProfile.ps1 index 7258ba850b22..765c454bd9d3 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Remove-AzIoTOperationsServiceDataflowProfile.ps1 +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Remove-AzIoTOperationsServiceDataflowProfile.ps1 @@ -184,8 +184,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Remove-AzIoTOperationsServiceInstance.ps1 b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Remove-AzIoTOperationsServiceInstance.ps1 index 00437fe13ad0..50f08c59b150 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Remove-AzIoTOperationsServiceInstance.ps1 +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Remove-AzIoTOperationsServiceInstance.ps1 @@ -158,8 +158,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Set-AzIoTOperationsServiceBroker.ps1 b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Set-AzIoTOperationsServiceBroker.ps1 index 1b7645219aa4..66a5042e90ef 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Set-AzIoTOperationsServiceBroker.ps1 +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Set-AzIoTOperationsServiceBroker.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update a BrokerResource +Update a BrokerResource .Description -update a BrokerResource +Update a BrokerResource .Example Set-AzIoTOperationsServiceBroker -InstanceName "aio-instance-name" -Name "my-broker" -ResourceGroupName "aio-validation-116116143" -ExtendedLocationName "/subscriptions/d4ccd08b-0809-446d-a8b7-7af8a90109cd/resourceGroups/aio-validation-116116143/providers/Microsoft.ExtendedLocation/customLocations/location-116116143" @@ -390,8 +390,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Set-AzIoTOperationsServiceBrokerAuthentication.ps1 b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Set-AzIoTOperationsServiceBrokerAuthentication.ps1 index 5d1d36bc6de7..e856ee480261 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Set-AzIoTOperationsServiceBrokerAuthentication.ps1 +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Set-AzIoTOperationsServiceBrokerAuthentication.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update a BrokerAuthenticationResource +Update a BrokerAuthenticationResource .Description -update a BrokerAuthenticationResource +Update a BrokerAuthenticationResource .Example Set-AzIoTOperationsServiceBrokerAuthentication ` -AuthenticationName "my-authn" ` @@ -195,8 +195,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Set-AzIoTOperationsServiceBrokerAuthorization.ps1 b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Set-AzIoTOperationsServiceBrokerAuthorization.ps1 index 3dbd7b9f5c05..1f63fe85e8e9 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Set-AzIoTOperationsServiceBrokerAuthorization.ps1 +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Set-AzIoTOperationsServiceBrokerAuthorization.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update a BrokerAuthorizationResource +Update a BrokerAuthorizationResource .Description -update a BrokerAuthorizationResource +Update a BrokerAuthorizationResource .Example Set-AzIoTOperationsServiceBrokerAuthorization -BrokerName "default" -InstanceName "aio-117832708" -ResourceGroupName "aio-validation-117832708" @@ -188,8 +188,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Set-AzIoTOperationsServiceBrokerListener.ps1 b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Set-AzIoTOperationsServiceBrokerListener.ps1 index 372b48c0df9f..fa3b8307a728 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Set-AzIoTOperationsServiceBrokerListener.ps1 +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Set-AzIoTOperationsServiceBrokerListener.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update a BrokerListenerResource +Update a BrokerListenerResource .Description -update a BrokerListenerResource +Update a BrokerListenerResource .Example Set-AzIoTOperationsServiceBrokerListener -BrokerName "my-broker" -InstanceName "aio-instance-name" -ListenerName my-listener -ResourceGroupName "aio-validation-116116143" -ExtendedLocationName "/subscriptions/d4ccd08b-0809-446d-a8b7-7af8a90109cd/resourceGroups/aio-validation-116116143/providers/Microsoft.ExtendedLocation/customLocations/location-116116143" -Port @(@{ port = 1883 }) @@ -199,8 +199,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Set-AzIoTOperationsServiceDataflow.ps1 b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Set-AzIoTOperationsServiceDataflow.ps1 index 2f7c00365018..7dd4169a8935 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Set-AzIoTOperationsServiceDataflow.ps1 +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Set-AzIoTOperationsServiceDataflow.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update a DataflowResource +Update a DataflowResource .Description -update a DataflowResource +Update a DataflowResource .Example Set-AzIoTOperationsServiceDataflow -InstanceName "aio-117832708" ` -Name "dataflow-name" ` @@ -246,8 +246,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Set-AzIoTOperationsServiceDataflowEndpoint.ps1 b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Set-AzIoTOperationsServiceDataflowEndpoint.ps1 index 5e350904fab4..299d7d1525c6 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Set-AzIoTOperationsServiceDataflowEndpoint.ps1 +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Set-AzIoTOperationsServiceDataflowEndpoint.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update a DataflowEndpointResource +Update a DataflowEndpointResource .Description -update a DataflowEndpointResource +Update a DataflowEndpointResource .Example New-AzIoTOperationsServiceDataflowEndpoint -InstanceName "aio-instance-name" -Name "local-storage-endpoint" -ResourceGroupName "aio-validation-116116143" -ExtendedLocationName "/subscriptions/d4ccd08b-0809-446d-a8b7-7af8a90109cd/resourceGroups/aio-validation-116116143/providers/Microsoft.ExtendedLocation/customLocations/location-116116143" -EndpointType "LocalStorage" -LocalStorageSettingPersistentVolumeClaimRef "myPersistentVolumeClaim" @@ -405,8 +405,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Set-AzIoTOperationsServiceDataflowProfile.ps1 b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Set-AzIoTOperationsServiceDataflowProfile.ps1 index c7393fe9cf6e..843a1b44b1c2 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Set-AzIoTOperationsServiceDataflowProfile.ps1 +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Set-AzIoTOperationsServiceDataflowProfile.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update a DataflowProfileResource +Update a DataflowProfileResource .Description -update a DataflowProfileResource +Update a DataflowProfileResource .Example New-AzIoTOperationsServiceDataflowProfile -InstanceName "aio-instance-name" -Name dataflowprofile-name -ResourceGroupName "aio-validation-116116143" -ExtendedLocationName "/subscriptions/d4ccd08b-0809-446d-a8b7-7af8a90109cd/resourceGroups/aio-validation-116116143/providers/Microsoft.ExtendedLocation/customLocations/location-116116143" @@ -170,8 +170,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Set-AzIoTOperationsServiceInstance.ps1 b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Set-AzIoTOperationsServiceInstance.ps1 index f3be0ee69564..06fc2831e278 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Set-AzIoTOperationsServiceInstance.ps1 +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Set-AzIoTOperationsServiceInstance.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update a InstanceResource +Update a InstanceResource .Description -update a InstanceResource +Update a InstanceResource .Example Set-AzIoTOperationsServiceInstance -Name "aio-instance-name" -ResourceGroupName "aio-validation-116116143" -ExtendedLocationName "/subscriptions/d4ccd08b-0809-446d-a8b7-7af8a90109cd/resourceGroups/aio-validation-116116143/providers/Microsoft.ExtendedLocation/customLocations/location-116116143" -Location "eastus2" -Description "new-description" -SchemaRegistryRefResourceId "/subscriptions/d4ccd08b-0809-446d-a8b7-7af8a90109cd/resourceGroups/aio-validation-116116143/providers/Microsoft.DeviceRegistry/schemaRegistries/aio-sr-dd5644c861" @@ -184,8 +184,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Update-AzIoTOperationsServiceBroker.ps1 b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Update-AzIoTOperationsServiceBroker.ps1 index 49595beade1a..fe28d85f2214 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Update-AzIoTOperationsServiceBroker.ps1 +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Update-AzIoTOperationsServiceBroker.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update a BrokerResource +Update a BrokerResource .Description -update a BrokerResource +Update a BrokerResource .Example Update-AzIoTOperationsServiceBroker -InstanceName "aio-instance-name" -Name "my-broker" -ResourceGroupName "aio-validation-116116143" @@ -242,8 +242,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Update-AzIoTOperationsServiceBrokerAuthentication.ps1 b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Update-AzIoTOperationsServiceBrokerAuthentication.ps1 index 020d7d2419cb..e9afe82cebbb 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Update-AzIoTOperationsServiceBrokerAuthentication.ps1 +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Update-AzIoTOperationsServiceBrokerAuthentication.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update a BrokerAuthenticationResource +Update a BrokerAuthenticationResource .Description -update a BrokerAuthenticationResource +Update a BrokerAuthenticationResource .Example Update-AzIoTOperationsServiceBrokerAuthentication ` -AuthenticationName "my-authn" ` @@ -238,8 +238,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Update-AzIoTOperationsServiceBrokerAuthorization.ps1 b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Update-AzIoTOperationsServiceBrokerAuthorization.ps1 index 45180cb75e5f..16d6047087e2 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Update-AzIoTOperationsServiceBrokerAuthorization.ps1 +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Update-AzIoTOperationsServiceBrokerAuthorization.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update a BrokerAuthorizationResource +Update a BrokerAuthorizationResource .Description -update a BrokerAuthorizationResource +Update a BrokerAuthorizationResource .Example Update-AzIoTOperationsServiceBrokerAuthorization -BrokerName "default" -InstanceName "aio-117832708" -ResourceGroupName "aio-validation-117832708" @@ -232,8 +232,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Update-AzIoTOperationsServiceBrokerListener.ps1 b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Update-AzIoTOperationsServiceBrokerListener.ps1 index 7232ab253044..df8f144e5370 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Update-AzIoTOperationsServiceBrokerListener.ps1 +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Update-AzIoTOperationsServiceBrokerListener.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update a BrokerListenerResource +Update a BrokerListenerResource .Description -update a BrokerListenerResource +Update a BrokerListenerResource .Example Update-AzIoTOperationsServiceBrokerListener -BrokerName "my-broker" -InstanceName "aio-instance-name" -ListenerName "my-listener" -ResourceGroupName "aio-validation-116116143" -Port @(@{ port = 1883 }) @@ -243,8 +243,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Update-AzIoTOperationsServiceDataflow.ps1 b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Update-AzIoTOperationsServiceDataflow.ps1 index 53aa5c2512a2..3f4f8091623c 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Update-AzIoTOperationsServiceDataflow.ps1 +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Update-AzIoTOperationsServiceDataflow.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update a DataflowResource +Update a DataflowResource .Description -update a DataflowResource +Update a DataflowResource .Example Update-AzIoTOperationsServiceDataflow -InstanceName "aio-117832708" ` -Name "dataflow-name" ` @@ -289,8 +289,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Update-AzIoTOperationsServiceDataflowEndpoint.ps1 b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Update-AzIoTOperationsServiceDataflowEndpoint.ps1 index 741e5233564c..82ba1a04aa62 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Update-AzIoTOperationsServiceDataflowEndpoint.ps1 +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Update-AzIoTOperationsServiceDataflowEndpoint.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update a DataflowEndpointResource +Update a DataflowEndpointResource .Description -update a DataflowEndpointResource +Update a DataflowEndpointResource .Example Update-AzIoTOperationsServiceDataflowEndpoint -InstanceName "aio-instance-name" -Name "local-storage-endpoint" -ResourceGroupName "aio-validation-116116143" -EndpointType "LocalStorage" -LocalStorageSettingPersistentVolumeClaimRef "myPersistentVolumeClaim" @@ -428,8 +428,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Update-AzIoTOperationsServiceDataflowProfile.ps1 b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Update-AzIoTOperationsServiceDataflowProfile.ps1 index 4dcb99d42b70..84fec7566c78 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Update-AzIoTOperationsServiceDataflowProfile.ps1 +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Update-AzIoTOperationsServiceDataflowProfile.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update a DataflowProfileResource +Update a DataflowProfileResource .Description -update a DataflowProfileResource +Update a DataflowProfileResource .Example Update-AzIoTOperationsServiceDataflowProfile -InstanceName "aio-instance-name" -Name dataflowprofile-name -ResourceGroupName "aio-validation-116116143" @@ -197,8 +197,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Update-AzIoTOperationsServiceInstance.ps1 b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Update-AzIoTOperationsServiceInstance.ps1 index 4d5472f70e53..548944fc0b7c 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Update-AzIoTOperationsServiceInstance.ps1 +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/exports/Update-AzIoTOperationsServiceInstance.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update a InstanceResource +Update a InstanceResource .Description -update a InstanceResource +Update a InstanceResource .Example Update-AzIoTOperationsServiceInstance -Name "aio-instance-name" -ResourceGroupName "aio-validation-116116143" -Description "new-description" -SchemaRegistryRefResourceId "/subscriptions/d4ccd08b-0809-446d-a8b7-7af8a90109cd/resourceGroups/aio-validation-116116143/providers/Microsoft.DeviceRegistry/schemaRegistries/aio-sr-dd5644c861" @@ -185,8 +185,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/AdvancedSettings.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/AdvancedSettings.cs index 78ae0fb41dd3..b877b5cfb514 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/AdvancedSettings.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/AdvancedSettings.cs @@ -72,13 +72,13 @@ public partial class AdvancedSettings : Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IClientConfig Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IAdvancedSettingsInternal.Client { get => (this._client = this._client ?? new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ClientConfig()); set { {_client = value;} } } /// Internal Acessors for ClientSubscriberQueueLimit - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISubscriberQueueLimit Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IAdvancedSettingsInternal.ClientSubscriberQueueLimit { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IClientConfigInternal)Client).SubscriberQueueLimit; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IClientConfigInternal)Client).SubscriberQueueLimit = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISubscriberQueueLimit Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IAdvancedSettingsInternal.ClientSubscriberQueueLimit { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IClientConfigInternal)Client).SubscriberQueueLimit; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IClientConfigInternal)Client).SubscriberQueueLimit = value ?? null /* model class */; } /// Internal Acessors for InternalCert Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ICertManagerCertOptions Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IAdvancedSettingsInternal.InternalCert { get => (this._internalCert = this._internalCert ?? new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.CertManagerCertOptions()); set { {_internalCert = value;} } } /// Internal Acessors for InternalCertPrivateKey - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ICertManagerPrivateKey Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IAdvancedSettingsInternal.InternalCertPrivateKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ICertManagerCertOptionsInternal)InternalCert).PrivateKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ICertManagerCertOptionsInternal)InternalCert).PrivateKey = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ICertManagerPrivateKey Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IAdvancedSettingsInternal.InternalCertPrivateKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ICertManagerCertOptionsInternal)InternalCert).PrivateKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ICertManagerCertOptionsInternal)InternalCert).PrivateKey = value ?? null /* model class */; } /// algorithm for private key. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inlined)] diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/BrokerAuthenticationResource.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/BrokerAuthenticationResource.cs index 0c36aa37a622..84cd91e26f95 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/BrokerAuthenticationResource.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/BrokerAuthenticationResource.cs @@ -35,7 +35,7 @@ public partial class BrokerAuthenticationResource : /// The name of the extended location. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inlined)] - public string ExtendedLocationName { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Name = value ; } + public string ExtendedLocationName { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Name = value ?? null; } /// Type of ExtendedLocation. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inlined)] @@ -51,25 +51,43 @@ public partial class BrokerAuthenticationResource : Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthenticationResourceInternal.ExtendedLocation { get => (this._extendedLocation = this._extendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ExtendedLocation()); set { {_extendedLocation = value;} } } /// Internal Acessors for ExtendedLocationType - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthenticationResourceInternal.ExtendedLocationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthenticationResourceInternal.ExtendedLocationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Type = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthenticationProperties Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthenticationResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.BrokerAuthenticationProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthenticationResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthenticationPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthenticationPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthenticationResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthenticationPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthenticationPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] @@ -94,31 +112,31 @@ public partial class BrokerAuthenticationResource : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" @@ -165,7 +183,7 @@ public partial interface IBrokerAuthenticationResource : System.Collections.Generic.List AuthenticationMethod { get; set; } /// The name of the extended location. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -176,7 +194,7 @@ public partial interface IBrokerAuthenticationResource : string ExtendedLocationName { get; set; } /// Type of ExtendedLocation. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Runtime.Info( - Required = true, + Required = false, ReadOnly = true, Read = true, Create = true, diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/BrokerAuthenticatorMethodCustom.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/BrokerAuthenticatorMethodCustom.cs index 33698e90e57d..06ee474d2166 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/BrokerAuthenticatorMethodCustom.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/BrokerAuthenticatorMethodCustom.cs @@ -49,7 +49,7 @@ public partial class BrokerAuthenticatorMethodCustom : Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthenticatorCustomAuth Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthenticatorMethodCustomInternal.Auth { get => (this._auth = this._auth ?? new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.BrokerAuthenticatorCustomAuth()); set { {_auth = value;} } } /// Internal Acessors for AuthX509 - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IX509ManualCertificate Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthenticatorMethodCustomInternal.AuthX509 { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthenticatorCustomAuthInternal)Auth).X509; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthenticatorCustomAuthInternal)Auth).X509 = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IX509ManualCertificate Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthenticatorMethodCustomInternal.AuthX509 { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthenticatorCustomAuthInternal)Auth).X509; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthenticatorCustomAuthInternal)Auth).X509 = value ?? null /* model class */; } /// /// Kubernetes secret containing an X.509 client certificate. This is a reference to the secret through an identifying name, diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/BrokerAuthenticatorMethods.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/BrokerAuthenticatorMethods.cs index 00211426026c..a91337202924 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/BrokerAuthenticatorMethods.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/BrokerAuthenticatorMethods.cs @@ -44,13 +44,13 @@ public partial class BrokerAuthenticatorMethods : public string Method { get => this._method; set => this._method = value; } /// Internal Acessors for AuthX509 - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IX509ManualCertificate Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthenticatorMethodsInternal.AuthX509 { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthenticatorMethodCustomInternal)CustomSetting).AuthX509; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthenticatorMethodCustomInternal)CustomSetting).AuthX509 = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IX509ManualCertificate Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthenticatorMethodsInternal.AuthX509 { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthenticatorMethodCustomInternal)CustomSetting).AuthX509; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthenticatorMethodCustomInternal)CustomSetting).AuthX509 = value ?? null /* model class */; } /// Internal Acessors for CustomSetting Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthenticatorMethodCustom Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthenticatorMethodsInternal.CustomSetting { get => (this._customSetting = this._customSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.BrokerAuthenticatorMethodCustom()); set { {_customSetting = value;} } } /// Internal Acessors for CustomSettingAuth - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthenticatorCustomAuth Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthenticatorMethodsInternal.CustomSettingAuth { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthenticatorMethodCustomInternal)CustomSetting).Auth; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthenticatorMethodCustomInternal)CustomSetting).Auth = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthenticatorCustomAuth Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthenticatorMethodsInternal.CustomSettingAuth { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthenticatorMethodCustomInternal)CustomSetting).Auth; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthenticatorMethodCustomInternal)CustomSetting).Auth = value ?? null /* model class */; } /// Internal Acessors for ServiceAccountTokenSetting Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthenticatorMethodSat Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthenticatorMethodsInternal.ServiceAccountTokenSetting { get => (this._serviceAccountTokenSetting = this._serviceAccountTokenSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.BrokerAuthenticatorMethodSat()); set { {_serviceAccountTokenSetting = value;} } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/BrokerAuthorizationResource.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/BrokerAuthorizationResource.cs index 2cd99f140c8f..d842334f8767 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/BrokerAuthorizationResource.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/BrokerAuthorizationResource.cs @@ -38,7 +38,7 @@ public partial class BrokerAuthorizationResource : /// The name of the extended location. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inlined)] - public string ExtendedLocationName { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Name = value ; } + public string ExtendedLocationName { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Name = value ?? null; } /// Type of ExtendedLocation. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inlined)] @@ -51,31 +51,49 @@ public partial class BrokerAuthorizationResource : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Id; } /// Internal Acessors for AuthorizationPolicy - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IAuthorizationConfig Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthorizationResourceInternal.AuthorizationPolicy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthorizationPropertiesInternal)Property).AuthorizationPolicy; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthorizationPropertiesInternal)Property).AuthorizationPolicy = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IAuthorizationConfig Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthorizationResourceInternal.AuthorizationPolicy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthorizationPropertiesInternal)Property).AuthorizationPolicy; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthorizationPropertiesInternal)Property).AuthorizationPolicy = value ?? null /* model class */; } /// Internal Acessors for ExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthorizationResourceInternal.ExtendedLocation { get => (this._extendedLocation = this._extendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ExtendedLocation()); set { {_extendedLocation = value;} } } /// Internal Acessors for ExtendedLocationType - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthorizationResourceInternal.ExtendedLocationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthorizationResourceInternal.ExtendedLocationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Type = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthorizationProperties Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthorizationResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.BrokerAuthorizationProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthorizationResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthorizationPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthorizationPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthorizationResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthorizationPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthorizationPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] @@ -100,31 +118,31 @@ public partial class BrokerAuthorizationResource : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" @@ -182,7 +200,7 @@ public partial interface IBrokerAuthorizationResource : System.Collections.Generic.List AuthorizationPolicyRule { get; set; } /// The name of the extended location. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -193,7 +211,7 @@ public partial interface IBrokerAuthorizationResource : string ExtendedLocationName { get; set; } /// Type of ExtendedLocation. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Runtime.Info( - Required = true, + Required = false, ReadOnly = true, Read = true, Create = true, diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/BrokerDiagnostics.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/BrokerDiagnostics.cs index 91c09c5b49c2..a22a013c82f9 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/BrokerDiagnostics.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/BrokerDiagnostics.cs @@ -48,7 +48,7 @@ public partial class BrokerDiagnostics : Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ITraces Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerDiagnosticsInternal.Trace { get => (this._trace = this._trace ?? new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.Traces()); set { {_trace = value;} } } /// Internal Acessors for TraceSelfTracing - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISelfTracing Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerDiagnosticsInternal.TraceSelfTracing { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ITracesInternal)Trace).SelfTracing; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ITracesInternal)Trace).SelfTracing = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISelfTracing Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerDiagnosticsInternal.TraceSelfTracing { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ITracesInternal)Trace).SelfTracing; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ITracesInternal)Trace).SelfTracing = value ?? null /* model class */; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISelfCheck _selfCheck; diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/BrokerListenerResource.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/BrokerListenerResource.cs index 6b339600f592..a8977fa1c8b2 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/BrokerListenerResource.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/BrokerListenerResource.cs @@ -28,7 +28,7 @@ public partial class BrokerListenerResource : /// The name of the extended location. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inlined)] - public string ExtendedLocationName { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Name = value ; } + public string ExtendedLocationName { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Name = value ?? null; } /// Type of ExtendedLocation. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inlined)] @@ -44,25 +44,43 @@ public partial class BrokerListenerResource : Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerListenerResourceInternal.ExtendedLocation { get => (this._extendedLocation = this._extendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ExtendedLocation()); set { {_extendedLocation = value;} } } /// Internal Acessors for ExtendedLocationType - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerListenerResourceInternal.ExtendedLocationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerListenerResourceInternal.ExtendedLocationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Type = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerListenerProperties Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerListenerResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.BrokerListenerProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerListenerResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerListenerPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerListenerPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerListenerResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerListenerPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerListenerPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] @@ -99,31 +117,31 @@ public partial class BrokerListenerResource : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" @@ -156,7 +174,7 @@ public partial interface IBrokerListenerResource : { /// The name of the extended location. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -167,7 +185,7 @@ public partial interface IBrokerListenerResource : string ExtendedLocationName { get; set; } /// Type of ExtendedLocation. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Runtime.Info( - Required = true, + Required = false, ReadOnly = true, Read = true, Create = true, diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/BrokerProperties.PowerShell.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/BrokerProperties.PowerShell.cs index c4b1e594d6d2..1782593b51e4 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/BrokerProperties.PowerShell.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/BrokerProperties.PowerShell.cs @@ -142,11 +142,11 @@ internal BrokerProperties(global::System.Collections.IDictionary content) } if (content.Contains("BackendChainPartition")) { - ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)this).BackendChainPartition = (int) content.GetValueForProperty("BackendChainPartition",((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)this).BackendChainPartition, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)this).BackendChainPartition = (int?) content.GetValueForProperty("BackendChainPartition",((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)this).BackendChainPartition, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("BackendChainRedundancyFactor")) { - ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)this).BackendChainRedundancyFactor = (int) content.GetValueForProperty("BackendChainRedundancyFactor",((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)this).BackendChainRedundancyFactor, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)this).BackendChainRedundancyFactor = (int?) content.GetValueForProperty("BackendChainRedundancyFactor",((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)this).BackendChainRedundancyFactor, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("BackendChainWorker")) { @@ -154,7 +154,7 @@ internal BrokerProperties(global::System.Collections.IDictionary content) } if (content.Contains("FrontendReplica")) { - ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)this).FrontendReplica = (int) content.GetValueForProperty("FrontendReplica",((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)this).FrontendReplica, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)this).FrontendReplica = (int?) content.GetValueForProperty("FrontendReplica",((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)this).FrontendReplica, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("FrontendWorker")) { @@ -343,11 +343,11 @@ internal BrokerProperties(global::System.Management.Automation.PSObject content) } if (content.Contains("BackendChainPartition")) { - ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)this).BackendChainPartition = (int) content.GetValueForProperty("BackendChainPartition",((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)this).BackendChainPartition, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)this).BackendChainPartition = (int?) content.GetValueForProperty("BackendChainPartition",((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)this).BackendChainPartition, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("BackendChainRedundancyFactor")) { - ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)this).BackendChainRedundancyFactor = (int) content.GetValueForProperty("BackendChainRedundancyFactor",((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)this).BackendChainRedundancyFactor, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)this).BackendChainRedundancyFactor = (int?) content.GetValueForProperty("BackendChainRedundancyFactor",((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)this).BackendChainRedundancyFactor, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("BackendChainWorker")) { @@ -355,7 +355,7 @@ internal BrokerProperties(global::System.Management.Automation.PSObject content) } if (content.Contains("FrontendReplica")) { - ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)this).FrontendReplica = (int) content.GetValueForProperty("FrontendReplica",((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)this).FrontendReplica, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)this).FrontendReplica = (int?) content.GetValueForProperty("FrontendReplica",((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)this).FrontendReplica, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("FrontendWorker")) { diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/BrokerProperties.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/BrokerProperties.cs index bd5bec010d2b..92e74c760c3a 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/BrokerProperties.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/BrokerProperties.cs @@ -133,49 +133,49 @@ public partial class BrokerProperties : Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IAdvancedSettings Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal.Advanced { get => (this._advanced = this._advanced ?? new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.AdvancedSettings()); set { {_advanced = value;} } } /// Internal Acessors for AdvancedClient - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IClientConfig Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal.AdvancedClient { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IAdvancedSettingsInternal)Advanced).Client; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IAdvancedSettingsInternal)Advanced).Client = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IClientConfig Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal.AdvancedClient { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IAdvancedSettingsInternal)Advanced).Client; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IAdvancedSettingsInternal)Advanced).Client = value ?? null /* model class */; } /// Internal Acessors for AdvancedInternalCert - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ICertManagerCertOptions Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal.AdvancedInternalCert { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IAdvancedSettingsInternal)Advanced).InternalCert; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IAdvancedSettingsInternal)Advanced).InternalCert = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ICertManagerCertOptions Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal.AdvancedInternalCert { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IAdvancedSettingsInternal)Advanced).InternalCert; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IAdvancedSettingsInternal)Advanced).InternalCert = value ?? null /* model class */; } /// Internal Acessors for Cardinality Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ICardinality Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal.Cardinality { get => (this._cardinality = this._cardinality ?? new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.Cardinality()); set { {_cardinality = value;} } } /// Internal Acessors for CardinalityBackendChain - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBackendChain Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal.CardinalityBackendChain { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ICardinalityInternal)Cardinality).BackendChain; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ICardinalityInternal)Cardinality).BackendChain = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBackendChain Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal.CardinalityBackendChain { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ICardinalityInternal)Cardinality).BackendChain; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ICardinalityInternal)Cardinality).BackendChain = value ?? null /* model class */; } /// Internal Acessors for CardinalityFrontend - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IFrontend Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal.CardinalityFrontend { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ICardinalityInternal)Cardinality).Frontend; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ICardinalityInternal)Cardinality).Frontend = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IFrontend Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal.CardinalityFrontend { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ICardinalityInternal)Cardinality).Frontend; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ICardinalityInternal)Cardinality).Frontend = value ?? null /* model class */; } /// Internal Acessors for ClientSubscriberQueueLimit - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISubscriberQueueLimit Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal.ClientSubscriberQueueLimit { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IAdvancedSettingsInternal)Advanced).ClientSubscriberQueueLimit; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IAdvancedSettingsInternal)Advanced).ClientSubscriberQueueLimit = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISubscriberQueueLimit Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal.ClientSubscriberQueueLimit { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IAdvancedSettingsInternal)Advanced).ClientSubscriberQueueLimit; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IAdvancedSettingsInternal)Advanced).ClientSubscriberQueueLimit = value ?? null /* model class */; } /// Internal Acessors for Diagnostic Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerDiagnostics Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal.Diagnostic { get => (this._diagnostic = this._diagnostic ?? new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.BrokerDiagnostics()); set { {_diagnostic = value;} } } /// Internal Acessors for DiagnosticLog - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDiagnosticsLogs Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal.DiagnosticLog { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerDiagnosticsInternal)Diagnostic).Log; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerDiagnosticsInternal)Diagnostic).Log = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDiagnosticsLogs Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal.DiagnosticLog { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerDiagnosticsInternal)Diagnostic).Log; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerDiagnosticsInternal)Diagnostic).Log = value ?? null /* model class */; } /// Internal Acessors for DiagnosticMetric - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IMetrics Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal.DiagnosticMetric { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerDiagnosticsInternal)Diagnostic).Metric; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerDiagnosticsInternal)Diagnostic).Metric = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IMetrics Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal.DiagnosticMetric { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerDiagnosticsInternal)Diagnostic).Metric; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerDiagnosticsInternal)Diagnostic).Metric = value ?? null /* model class */; } /// Internal Acessors for DiagnosticSelfCheck - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISelfCheck Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal.DiagnosticSelfCheck { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerDiagnosticsInternal)Diagnostic).SelfCheck; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerDiagnosticsInternal)Diagnostic).SelfCheck = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISelfCheck Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal.DiagnosticSelfCheck { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerDiagnosticsInternal)Diagnostic).SelfCheck; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerDiagnosticsInternal)Diagnostic).SelfCheck = value ?? null /* model class */; } /// Internal Acessors for DiagnosticTrace - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ITraces Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal.DiagnosticTrace { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerDiagnosticsInternal)Diagnostic).Trace; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerDiagnosticsInternal)Diagnostic).Trace = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ITraces Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal.DiagnosticTrace { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerDiagnosticsInternal)Diagnostic).Trace; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerDiagnosticsInternal)Diagnostic).Trace = value ?? null /* model class */; } /// Internal Acessors for GenerateResourceLimit Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IGenerateResourceLimits Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal.GenerateResourceLimit { get => (this._generateResourceLimit = this._generateResourceLimit ?? new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.GenerateResourceLimits()); set { {_generateResourceLimit = value;} } } /// Internal Acessors for InternalCertPrivateKey - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ICertManagerPrivateKey Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal.InternalCertPrivateKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IAdvancedSettingsInternal)Advanced).InternalCertPrivateKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IAdvancedSettingsInternal)Advanced).InternalCertPrivateKey = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ICertManagerPrivateKey Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal.InternalCertPrivateKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IAdvancedSettingsInternal)Advanced).InternalCertPrivateKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IAdvancedSettingsInternal)Advanced).InternalCertPrivateKey = value ?? null /* model class */; } /// Internal Acessors for ProvisioningState string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Internal Acessors for TraceSelfTracing - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISelfTracing Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal.TraceSelfTracing { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerDiagnosticsInternal)Diagnostic).TraceSelfTracing; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerDiagnosticsInternal)Diagnostic).TraceSelfTracing = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISelfTracing Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal.TraceSelfTracing { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerDiagnosticsInternal)Diagnostic).TraceSelfTracing; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerDiagnosticsInternal)Diagnostic).TraceSelfTracing = value ?? null /* model class */; } /// algorithm for private key. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inlined)] diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/BrokerResource.PowerShell.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/BrokerResource.PowerShell.cs index 3cf38f67d579..17a33693cb44 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/BrokerResource.PowerShell.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/BrokerResource.PowerShell.cs @@ -198,11 +198,11 @@ internal BrokerResource(global::System.Collections.IDictionary content) } if (content.Contains("BackendChainPartition")) { - ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal)this).BackendChainPartition = (int) content.GetValueForProperty("BackendChainPartition",((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal)this).BackendChainPartition, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal)this).BackendChainPartition = (int?) content.GetValueForProperty("BackendChainPartition",((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal)this).BackendChainPartition, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("BackendChainRedundancyFactor")) { - ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal)this).BackendChainRedundancyFactor = (int) content.GetValueForProperty("BackendChainRedundancyFactor",((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal)this).BackendChainRedundancyFactor, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal)this).BackendChainRedundancyFactor = (int?) content.GetValueForProperty("BackendChainRedundancyFactor",((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal)this).BackendChainRedundancyFactor, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("BackendChainWorker")) { @@ -210,7 +210,7 @@ internal BrokerResource(global::System.Collections.IDictionary content) } if (content.Contains("FrontendReplica")) { - ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal)this).FrontendReplica = (int) content.GetValueForProperty("FrontendReplica",((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal)this).FrontendReplica, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal)this).FrontendReplica = (int?) content.GetValueForProperty("FrontendReplica",((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal)this).FrontendReplica, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("FrontendWorker")) { @@ -455,11 +455,11 @@ internal BrokerResource(global::System.Management.Automation.PSObject content) } if (content.Contains("BackendChainPartition")) { - ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal)this).BackendChainPartition = (int) content.GetValueForProperty("BackendChainPartition",((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal)this).BackendChainPartition, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal)this).BackendChainPartition = (int?) content.GetValueForProperty("BackendChainPartition",((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal)this).BackendChainPartition, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("BackendChainRedundancyFactor")) { - ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal)this).BackendChainRedundancyFactor = (int) content.GetValueForProperty("BackendChainRedundancyFactor",((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal)this).BackendChainRedundancyFactor, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal)this).BackendChainRedundancyFactor = (int?) content.GetValueForProperty("BackendChainRedundancyFactor",((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal)this).BackendChainRedundancyFactor, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("BackendChainWorker")) { @@ -467,7 +467,7 @@ internal BrokerResource(global::System.Management.Automation.PSObject content) } if (content.Contains("FrontendReplica")) { - ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal)this).FrontendReplica = (int) content.GetValueForProperty("FrontendReplica",((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal)this).FrontendReplica, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal)this).FrontendReplica = (int?) content.GetValueForProperty("FrontendReplica",((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal)this).FrontendReplica, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("FrontendWorker")) { diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/BrokerResource.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/BrokerResource.cs index 897e497627a9..bdaddac65ee4 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/BrokerResource.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/BrokerResource.cs @@ -68,7 +68,7 @@ public partial class BrokerResource : /// The name of the extended location. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inlined)] - public string ExtendedLocationName { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Name = value ; } + public string ExtendedLocationName { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Name = value ?? null; } /// Type of ExtendedLocation. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inlined)] @@ -119,73 +119,91 @@ public partial class BrokerResource : public int? MetricPrometheusPort { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).MetricPrometheusPort; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).MetricPrometheusPort = value ?? default(int); } /// Internal Acessors for Advanced - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IAdvancedSettings Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal.Advanced { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).Advanced; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).Advanced = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IAdvancedSettings Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal.Advanced { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).Advanced; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).Advanced = value ?? null /* model class */; } /// Internal Acessors for AdvancedClient - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IClientConfig Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal.AdvancedClient { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).AdvancedClient; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).AdvancedClient = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IClientConfig Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal.AdvancedClient { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).AdvancedClient; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).AdvancedClient = value ?? null /* model class */; } /// Internal Acessors for AdvancedInternalCert - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ICertManagerCertOptions Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal.AdvancedInternalCert { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).AdvancedInternalCert; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).AdvancedInternalCert = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ICertManagerCertOptions Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal.AdvancedInternalCert { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).AdvancedInternalCert; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).AdvancedInternalCert = value ?? null /* model class */; } /// Internal Acessors for Cardinality - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ICardinality Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal.Cardinality { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).Cardinality; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).Cardinality = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ICardinality Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal.Cardinality { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).Cardinality; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).Cardinality = value ?? null /* model class */; } /// Internal Acessors for CardinalityBackendChain - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBackendChain Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal.CardinalityBackendChain { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).CardinalityBackendChain; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).CardinalityBackendChain = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBackendChain Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal.CardinalityBackendChain { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).CardinalityBackendChain; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).CardinalityBackendChain = value ?? null /* model class */; } /// Internal Acessors for CardinalityFrontend - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IFrontend Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal.CardinalityFrontend { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).CardinalityFrontend; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).CardinalityFrontend = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IFrontend Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal.CardinalityFrontend { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).CardinalityFrontend; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).CardinalityFrontend = value ?? null /* model class */; } /// Internal Acessors for ClientSubscriberQueueLimit - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISubscriberQueueLimit Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal.ClientSubscriberQueueLimit { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).ClientSubscriberQueueLimit; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).ClientSubscriberQueueLimit = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISubscriberQueueLimit Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal.ClientSubscriberQueueLimit { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).ClientSubscriberQueueLimit; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).ClientSubscriberQueueLimit = value ?? null /* model class */; } /// Internal Acessors for Diagnostic - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerDiagnostics Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal.Diagnostic { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).Diagnostic; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).Diagnostic = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerDiagnostics Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal.Diagnostic { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).Diagnostic; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).Diagnostic = value ?? null /* model class */; } /// Internal Acessors for DiagnosticLog - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDiagnosticsLogs Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal.DiagnosticLog { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).DiagnosticLog; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).DiagnosticLog = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDiagnosticsLogs Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal.DiagnosticLog { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).DiagnosticLog; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).DiagnosticLog = value ?? null /* model class */; } /// Internal Acessors for DiagnosticMetric - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IMetrics Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal.DiagnosticMetric { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).DiagnosticMetric; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).DiagnosticMetric = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IMetrics Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal.DiagnosticMetric { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).DiagnosticMetric; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).DiagnosticMetric = value ?? null /* model class */; } /// Internal Acessors for DiagnosticSelfCheck - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISelfCheck Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal.DiagnosticSelfCheck { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).DiagnosticSelfCheck; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).DiagnosticSelfCheck = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISelfCheck Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal.DiagnosticSelfCheck { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).DiagnosticSelfCheck; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).DiagnosticSelfCheck = value ?? null /* model class */; } /// Internal Acessors for DiagnosticTrace - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ITraces Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal.DiagnosticTrace { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).DiagnosticTrace; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).DiagnosticTrace = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ITraces Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal.DiagnosticTrace { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).DiagnosticTrace; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).DiagnosticTrace = value ?? null /* model class */; } /// Internal Acessors for ExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal.ExtendedLocation { get => (this._extendedLocation = this._extendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ExtendedLocation()); set { {_extendedLocation = value;} } } /// Internal Acessors for ExtendedLocationType - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal.ExtendedLocationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal.ExtendedLocationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Type = value ?? null; } /// Internal Acessors for GenerateResourceLimit - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IGenerateResourceLimits Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal.GenerateResourceLimit { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).GenerateResourceLimit; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).GenerateResourceLimit = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IGenerateResourceLimits Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal.GenerateResourceLimit { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).GenerateResourceLimit; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).GenerateResourceLimit = value ?? null /* model class */; } /// Internal Acessors for InternalCertPrivateKey - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ICertManagerPrivateKey Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal.InternalCertPrivateKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).InternalCertPrivateKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).InternalCertPrivateKey = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ICertManagerPrivateKey Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal.InternalCertPrivateKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).InternalCertPrivateKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).InternalCertPrivateKey = value ?? null /* model class */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerProperties Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.BrokerProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for TraceSelfTracing - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISelfTracing Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal.TraceSelfTracing { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).TraceSelfTracing; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).TraceSelfTracing = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISelfTracing Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResourceInternal.TraceSelfTracing { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).TraceSelfTracing; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerPropertiesInternal)Property).TraceSelfTracing = value ?? null /* model class */; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] @@ -246,31 +264,31 @@ public partial class BrokerResource : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// The cache size in megabytes. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inlined)] @@ -426,7 +444,7 @@ public partial interface IBrokerResource : Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDiskBackedMessageBuffer DiskBackedMessageBuffer { get; set; } /// The name of the extended location. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -437,7 +455,7 @@ public partial interface IBrokerResource : string ExtendedLocationName { get; set; } /// Type of ExtendedLocation. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Runtime.Info( - Required = true, + Required = false, ReadOnly = true, Read = true, Create = true, diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/DataflowEndpointDataExplorer.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/DataflowEndpointDataExplorer.cs index eea1cbd9a532..b9978e95038f 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/DataflowEndpointDataExplorer.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/DataflowEndpointDataExplorer.cs @@ -61,10 +61,10 @@ public partial class DataflowEndpointDataExplorer : Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataExplorerAuthentication Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataExplorerInternal.Authentication { get => (this._authentication = this._authentication ?? new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.DataflowEndpointDataExplorerAuthentication()); set { {_authentication = value;} } } /// Internal Acessors for AuthenticationSystemAssignedManagedIdentitySetting - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationSystemAssignedManagedIdentity Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataExplorerInternal.AuthenticationSystemAssignedManagedIdentitySetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataExplorerAuthenticationInternal)Authentication).SystemAssignedManagedIdentitySetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataExplorerAuthenticationInternal)Authentication).SystemAssignedManagedIdentitySetting = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationSystemAssignedManagedIdentity Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataExplorerInternal.AuthenticationSystemAssignedManagedIdentitySetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataExplorerAuthenticationInternal)Authentication).SystemAssignedManagedIdentitySetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataExplorerAuthenticationInternal)Authentication).SystemAssignedManagedIdentitySetting = value ?? null /* model class */; } /// Internal Acessors for AuthenticationUserAssignedManagedIdentitySetting - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationUserAssignedManagedIdentity Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataExplorerInternal.AuthenticationUserAssignedManagedIdentitySetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataExplorerAuthenticationInternal)Authentication).UserAssignedManagedIdentitySetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataExplorerAuthenticationInternal)Authentication).UserAssignedManagedIdentitySetting = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationUserAssignedManagedIdentity Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataExplorerInternal.AuthenticationUserAssignedManagedIdentitySetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataExplorerAuthenticationInternal)Authentication).UserAssignedManagedIdentitySetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataExplorerAuthenticationInternal)Authentication).UserAssignedManagedIdentitySetting = value ?? null /* model class */; } /// Internal Acessors for Batching Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBatchingConfiguration Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataExplorerInternal.Batching { get => (this._batching = this._batching ?? new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.BatchingConfiguration()); set { {_batching = value;} } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/DataflowEndpointDataLakeStorage.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/DataflowEndpointDataLakeStorage.cs index 7f5b187dbd07..ffef754f812b 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/DataflowEndpointDataLakeStorage.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/DataflowEndpointDataLakeStorage.cs @@ -56,13 +56,13 @@ public partial class DataflowEndpointDataLakeStorage : Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataLakeStorageAuthentication Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataLakeStorageInternal.Authentication { get => (this._authentication = this._authentication ?? new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.DataflowEndpointDataLakeStorageAuthentication()); set { {_authentication = value;} } } /// Internal Acessors for AuthenticationAccessTokenSetting - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationAccessToken Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataLakeStorageInternal.AuthenticationAccessTokenSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataLakeStorageAuthenticationInternal)Authentication).AccessTokenSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataLakeStorageAuthenticationInternal)Authentication).AccessTokenSetting = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationAccessToken Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataLakeStorageInternal.AuthenticationAccessTokenSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataLakeStorageAuthenticationInternal)Authentication).AccessTokenSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataLakeStorageAuthenticationInternal)Authentication).AccessTokenSetting = value ?? null /* model class */; } /// Internal Acessors for AuthenticationSystemAssignedManagedIdentitySetting - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationSystemAssignedManagedIdentity Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataLakeStorageInternal.AuthenticationSystemAssignedManagedIdentitySetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataLakeStorageAuthenticationInternal)Authentication).SystemAssignedManagedIdentitySetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataLakeStorageAuthenticationInternal)Authentication).SystemAssignedManagedIdentitySetting = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationSystemAssignedManagedIdentity Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataLakeStorageInternal.AuthenticationSystemAssignedManagedIdentitySetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataLakeStorageAuthenticationInternal)Authentication).SystemAssignedManagedIdentitySetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataLakeStorageAuthenticationInternal)Authentication).SystemAssignedManagedIdentitySetting = value ?? null /* model class */; } /// Internal Acessors for AuthenticationUserAssignedManagedIdentitySetting - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationUserAssignedManagedIdentity Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataLakeStorageInternal.AuthenticationUserAssignedManagedIdentitySetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataLakeStorageAuthenticationInternal)Authentication).UserAssignedManagedIdentitySetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataLakeStorageAuthenticationInternal)Authentication).UserAssignedManagedIdentitySetting = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationUserAssignedManagedIdentity Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataLakeStorageInternal.AuthenticationUserAssignedManagedIdentitySetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataLakeStorageAuthenticationInternal)Authentication).UserAssignedManagedIdentitySetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataLakeStorageAuthenticationInternal)Authentication).UserAssignedManagedIdentitySetting = value ?? null /* model class */; } /// Internal Acessors for Batching Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBatchingConfiguration Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataLakeStorageInternal.Batching { get => (this._batching = this._batching ?? new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.BatchingConfiguration()); set { {_batching = value;} } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/DataflowEndpointFabricOneLake.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/DataflowEndpointFabricOneLake.cs index 1ba14cd4dd2a..13f5db6f9172 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/DataflowEndpointFabricOneLake.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/DataflowEndpointFabricOneLake.cs @@ -54,10 +54,10 @@ public partial class DataflowEndpointFabricOneLake : Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointFabricOneLakeAuthentication Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointFabricOneLakeInternal.Authentication { get => (this._authentication = this._authentication ?? new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.DataflowEndpointFabricOneLakeAuthentication()); set { {_authentication = value;} } } /// Internal Acessors for AuthenticationSystemAssignedManagedIdentitySetting - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationSystemAssignedManagedIdentity Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointFabricOneLakeInternal.AuthenticationSystemAssignedManagedIdentitySetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointFabricOneLakeAuthenticationInternal)Authentication).SystemAssignedManagedIdentitySetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointFabricOneLakeAuthenticationInternal)Authentication).SystemAssignedManagedIdentitySetting = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationSystemAssignedManagedIdentity Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointFabricOneLakeInternal.AuthenticationSystemAssignedManagedIdentitySetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointFabricOneLakeAuthenticationInternal)Authentication).SystemAssignedManagedIdentitySetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointFabricOneLakeAuthenticationInternal)Authentication).SystemAssignedManagedIdentitySetting = value ?? null /* model class */; } /// Internal Acessors for AuthenticationUserAssignedManagedIdentitySetting - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationUserAssignedManagedIdentity Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointFabricOneLakeInternal.AuthenticationUserAssignedManagedIdentitySetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointFabricOneLakeAuthenticationInternal)Authentication).UserAssignedManagedIdentitySetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointFabricOneLakeAuthenticationInternal)Authentication).UserAssignedManagedIdentitySetting = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationUserAssignedManagedIdentity Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointFabricOneLakeInternal.AuthenticationUserAssignedManagedIdentitySetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointFabricOneLakeAuthenticationInternal)Authentication).UserAssignedManagedIdentitySetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointFabricOneLakeAuthenticationInternal)Authentication).UserAssignedManagedIdentitySetting = value ?? null /* model class */; } /// Internal Acessors for Batching Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBatchingConfiguration Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointFabricOneLakeInternal.Batching { get => (this._batching = this._batching ?? new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.BatchingConfiguration()); set { {_batching = value;} } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/DataflowEndpointKafka.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/DataflowEndpointKafka.cs index f8a97b08f664..12abc08bd7de 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/DataflowEndpointKafka.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/DataflowEndpointKafka.cs @@ -101,16 +101,16 @@ public partial class DataflowEndpointKafka : Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointKafkaAuthentication Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointKafkaInternal.Authentication { get => (this._authentication = this._authentication ?? new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.DataflowEndpointKafkaAuthentication()); set { {_authentication = value;} } } /// Internal Acessors for AuthenticationSaslSetting - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationSasl Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointKafkaInternal.AuthenticationSaslSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointKafkaAuthenticationInternal)Authentication).SaslSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointKafkaAuthenticationInternal)Authentication).SaslSetting = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationSasl Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointKafkaInternal.AuthenticationSaslSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointKafkaAuthenticationInternal)Authentication).SaslSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointKafkaAuthenticationInternal)Authentication).SaslSetting = value ?? null /* model class */; } /// Internal Acessors for AuthenticationSystemAssignedManagedIdentitySetting - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationSystemAssignedManagedIdentity Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointKafkaInternal.AuthenticationSystemAssignedManagedIdentitySetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointKafkaAuthenticationInternal)Authentication).SystemAssignedManagedIdentitySetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointKafkaAuthenticationInternal)Authentication).SystemAssignedManagedIdentitySetting = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationSystemAssignedManagedIdentity Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointKafkaInternal.AuthenticationSystemAssignedManagedIdentitySetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointKafkaAuthenticationInternal)Authentication).SystemAssignedManagedIdentitySetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointKafkaAuthenticationInternal)Authentication).SystemAssignedManagedIdentitySetting = value ?? null /* model class */; } /// Internal Acessors for AuthenticationUserAssignedManagedIdentitySetting - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationUserAssignedManagedIdentity Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointKafkaInternal.AuthenticationUserAssignedManagedIdentitySetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointKafkaAuthenticationInternal)Authentication).UserAssignedManagedIdentitySetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointKafkaAuthenticationInternal)Authentication).UserAssignedManagedIdentitySetting = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationUserAssignedManagedIdentity Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointKafkaInternal.AuthenticationUserAssignedManagedIdentitySetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointKafkaAuthenticationInternal)Authentication).UserAssignedManagedIdentitySetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointKafkaAuthenticationInternal)Authentication).UserAssignedManagedIdentitySetting = value ?? null /* model class */; } /// Internal Acessors for AuthenticationX509CertificateSetting - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationX509 Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointKafkaInternal.AuthenticationX509CertificateSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointKafkaAuthenticationInternal)Authentication).X509CertificateSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointKafkaAuthenticationInternal)Authentication).X509CertificateSetting = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationX509 Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointKafkaInternal.AuthenticationX509CertificateSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointKafkaAuthenticationInternal)Authentication).X509CertificateSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointKafkaAuthenticationInternal)Authentication).X509CertificateSetting = value ?? null /* model class */; } /// Internal Acessors for Batching Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointKafkaBatching Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointKafkaInternal.Batching { get => (this._batching = this._batching ?? new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.DataflowEndpointKafkaBatching()); set { {_batching = value;} } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/DataflowEndpointMqtt.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/DataflowEndpointMqtt.cs index 4c959a7e32a3..45cc3643c8c0 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/DataflowEndpointMqtt.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/DataflowEndpointMqtt.cs @@ -72,16 +72,16 @@ public partial class DataflowEndpointMqtt : Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointMqttAuthentication Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointMqttInternal.Authentication { get => (this._authentication = this._authentication ?? new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.DataflowEndpointMqttAuthentication()); set { {_authentication = value;} } } /// Internal Acessors for AuthenticationServiceAccountTokenSetting - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationServiceAccountToken Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointMqttInternal.AuthenticationServiceAccountTokenSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointMqttAuthenticationInternal)Authentication).ServiceAccountTokenSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointMqttAuthenticationInternal)Authentication).ServiceAccountTokenSetting = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationServiceAccountToken Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointMqttInternal.AuthenticationServiceAccountTokenSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointMqttAuthenticationInternal)Authentication).ServiceAccountTokenSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointMqttAuthenticationInternal)Authentication).ServiceAccountTokenSetting = value ?? null /* model class */; } /// Internal Acessors for AuthenticationSystemAssignedManagedIdentitySetting - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationSystemAssignedManagedIdentity Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointMqttInternal.AuthenticationSystemAssignedManagedIdentitySetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointMqttAuthenticationInternal)Authentication).SystemAssignedManagedIdentitySetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointMqttAuthenticationInternal)Authentication).SystemAssignedManagedIdentitySetting = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationSystemAssignedManagedIdentity Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointMqttInternal.AuthenticationSystemAssignedManagedIdentitySetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointMqttAuthenticationInternal)Authentication).SystemAssignedManagedIdentitySetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointMqttAuthenticationInternal)Authentication).SystemAssignedManagedIdentitySetting = value ?? null /* model class */; } /// Internal Acessors for AuthenticationUserAssignedManagedIdentitySetting - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationUserAssignedManagedIdentity Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointMqttInternal.AuthenticationUserAssignedManagedIdentitySetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointMqttAuthenticationInternal)Authentication).UserAssignedManagedIdentitySetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointMqttAuthenticationInternal)Authentication).UserAssignedManagedIdentitySetting = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationUserAssignedManagedIdentity Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointMqttInternal.AuthenticationUserAssignedManagedIdentitySetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointMqttAuthenticationInternal)Authentication).UserAssignedManagedIdentitySetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointMqttAuthenticationInternal)Authentication).UserAssignedManagedIdentitySetting = value ?? null /* model class */; } /// Internal Acessors for AuthenticationX509CertificateSetting - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationX509 Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointMqttInternal.AuthenticationX509CertificateSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointMqttAuthenticationInternal)Authentication).X509CertificateSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointMqttAuthenticationInternal)Authentication).X509CertificateSetting = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationX509 Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointMqttInternal.AuthenticationX509CertificateSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointMqttAuthenticationInternal)Authentication).X509CertificateSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointMqttAuthenticationInternal)Authentication).X509CertificateSetting = value ?? null /* model class */; } /// Internal Acessors for Tl Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ITlsProperties Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointMqttInternal.Tl { get => (this._tl = this._tl ?? new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.TlsProperties()); set { {_tl = value;} } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/DataflowEndpointProperties.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/DataflowEndpointProperties.cs index 8f0f7b0568ce..7d4b5a59cfcb 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/DataflowEndpointProperties.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/DataflowEndpointProperties.cs @@ -186,67 +186,67 @@ public partial class DataflowEndpointProperties : public string LocalStorageSettingPersistentVolumeClaimRef { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointLocalStorageInternal)LocalStorageSetting).PersistentVolumeClaimRef; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointLocalStorageInternal)LocalStorageSetting).PersistentVolumeClaimRef = value ?? null; } /// Internal Acessors for AuthenticationAccessTokenSetting - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationAccessToken Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal.AuthenticationAccessTokenSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataLakeStorageInternal)DataLakeStorageSetting).AuthenticationAccessTokenSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataLakeStorageInternal)DataLakeStorageSetting).AuthenticationAccessTokenSetting = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationAccessToken Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal.AuthenticationAccessTokenSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataLakeStorageInternal)DataLakeStorageSetting).AuthenticationAccessTokenSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataLakeStorageInternal)DataLakeStorageSetting).AuthenticationAccessTokenSetting = value ?? null /* model class */; } /// Internal Acessors for DataExplorerSetting Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataExplorer Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal.DataExplorerSetting { get => (this._dataExplorerSetting = this._dataExplorerSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.DataflowEndpointDataExplorer()); set { {_dataExplorerSetting = value;} } } /// Internal Acessors for DataExplorerSettingAuthentication - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataExplorerAuthentication Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal.DataExplorerSettingAuthentication { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataExplorerInternal)DataExplorerSetting).Authentication; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataExplorerInternal)DataExplorerSetting).Authentication = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataExplorerAuthentication Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal.DataExplorerSettingAuthentication { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataExplorerInternal)DataExplorerSetting).Authentication; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataExplorerInternal)DataExplorerSetting).Authentication = value ?? null /* model class */; } /// Internal Acessors for DataExplorerSettingBatching - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBatchingConfiguration Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal.DataExplorerSettingBatching { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataExplorerInternal)DataExplorerSetting).Batching; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataExplorerInternal)DataExplorerSetting).Batching = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBatchingConfiguration Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal.DataExplorerSettingBatching { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataExplorerInternal)DataExplorerSetting).Batching; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataExplorerInternal)DataExplorerSetting).Batching = value ?? null /* model class */; } /// /// Internal Acessors for DataExplorerSettingsAuthenticationSystemAssignedManagedIdentitySetting /// - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationSystemAssignedManagedIdentity Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal.DataExplorerSettingsAuthenticationSystemAssignedManagedIdentitySetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataExplorerInternal)DataExplorerSetting).AuthenticationSystemAssignedManagedIdentitySetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataExplorerInternal)DataExplorerSetting).AuthenticationSystemAssignedManagedIdentitySetting = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationSystemAssignedManagedIdentity Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal.DataExplorerSettingsAuthenticationSystemAssignedManagedIdentitySetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataExplorerInternal)DataExplorerSetting).AuthenticationSystemAssignedManagedIdentitySetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataExplorerInternal)DataExplorerSetting).AuthenticationSystemAssignedManagedIdentitySetting = value ?? null /* model class */; } /// /// Internal Acessors for DataExplorerSettingsAuthenticationUserAssignedManagedIdentitySetting /// - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationUserAssignedManagedIdentity Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal.DataExplorerSettingsAuthenticationUserAssignedManagedIdentitySetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataExplorerInternal)DataExplorerSetting).AuthenticationUserAssignedManagedIdentitySetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataExplorerInternal)DataExplorerSetting).AuthenticationUserAssignedManagedIdentitySetting = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationUserAssignedManagedIdentity Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal.DataExplorerSettingsAuthenticationUserAssignedManagedIdentitySetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataExplorerInternal)DataExplorerSetting).AuthenticationUserAssignedManagedIdentitySetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataExplorerInternal)DataExplorerSetting).AuthenticationUserAssignedManagedIdentitySetting = value ?? null /* model class */; } /// Internal Acessors for DataLakeStorageSetting Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataLakeStorage Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal.DataLakeStorageSetting { get => (this._dataLakeStorageSetting = this._dataLakeStorageSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.DataflowEndpointDataLakeStorage()); set { {_dataLakeStorageSetting = value;} } } /// Internal Acessors for DataLakeStorageSettingAuthentication - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataLakeStorageAuthentication Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal.DataLakeStorageSettingAuthentication { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataLakeStorageInternal)DataLakeStorageSetting).Authentication; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataLakeStorageInternal)DataLakeStorageSetting).Authentication = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataLakeStorageAuthentication Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal.DataLakeStorageSettingAuthentication { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataLakeStorageInternal)DataLakeStorageSetting).Authentication; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataLakeStorageInternal)DataLakeStorageSetting).Authentication = value ?? null /* model class */; } /// Internal Acessors for DataLakeStorageSettingBatching - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBatchingConfiguration Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal.DataLakeStorageSettingBatching { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataLakeStorageInternal)DataLakeStorageSetting).Batching; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataLakeStorageInternal)DataLakeStorageSetting).Batching = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBatchingConfiguration Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal.DataLakeStorageSettingBatching { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataLakeStorageInternal)DataLakeStorageSetting).Batching; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataLakeStorageInternal)DataLakeStorageSetting).Batching = value ?? null /* model class */; } /// /// Internal Acessors for DataLakeStorageSettingsAuthenticationSystemAssignedManagedIdentitySetting /// - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationSystemAssignedManagedIdentity Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal.DataLakeStorageSettingsAuthenticationSystemAssignedManagedIdentitySetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataLakeStorageInternal)DataLakeStorageSetting).AuthenticationSystemAssignedManagedIdentitySetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataLakeStorageInternal)DataLakeStorageSetting).AuthenticationSystemAssignedManagedIdentitySetting = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationSystemAssignedManagedIdentity Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal.DataLakeStorageSettingsAuthenticationSystemAssignedManagedIdentitySetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataLakeStorageInternal)DataLakeStorageSetting).AuthenticationSystemAssignedManagedIdentitySetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataLakeStorageInternal)DataLakeStorageSetting).AuthenticationSystemAssignedManagedIdentitySetting = value ?? null /* model class */; } /// /// Internal Acessors for DataLakeStorageSettingsAuthenticationUserAssignedManagedIdentitySetting /// - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationUserAssignedManagedIdentity Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal.DataLakeStorageSettingsAuthenticationUserAssignedManagedIdentitySetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataLakeStorageInternal)DataLakeStorageSetting).AuthenticationUserAssignedManagedIdentitySetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataLakeStorageInternal)DataLakeStorageSetting).AuthenticationUserAssignedManagedIdentitySetting = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationUserAssignedManagedIdentity Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal.DataLakeStorageSettingsAuthenticationUserAssignedManagedIdentitySetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataLakeStorageInternal)DataLakeStorageSetting).AuthenticationUserAssignedManagedIdentitySetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataLakeStorageInternal)DataLakeStorageSetting).AuthenticationUserAssignedManagedIdentitySetting = value ?? null /* model class */; } /// Internal Acessors for FabricOneLakeSetting Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointFabricOneLake Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal.FabricOneLakeSetting { get => (this._fabricOneLakeSetting = this._fabricOneLakeSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.DataflowEndpointFabricOneLake()); set { {_fabricOneLakeSetting = value;} } } /// Internal Acessors for FabricOneLakeSettingAuthentication - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointFabricOneLakeAuthentication Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal.FabricOneLakeSettingAuthentication { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointFabricOneLakeInternal)FabricOneLakeSetting).Authentication; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointFabricOneLakeInternal)FabricOneLakeSetting).Authentication = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointFabricOneLakeAuthentication Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal.FabricOneLakeSettingAuthentication { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointFabricOneLakeInternal)FabricOneLakeSetting).Authentication; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointFabricOneLakeInternal)FabricOneLakeSetting).Authentication = value ?? null /* model class */; } /// Internal Acessors for FabricOneLakeSettingBatching - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBatchingConfiguration Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal.FabricOneLakeSettingBatching { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointFabricOneLakeInternal)FabricOneLakeSetting).Batching; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointFabricOneLakeInternal)FabricOneLakeSetting).Batching = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBatchingConfiguration Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal.FabricOneLakeSettingBatching { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointFabricOneLakeInternal)FabricOneLakeSetting).Batching; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointFabricOneLakeInternal)FabricOneLakeSetting).Batching = value ?? null /* model class */; } /// Internal Acessors for FabricOneLakeSettingName - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointFabricOneLakeNames Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal.FabricOneLakeSettingName { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointFabricOneLakeInternal)FabricOneLakeSetting).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointFabricOneLakeInternal)FabricOneLakeSetting).Name = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointFabricOneLakeNames Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal.FabricOneLakeSettingName { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointFabricOneLakeInternal)FabricOneLakeSetting).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointFabricOneLakeInternal)FabricOneLakeSetting).Name = value ?? null /* model class */; } /// /// Internal Acessors for FabricOneLakeSettingsAuthenticationSystemAssignedManagedIdentitySetting /// - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationSystemAssignedManagedIdentity Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal.FabricOneLakeSettingsAuthenticationSystemAssignedManagedIdentitySetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointFabricOneLakeInternal)FabricOneLakeSetting).AuthenticationSystemAssignedManagedIdentitySetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointFabricOneLakeInternal)FabricOneLakeSetting).AuthenticationSystemAssignedManagedIdentitySetting = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationSystemAssignedManagedIdentity Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal.FabricOneLakeSettingsAuthenticationSystemAssignedManagedIdentitySetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointFabricOneLakeInternal)FabricOneLakeSetting).AuthenticationSystemAssignedManagedIdentitySetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointFabricOneLakeInternal)FabricOneLakeSetting).AuthenticationSystemAssignedManagedIdentitySetting = value ?? null /* model class */; } /// /// Internal Acessors for FabricOneLakeSettingsAuthenticationUserAssignedManagedIdentitySetting /// - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationUserAssignedManagedIdentity Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal.FabricOneLakeSettingsAuthenticationUserAssignedManagedIdentitySetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointFabricOneLakeInternal)FabricOneLakeSetting).AuthenticationUserAssignedManagedIdentitySetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointFabricOneLakeInternal)FabricOneLakeSetting).AuthenticationUserAssignedManagedIdentitySetting = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationUserAssignedManagedIdentity Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal.FabricOneLakeSettingsAuthenticationUserAssignedManagedIdentitySetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointFabricOneLakeInternal)FabricOneLakeSetting).AuthenticationUserAssignedManagedIdentitySetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointFabricOneLakeInternal)FabricOneLakeSetting).AuthenticationUserAssignedManagedIdentitySetting = value ?? null /* model class */; } /// Internal Acessors for LocalStorageSetting Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointLocalStorage Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal.LocalStorageSetting { get => (this._localStorageSetting = this._localStorageSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.DataflowEndpointLocalStorage()); set { {_localStorageSetting = value;} } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/DataflowEndpointResource.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/DataflowEndpointResource.cs index ea32dcd93ac3..5e8a63f93256 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/DataflowEndpointResource.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/DataflowEndpointResource.cs @@ -114,7 +114,7 @@ public partial class DataflowEndpointResource : /// The name of the extended location. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inlined)] - public string ExtendedLocationName { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Name = value ; } + public string ExtendedLocationName { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Name = value ?? null; } /// Type of ExtendedLocation. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inlined)] @@ -177,94 +177,112 @@ public partial class DataflowEndpointResource : public string LocalStorageSettingPersistentVolumeClaimRef { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).LocalStorageSettingPersistentVolumeClaimRef; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).LocalStorageSettingPersistentVolumeClaimRef = value ?? null; } /// Internal Acessors for AuthenticationAccessTokenSetting - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationAccessToken Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointResourceInternal.AuthenticationAccessTokenSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).AuthenticationAccessTokenSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).AuthenticationAccessTokenSetting = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationAccessToken Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointResourceInternal.AuthenticationAccessTokenSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).AuthenticationAccessTokenSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).AuthenticationAccessTokenSetting = value ?? null /* model class */; } /// Internal Acessors for DataExplorerSetting - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataExplorer Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointResourceInternal.DataExplorerSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).DataExplorerSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).DataExplorerSetting = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataExplorer Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointResourceInternal.DataExplorerSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).DataExplorerSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).DataExplorerSetting = value ?? null /* model class */; } /// Internal Acessors for DataExplorerSettingAuthentication - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataExplorerAuthentication Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointResourceInternal.DataExplorerSettingAuthentication { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).DataExplorerSettingAuthentication; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).DataExplorerSettingAuthentication = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataExplorerAuthentication Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointResourceInternal.DataExplorerSettingAuthentication { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).DataExplorerSettingAuthentication; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).DataExplorerSettingAuthentication = value ?? null /* model class */; } /// Internal Acessors for DataExplorerSettingBatching - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBatchingConfiguration Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointResourceInternal.DataExplorerSettingBatching { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).DataExplorerSettingBatching; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).DataExplorerSettingBatching = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBatchingConfiguration Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointResourceInternal.DataExplorerSettingBatching { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).DataExplorerSettingBatching; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).DataExplorerSettingBatching = value ?? null /* model class */; } /// /// Internal Acessors for DataExplorerSettingsAuthenticationSystemAssignedManagedIdentitySetting /// - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationSystemAssignedManagedIdentity Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointResourceInternal.DataExplorerSettingsAuthenticationSystemAssignedManagedIdentitySetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).DataExplorerSettingsAuthenticationSystemAssignedManagedIdentitySetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).DataExplorerSettingsAuthenticationSystemAssignedManagedIdentitySetting = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationSystemAssignedManagedIdentity Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointResourceInternal.DataExplorerSettingsAuthenticationSystemAssignedManagedIdentitySetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).DataExplorerSettingsAuthenticationSystemAssignedManagedIdentitySetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).DataExplorerSettingsAuthenticationSystemAssignedManagedIdentitySetting = value ?? null /* model class */; } /// /// Internal Acessors for DataExplorerSettingsAuthenticationUserAssignedManagedIdentitySetting /// - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationUserAssignedManagedIdentity Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointResourceInternal.DataExplorerSettingsAuthenticationUserAssignedManagedIdentitySetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).DataExplorerSettingsAuthenticationUserAssignedManagedIdentitySetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).DataExplorerSettingsAuthenticationUserAssignedManagedIdentitySetting = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationUserAssignedManagedIdentity Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointResourceInternal.DataExplorerSettingsAuthenticationUserAssignedManagedIdentitySetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).DataExplorerSettingsAuthenticationUserAssignedManagedIdentitySetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).DataExplorerSettingsAuthenticationUserAssignedManagedIdentitySetting = value ?? null /* model class */; } /// Internal Acessors for DataLakeStorageSetting - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataLakeStorage Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointResourceInternal.DataLakeStorageSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).DataLakeStorageSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).DataLakeStorageSetting = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataLakeStorage Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointResourceInternal.DataLakeStorageSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).DataLakeStorageSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).DataLakeStorageSetting = value ?? null /* model class */; } /// Internal Acessors for DataLakeStorageSettingAuthentication - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataLakeStorageAuthentication Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointResourceInternal.DataLakeStorageSettingAuthentication { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).DataLakeStorageSettingAuthentication; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).DataLakeStorageSettingAuthentication = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointDataLakeStorageAuthentication Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointResourceInternal.DataLakeStorageSettingAuthentication { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).DataLakeStorageSettingAuthentication; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).DataLakeStorageSettingAuthentication = value ?? null /* model class */; } /// Internal Acessors for DataLakeStorageSettingBatching - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBatchingConfiguration Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointResourceInternal.DataLakeStorageSettingBatching { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).DataLakeStorageSettingBatching; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).DataLakeStorageSettingBatching = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBatchingConfiguration Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointResourceInternal.DataLakeStorageSettingBatching { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).DataLakeStorageSettingBatching; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).DataLakeStorageSettingBatching = value ?? null /* model class */; } /// /// Internal Acessors for DataLakeStorageSettingsAuthenticationSystemAssignedManagedIdentitySetting /// - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationSystemAssignedManagedIdentity Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointResourceInternal.DataLakeStorageSettingsAuthenticationSystemAssignedManagedIdentitySetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).DataLakeStorageSettingsAuthenticationSystemAssignedManagedIdentitySetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).DataLakeStorageSettingsAuthenticationSystemAssignedManagedIdentitySetting = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationSystemAssignedManagedIdentity Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointResourceInternal.DataLakeStorageSettingsAuthenticationSystemAssignedManagedIdentitySetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).DataLakeStorageSettingsAuthenticationSystemAssignedManagedIdentitySetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).DataLakeStorageSettingsAuthenticationSystemAssignedManagedIdentitySetting = value ?? null /* model class */; } /// /// Internal Acessors for DataLakeStorageSettingsAuthenticationUserAssignedManagedIdentitySetting /// - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationUserAssignedManagedIdentity Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointResourceInternal.DataLakeStorageSettingsAuthenticationUserAssignedManagedIdentitySetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).DataLakeStorageSettingsAuthenticationUserAssignedManagedIdentitySetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).DataLakeStorageSettingsAuthenticationUserAssignedManagedIdentitySetting = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationUserAssignedManagedIdentity Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointResourceInternal.DataLakeStorageSettingsAuthenticationUserAssignedManagedIdentitySetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).DataLakeStorageSettingsAuthenticationUserAssignedManagedIdentitySetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).DataLakeStorageSettingsAuthenticationUserAssignedManagedIdentitySetting = value ?? null /* model class */; } /// Internal Acessors for ExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointResourceInternal.ExtendedLocation { get => (this._extendedLocation = this._extendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ExtendedLocation()); set { {_extendedLocation = value;} } } /// Internal Acessors for ExtendedLocationType - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointResourceInternal.ExtendedLocationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointResourceInternal.ExtendedLocationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Type = value ?? null; } /// Internal Acessors for FabricOneLakeSetting - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointFabricOneLake Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointResourceInternal.FabricOneLakeSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).FabricOneLakeSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).FabricOneLakeSetting = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointFabricOneLake Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointResourceInternal.FabricOneLakeSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).FabricOneLakeSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).FabricOneLakeSetting = value ?? null /* model class */; } /// Internal Acessors for FabricOneLakeSettingAuthentication - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointFabricOneLakeAuthentication Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointResourceInternal.FabricOneLakeSettingAuthentication { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).FabricOneLakeSettingAuthentication; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).FabricOneLakeSettingAuthentication = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointFabricOneLakeAuthentication Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointResourceInternal.FabricOneLakeSettingAuthentication { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).FabricOneLakeSettingAuthentication; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).FabricOneLakeSettingAuthentication = value ?? null /* model class */; } /// Internal Acessors for FabricOneLakeSettingBatching - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBatchingConfiguration Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointResourceInternal.FabricOneLakeSettingBatching { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).FabricOneLakeSettingBatching; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).FabricOneLakeSettingBatching = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBatchingConfiguration Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointResourceInternal.FabricOneLakeSettingBatching { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).FabricOneLakeSettingBatching; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).FabricOneLakeSettingBatching = value ?? null /* model class */; } /// Internal Acessors for FabricOneLakeSettingName - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointFabricOneLakeNames Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointResourceInternal.FabricOneLakeSettingName { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).FabricOneLakeSettingName; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).FabricOneLakeSettingName = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointFabricOneLakeNames Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointResourceInternal.FabricOneLakeSettingName { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).FabricOneLakeSettingName; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).FabricOneLakeSettingName = value ?? null /* model class */; } /// /// Internal Acessors for FabricOneLakeSettingsAuthenticationSystemAssignedManagedIdentitySetting /// - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationSystemAssignedManagedIdentity Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointResourceInternal.FabricOneLakeSettingsAuthenticationSystemAssignedManagedIdentitySetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).FabricOneLakeSettingsAuthenticationSystemAssignedManagedIdentitySetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).FabricOneLakeSettingsAuthenticationSystemAssignedManagedIdentitySetting = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationSystemAssignedManagedIdentity Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointResourceInternal.FabricOneLakeSettingsAuthenticationSystemAssignedManagedIdentitySetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).FabricOneLakeSettingsAuthenticationSystemAssignedManagedIdentitySetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).FabricOneLakeSettingsAuthenticationSystemAssignedManagedIdentitySetting = value ?? null /* model class */; } /// /// Internal Acessors for FabricOneLakeSettingsAuthenticationUserAssignedManagedIdentitySetting /// - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationUserAssignedManagedIdentity Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointResourceInternal.FabricOneLakeSettingsAuthenticationUserAssignedManagedIdentitySetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).FabricOneLakeSettingsAuthenticationUserAssignedManagedIdentitySetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).FabricOneLakeSettingsAuthenticationUserAssignedManagedIdentitySetting = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointAuthenticationUserAssignedManagedIdentity Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointResourceInternal.FabricOneLakeSettingsAuthenticationUserAssignedManagedIdentitySetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).FabricOneLakeSettingsAuthenticationUserAssignedManagedIdentitySetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).FabricOneLakeSettingsAuthenticationUserAssignedManagedIdentitySetting = value ?? null /* model class */; } /// Internal Acessors for LocalStorageSetting - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointLocalStorage Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointResourceInternal.LocalStorageSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).LocalStorageSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).LocalStorageSetting = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointLocalStorage Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointResourceInternal.LocalStorageSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).LocalStorageSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).LocalStorageSetting = value ?? null /* model class */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointProperties Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.DataflowEndpointProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// Broker endpoint. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inlined)] @@ -301,31 +319,31 @@ public partial class DataflowEndpointResource : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" @@ -580,7 +598,7 @@ public partial interface IDataflowEndpointResource : string EndpointType { get; set; } /// The name of the extended location. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -591,7 +609,7 @@ public partial interface IDataflowEndpointResource : string ExtendedLocationName { get; set; } /// Type of ExtendedLocation. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Runtime.Info( - Required = true, + Required = false, ReadOnly = true, Read = true, Create = true, diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/DataflowProfileProperties.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/DataflowProfileProperties.cs index 2ed3bf665a8d..07109790bb29 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/DataflowProfileProperties.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/DataflowProfileProperties.cs @@ -41,10 +41,10 @@ public partial class DataflowProfileProperties : Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IProfileDiagnostics Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowProfilePropertiesInternal.Diagnostic { get => (this._diagnostic = this._diagnostic ?? new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ProfileDiagnostics()); set { {_diagnostic = value;} } } /// Internal Acessors for DiagnosticLog - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDiagnosticsLogs Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowProfilePropertiesInternal.DiagnosticLog { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IProfileDiagnosticsInternal)Diagnostic).Log; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IProfileDiagnosticsInternal)Diagnostic).Log = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDiagnosticsLogs Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowProfilePropertiesInternal.DiagnosticLog { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IProfileDiagnosticsInternal)Diagnostic).Log; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IProfileDiagnosticsInternal)Diagnostic).Log = value ?? null /* model class */; } /// Internal Acessors for DiagnosticMetric - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IMetrics Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowProfilePropertiesInternal.DiagnosticMetric { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IProfileDiagnosticsInternal)Diagnostic).Metric; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IProfileDiagnosticsInternal)Diagnostic).Metric = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IMetrics Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowProfilePropertiesInternal.DiagnosticMetric { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IProfileDiagnosticsInternal)Diagnostic).Metric; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IProfileDiagnosticsInternal)Diagnostic).Metric = value ?? null /* model class */; } /// Internal Acessors for ProvisioningState string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowProfilePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/DataflowProfileResource.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/DataflowProfileResource.cs index 79124c956150..2cd90d7d1bf9 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/DataflowProfileResource.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/DataflowProfileResource.cs @@ -28,7 +28,7 @@ public partial class DataflowProfileResource : /// The name of the extended location. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inlined)] - public string ExtendedLocationName { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Name = value ; } + public string ExtendedLocationName { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Name = value ?? null; } /// Type of ExtendedLocation. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inlined)] @@ -55,37 +55,55 @@ public partial class DataflowProfileResource : public int? MetricPrometheusPort { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowProfilePropertiesInternal)Property).MetricPrometheusPort; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowProfilePropertiesInternal)Property).MetricPrometheusPort = value ?? default(int); } /// Internal Acessors for Diagnostic - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IProfileDiagnostics Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowProfileResourceInternal.Diagnostic { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowProfilePropertiesInternal)Property).Diagnostic; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowProfilePropertiesInternal)Property).Diagnostic = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IProfileDiagnostics Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowProfileResourceInternal.Diagnostic { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowProfilePropertiesInternal)Property).Diagnostic; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowProfilePropertiesInternal)Property).Diagnostic = value ?? null /* model class */; } /// Internal Acessors for DiagnosticLog - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDiagnosticsLogs Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowProfileResourceInternal.DiagnosticLog { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowProfilePropertiesInternal)Property).DiagnosticLog; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowProfilePropertiesInternal)Property).DiagnosticLog = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDiagnosticsLogs Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowProfileResourceInternal.DiagnosticLog { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowProfilePropertiesInternal)Property).DiagnosticLog; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowProfilePropertiesInternal)Property).DiagnosticLog = value ?? null /* model class */; } /// Internal Acessors for DiagnosticMetric - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IMetrics Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowProfileResourceInternal.DiagnosticMetric { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowProfilePropertiesInternal)Property).DiagnosticMetric; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowProfilePropertiesInternal)Property).DiagnosticMetric = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IMetrics Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowProfileResourceInternal.DiagnosticMetric { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowProfilePropertiesInternal)Property).DiagnosticMetric; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowProfilePropertiesInternal)Property).DiagnosticMetric = value ?? null /* model class */; } /// Internal Acessors for ExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowProfileResourceInternal.ExtendedLocation { get => (this._extendedLocation = this._extendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ExtendedLocation()); set { {_extendedLocation = value;} } } /// Internal Acessors for ExtendedLocationType - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowProfileResourceInternal.ExtendedLocationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowProfileResourceInternal.ExtendedLocationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Type = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowProfileProperties Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowProfileResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.DataflowProfileProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowProfileResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowProfilePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowProfilePropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowProfileResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowProfilePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowProfilePropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] @@ -110,31 +128,31 @@ public partial class DataflowProfileResource : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" @@ -167,7 +185,7 @@ public partial interface IDataflowProfileResource : { /// The name of the extended location. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -178,7 +196,7 @@ public partial interface IDataflowProfileResource : string ExtendedLocationName { get; set; } /// Type of ExtendedLocation. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Runtime.Info( - Required = true, + Required = false, ReadOnly = true, Read = true, Create = true, diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/DataflowResource.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/DataflowResource.cs index a590ca1fbed7..0fdd7eb1a27f 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/DataflowResource.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/DataflowResource.cs @@ -28,7 +28,7 @@ public partial class DataflowResource : /// The name of the extended location. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inlined)] - public string ExtendedLocationName { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Name = value ; } + public string ExtendedLocationName { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Name = value ?? null; } /// Type of ExtendedLocation. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inlined)] @@ -44,25 +44,43 @@ public partial class DataflowResource : Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowResourceInternal.ExtendedLocation { get => (this._extendedLocation = this._extendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ExtendedLocation()); set { {_extendedLocation = value;} } } /// Internal Acessors for ExtendedLocationType - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowResourceInternal.ExtendedLocationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowResourceInternal.ExtendedLocationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Type = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowProperties Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.DataflowProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// Mode for Dataflow. Optional; defaults to Enabled. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inlined)] @@ -97,31 +115,31 @@ public partial class DataflowResource : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" @@ -154,7 +172,7 @@ public partial interface IDataflowResource : { /// The name of the extended location. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -165,7 +183,7 @@ public partial interface IDataflowResource : string ExtendedLocationName { get; set; } /// Type of ExtendedLocation. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Runtime.Info( - Required = true, + Required = false, ReadOnly = true, Read = true, Create = true, diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/DiskBackedMessageBuffer.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/DiskBackedMessageBuffer.cs index 5c1314eec408..058fad3d3ea9 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/DiskBackedMessageBuffer.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/DiskBackedMessageBuffer.cs @@ -125,31 +125,31 @@ public partial class DiskBackedMessageBuffer : Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IVolumeClaimSpec Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDiskBackedMessageBufferInternal.EphemeralVolumeClaimSpec { get => (this._ephemeralVolumeClaimSpec = this._ephemeralVolumeClaimSpec ?? new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.VolumeClaimSpec()); set { {_ephemeralVolumeClaimSpec = value;} } } /// Internal Acessors for EphemeralVolumeClaimSpecDataSource - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ILocalKubernetesReference Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDiskBackedMessageBufferInternal.EphemeralVolumeClaimSpecDataSource { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IVolumeClaimSpecInternal)EphemeralVolumeClaimSpec).DataSource; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IVolumeClaimSpecInternal)EphemeralVolumeClaimSpec).DataSource = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ILocalKubernetesReference Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDiskBackedMessageBufferInternal.EphemeralVolumeClaimSpecDataSource { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IVolumeClaimSpecInternal)EphemeralVolumeClaimSpec).DataSource; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IVolumeClaimSpecInternal)EphemeralVolumeClaimSpec).DataSource = value ?? null /* model class */; } /// Internal Acessors for EphemeralVolumeClaimSpecDataSourceRef - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IKubernetesReference Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDiskBackedMessageBufferInternal.EphemeralVolumeClaimSpecDataSourceRef { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IVolumeClaimSpecInternal)EphemeralVolumeClaimSpec).DataSourceRef; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IVolumeClaimSpecInternal)EphemeralVolumeClaimSpec).DataSourceRef = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IKubernetesReference Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDiskBackedMessageBufferInternal.EphemeralVolumeClaimSpecDataSourceRef { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IVolumeClaimSpecInternal)EphemeralVolumeClaimSpec).DataSourceRef; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IVolumeClaimSpecInternal)EphemeralVolumeClaimSpec).DataSourceRef = value ?? null /* model class */; } /// Internal Acessors for EphemeralVolumeClaimSpecResource - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IVolumeClaimResourceRequirements Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDiskBackedMessageBufferInternal.EphemeralVolumeClaimSpecResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IVolumeClaimSpecInternal)EphemeralVolumeClaimSpec).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IVolumeClaimSpecInternal)EphemeralVolumeClaimSpec).Resource = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IVolumeClaimResourceRequirements Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDiskBackedMessageBufferInternal.EphemeralVolumeClaimSpecResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IVolumeClaimSpecInternal)EphemeralVolumeClaimSpec).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IVolumeClaimSpecInternal)EphemeralVolumeClaimSpec).Resource = value ?? null /* model class */; } /// Internal Acessors for EphemeralVolumeClaimSpecSelector - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IVolumeClaimSpecSelector Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDiskBackedMessageBufferInternal.EphemeralVolumeClaimSpecSelector { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IVolumeClaimSpecInternal)EphemeralVolumeClaimSpec).Selector; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IVolumeClaimSpecInternal)EphemeralVolumeClaimSpec).Selector = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IVolumeClaimSpecSelector Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDiskBackedMessageBufferInternal.EphemeralVolumeClaimSpecSelector { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IVolumeClaimSpecInternal)EphemeralVolumeClaimSpec).Selector; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IVolumeClaimSpecInternal)EphemeralVolumeClaimSpec).Selector = value ?? null /* model class */; } /// Internal Acessors for PersistentVolumeClaimSpec Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IVolumeClaimSpec Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDiskBackedMessageBufferInternal.PersistentVolumeClaimSpec { get => (this._persistentVolumeClaimSpec = this._persistentVolumeClaimSpec ?? new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.VolumeClaimSpec()); set { {_persistentVolumeClaimSpec = value;} } } /// Internal Acessors for PersistentVolumeClaimSpecDataSource - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ILocalKubernetesReference Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDiskBackedMessageBufferInternal.PersistentVolumeClaimSpecDataSource { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IVolumeClaimSpecInternal)PersistentVolumeClaimSpec).DataSource; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IVolumeClaimSpecInternal)PersistentVolumeClaimSpec).DataSource = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ILocalKubernetesReference Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDiskBackedMessageBufferInternal.PersistentVolumeClaimSpecDataSource { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IVolumeClaimSpecInternal)PersistentVolumeClaimSpec).DataSource; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IVolumeClaimSpecInternal)PersistentVolumeClaimSpec).DataSource = value ?? null /* model class */; } /// Internal Acessors for PersistentVolumeClaimSpecDataSourceRef - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IKubernetesReference Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDiskBackedMessageBufferInternal.PersistentVolumeClaimSpecDataSourceRef { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IVolumeClaimSpecInternal)PersistentVolumeClaimSpec).DataSourceRef; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IVolumeClaimSpecInternal)PersistentVolumeClaimSpec).DataSourceRef = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IKubernetesReference Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDiskBackedMessageBufferInternal.PersistentVolumeClaimSpecDataSourceRef { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IVolumeClaimSpecInternal)PersistentVolumeClaimSpec).DataSourceRef; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IVolumeClaimSpecInternal)PersistentVolumeClaimSpec).DataSourceRef = value ?? null /* model class */; } /// Internal Acessors for PersistentVolumeClaimSpecResource - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IVolumeClaimResourceRequirements Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDiskBackedMessageBufferInternal.PersistentVolumeClaimSpecResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IVolumeClaimSpecInternal)PersistentVolumeClaimSpec).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IVolumeClaimSpecInternal)PersistentVolumeClaimSpec).Resource = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IVolumeClaimResourceRequirements Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDiskBackedMessageBufferInternal.PersistentVolumeClaimSpecResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IVolumeClaimSpecInternal)PersistentVolumeClaimSpec).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IVolumeClaimSpecInternal)PersistentVolumeClaimSpec).Resource = value ?? null /* model class */; } /// Internal Acessors for PersistentVolumeClaimSpecSelector - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IVolumeClaimSpecSelector Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDiskBackedMessageBufferInternal.PersistentVolumeClaimSpecSelector { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IVolumeClaimSpecInternal)PersistentVolumeClaimSpec).Selector; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IVolumeClaimSpecInternal)PersistentVolumeClaimSpec).Selector = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IVolumeClaimSpecSelector Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDiskBackedMessageBufferInternal.PersistentVolumeClaimSpecSelector { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IVolumeClaimSpecInternal)PersistentVolumeClaimSpec).Selector; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IVolumeClaimSpecInternal)PersistentVolumeClaimSpec).Selector = value ?? null /* model class */; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IVolumeClaimSpec _persistentVolumeClaimSpec; diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/ErrorResponse.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/ErrorResponse.cs index 3ff95039365f..078a82cecea0 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/ErrorResponse.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/ErrorResponse.cs @@ -40,22 +40,22 @@ public partial class ErrorResponse : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IErrorDetailInternal)Error).Message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IErrorDetailInternal)Error).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IErrorDetailInternal)Error).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IErrorDetailInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IErrorDetailInternal)Error).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IErrorDetailInternal)Error).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IErrorDetailInternal)Error).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for Error Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ErrorDetail()); set { {_error = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IErrorDetailInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IErrorDetailInternal)Error).Message = value ?? null; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IErrorDetailInternal)Error).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IErrorDetailInternal)Error).Target = value ?? null; } /// The error target. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inlined)] diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/InstancePatchModel.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/InstancePatchModel.cs index ef405b26b391..a536533edf32 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/InstancePatchModel.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/InstancePatchModel.cs @@ -50,10 +50,10 @@ public partial class InstancePatchModel : Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IManagedServiceIdentity Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IInstancePatchModelInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ManagedServiceIdentity()); set { {_identity = value;} } } /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IInstancePatchModelInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IManagedServiceIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IManagedServiceIdentityInternal)Identity).PrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IInstancePatchModelInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IManagedServiceIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IManagedServiceIdentityInternal)Identity).PrincipalId = value ?? null; } /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IInstancePatchModelInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IManagedServiceIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IManagedServiceIdentityInternal)Identity).TenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IInstancePatchModelInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IManagedServiceIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IManagedServiceIdentityInternal)Identity).TenantId = value ?? null; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IInstancePatchModelTags _tag; diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/InstanceResource.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/InstanceResource.cs index bcac6aa9c9cc..8cc4fa4a6b3f 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/InstanceResource.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/InstanceResource.cs @@ -32,7 +32,7 @@ public partial class InstanceResource : /// The name of the extended location. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inlined)] - public string ExtendedLocationName { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Name = value ; } + public string ExtendedLocationName { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Name = value ?? null; } /// Type of ExtendedLocation. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inlined)] @@ -79,46 +79,64 @@ public partial class InstanceResource : /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ITrackedResourceInternal)__trackedResource).Location = value ; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } /// Internal Acessors for ExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IInstanceResourceInternal.ExtendedLocation { get => (this._extendedLocation = this._extendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ExtendedLocation()); set { {_extendedLocation = value;} } } /// Internal Acessors for ExtendedLocationType - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IInstanceResourceInternal.ExtendedLocationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IInstanceResourceInternal.ExtendedLocationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IExtendedLocationInternal)ExtendedLocation).Type = value ?? null; } /// Internal Acessors for Identity Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IManagedServiceIdentity Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IInstanceResourceInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ManagedServiceIdentity()); set { {_identity = value;} } } /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IInstanceResourceInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IManagedServiceIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IManagedServiceIdentityInternal)Identity).PrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IInstanceResourceInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IManagedServiceIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IManagedServiceIdentityInternal)Identity).PrincipalId = value ?? null; } /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IInstanceResourceInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IManagedServiceIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IManagedServiceIdentityInternal)Identity).TenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IInstanceResourceInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IManagedServiceIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IManagedServiceIdentityInternal)Identity).TenantId = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IInstanceProperties Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IInstanceResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.InstanceProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IInstanceResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IInstancePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IInstancePropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IInstanceResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IInstancePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IInstancePropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for SchemaRegistryRef - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISchemaRegistryRef Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IInstanceResourceInternal.SchemaRegistryRef { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IInstancePropertiesInternal)Property).SchemaRegistryRef; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IInstancePropertiesInternal)Property).SchemaRegistryRef = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISchemaRegistryRef Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IInstanceResourceInternal.SchemaRegistryRef { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IInstancePropertiesInternal)Property).SchemaRegistryRef; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IInstancePropertiesInternal)Property).SchemaRegistryRef = value ?? null /* model class */; } /// Internal Acessors for Version - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IInstanceResourceInternal.Version { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IInstancePropertiesInternal)Property).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IInstancePropertiesInternal)Property).Version = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IInstanceResourceInternal.Version { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IInstancePropertiesInternal)Property).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IInstancePropertiesInternal)Property).Version = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] @@ -147,31 +165,31 @@ public partial class InstanceResource : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__trackedResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] @@ -223,7 +241,7 @@ public partial interface IInstanceResource : string Description { get; set; } /// The name of the extended location. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -234,7 +252,7 @@ public partial interface IInstanceResource : string ExtendedLocationName { get; set; } /// Type of ExtendedLocation. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Runtime.Info( - Required = true, + Required = false, ReadOnly = true, Read = true, Create = true, diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/ListenerPort.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/ListenerPort.cs index 85eea71c2b0d..59cfef8f533f 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/ListenerPort.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/ListenerPort.cs @@ -68,22 +68,22 @@ public partial class ListenerPort : public string ManualSecretRef { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ITlsCertMethodInternal)Tl).ManualSecretRef; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ITlsCertMethodInternal)Tl).ManualSecretRef = value ?? null; } /// Internal Acessors for CertManagerCertificateSpecIssuerRef - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ICertManagerIssuerRef Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IListenerPortInternal.CertManagerCertificateSpecIssuerRef { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ITlsCertMethodInternal)Tl).CertManagerCertificateSpecIssuerRef; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ITlsCertMethodInternal)Tl).CertManagerCertificateSpecIssuerRef = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ICertManagerIssuerRef Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IListenerPortInternal.CertManagerCertificateSpecIssuerRef { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ITlsCertMethodInternal)Tl).CertManagerCertificateSpecIssuerRef; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ITlsCertMethodInternal)Tl).CertManagerCertificateSpecIssuerRef = value ?? null /* model class */; } /// Internal Acessors for CertManagerCertificateSpecPrivateKey - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ICertManagerPrivateKey Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IListenerPortInternal.CertManagerCertificateSpecPrivateKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ITlsCertMethodInternal)Tl).CertManagerCertificateSpecPrivateKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ITlsCertMethodInternal)Tl).CertManagerCertificateSpecPrivateKey = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ICertManagerPrivateKey Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IListenerPortInternal.CertManagerCertificateSpecPrivateKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ITlsCertMethodInternal)Tl).CertManagerCertificateSpecPrivateKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ITlsCertMethodInternal)Tl).CertManagerCertificateSpecPrivateKey = value ?? null /* model class */; } /// Internal Acessors for CertManagerCertificateSpecSan - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISanForCert Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IListenerPortInternal.CertManagerCertificateSpecSan { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ITlsCertMethodInternal)Tl).CertManagerCertificateSpecSan; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ITlsCertMethodInternal)Tl).CertManagerCertificateSpecSan = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISanForCert Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IListenerPortInternal.CertManagerCertificateSpecSan { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ITlsCertMethodInternal)Tl).CertManagerCertificateSpecSan; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ITlsCertMethodInternal)Tl).CertManagerCertificateSpecSan = value ?? null /* model class */; } /// Internal Acessors for Tl Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ITlsCertMethod Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IListenerPortInternal.Tl { get => (this._tl = this._tl ?? new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.TlsCertMethod()); set { {_tl = value;} } } /// Internal Acessors for TlCertManagerCertificateSpec - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ICertManagerCertificateSpec Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IListenerPortInternal.TlCertManagerCertificateSpec { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ITlsCertMethodInternal)Tl).CertManagerCertificateSpec; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ITlsCertMethodInternal)Tl).CertManagerCertificateSpec = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ICertManagerCertificateSpec Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IListenerPortInternal.TlCertManagerCertificateSpec { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ITlsCertMethodInternal)Tl).CertManagerCertificateSpec; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ITlsCertMethodInternal)Tl).CertManagerCertificateSpec = value ?? null /* model class */; } /// Internal Acessors for TlManual - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IX509ManualCertificate Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IListenerPortInternal.TlManual { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ITlsCertMethodInternal)Tl).Manual; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ITlsCertMethodInternal)Tl).Manual = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IX509ManualCertificate Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IListenerPortInternal.TlManual { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ITlsCertMethodInternal)Tl).Manual; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ITlsCertMethodInternal)Tl).Manual = value ?? null /* model class */; } /// Backing field for property. private int? _nodePort; diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/Operation.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/Operation.cs index e2f1514faa45..8ea7e02436e3 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/Operation.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/Operation.cs @@ -73,16 +73,16 @@ public partial class Operation : Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IOperationDisplay Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IOperationInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.OperationDisplay()); set { {_display = value;} } } /// Internal Acessors for DisplayDescription - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IOperationDisplayInternal)Display).Description = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IOperationDisplayInternal)Display).Description = value ?? null; } /// Internal Acessors for DisplayOperation - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IOperationDisplayInternal)Display).Operation = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IOperationDisplayInternal)Display).Operation = value ?? null; } /// Internal Acessors for DisplayProvider - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IOperationDisplayInternal)Display).Provider = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IOperationDisplayInternal)Display).Provider = value ?? null; } /// Internal Acessors for DisplayResource - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IOperationDisplayInternal)Display).Resource = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IOperationDisplayInternal)Display).Resource = value ?? null; } /// Internal Acessors for IsDataAction bool? Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IOperationInternal.IsDataAction { get => this._isDataAction; set { {_isDataAction = value;} } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/ProxyResource.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/ProxyResource.cs index 7f8f1a41b0b0..06c460ffea07 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/ProxyResource.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/ProxyResource.cs @@ -28,16 +28,34 @@ public partial class ProxyResource : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).Id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] @@ -47,31 +65,31 @@ public partial class ProxyResource : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/Resource.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/Resource.cs index dedeb106f9ed..e08e4aa8480d 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/Resource.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/Resource.cs @@ -33,6 +33,24 @@ public partial class Resource : /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Type { get => this._type; set { {_type = value;} } } @@ -54,27 +72,27 @@ public partial class Resource : /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// Backing field for property. private string _type; diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/TlsCertMethod.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/TlsCertMethod.cs index 63a33a1c6dd0..fccdead50955 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/TlsCertMethod.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/TlsCertMethod.cs @@ -73,13 +73,13 @@ public partial class TlsCertMethod : Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ICertManagerCertificateSpec Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ITlsCertMethodInternal.CertManagerCertificateSpec { get => (this._certManagerCertificateSpec = this._certManagerCertificateSpec ?? new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.CertManagerCertificateSpec()); set { {_certManagerCertificateSpec = value;} } } /// Internal Acessors for CertManagerCertificateSpecIssuerRef - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ICertManagerIssuerRef Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ITlsCertMethodInternal.CertManagerCertificateSpecIssuerRef { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ICertManagerCertificateSpecInternal)CertManagerCertificateSpec).IssuerRef; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ICertManagerCertificateSpecInternal)CertManagerCertificateSpec).IssuerRef = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ICertManagerIssuerRef Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ITlsCertMethodInternal.CertManagerCertificateSpecIssuerRef { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ICertManagerCertificateSpecInternal)CertManagerCertificateSpec).IssuerRef; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ICertManagerCertificateSpecInternal)CertManagerCertificateSpec).IssuerRef = value ?? null /* model class */; } /// Internal Acessors for CertManagerCertificateSpecPrivateKey - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ICertManagerPrivateKey Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ITlsCertMethodInternal.CertManagerCertificateSpecPrivateKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ICertManagerCertificateSpecInternal)CertManagerCertificateSpec).PrivateKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ICertManagerCertificateSpecInternal)CertManagerCertificateSpec).PrivateKey = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ICertManagerPrivateKey Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ITlsCertMethodInternal.CertManagerCertificateSpecPrivateKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ICertManagerCertificateSpecInternal)CertManagerCertificateSpec).PrivateKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ICertManagerCertificateSpecInternal)CertManagerCertificateSpec).PrivateKey = value ?? null /* model class */; } /// Internal Acessors for CertManagerCertificateSpecSan - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISanForCert Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ITlsCertMethodInternal.CertManagerCertificateSpecSan { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ICertManagerCertificateSpecInternal)CertManagerCertificateSpec).San; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ICertManagerCertificateSpecInternal)CertManagerCertificateSpec).San = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISanForCert Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ITlsCertMethodInternal.CertManagerCertificateSpecSan { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ICertManagerCertificateSpecInternal)CertManagerCertificateSpec).San; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ICertManagerCertificateSpecInternal)CertManagerCertificateSpec).San = value ?? null /* model class */; } /// Internal Acessors for Manual Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IX509ManualCertificate Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ITlsCertMethodInternal.Manual { get => (this._manual = this._manual ?? new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.X509ManualCertificate()); set { {_manual = value;} } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/TrackedResource.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/TrackedResource.cs index 0e898334e6e7..499921a9bb4c 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/TrackedResource.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/api/Models/TrackedResource.cs @@ -35,16 +35,34 @@ public partial class TrackedResource : public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] @@ -54,31 +72,31 @@ public partial class TrackedResource : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Origin(Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.ITrackedResourceTags _tag; @@ -118,7 +136,7 @@ public partial interface ITrackedResource : { /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceBrokerAuthentication_CreateExpanded.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceBrokerAuthentication_CreateExpanded.cs index c39d3c5918fe..56ea200c35e0 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceBrokerAuthentication_CreateExpanded.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceBrokerAuthentication_CreateExpanded.cs @@ -40,18 +40,9 @@ public partial class NewAzIoTOperationsServiceBrokerAuthentication_CreateExpande /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Instance broker authentication resource private Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthenticationResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.BrokerAuthenticationResource(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -307,11 +298,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.NewAzIoTO /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -627,24 +613,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthenticationResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceBrokerAuthentication_CreateViaJsonFilePath.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceBrokerAuthentication_CreateViaJsonFilePath.cs index de1f3cc43b27..1f7e9b6ee081 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceBrokerAuthentication_CreateViaJsonFilePath.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceBrokerAuthentication_CreateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class NewAzIoTOperationsServiceBrokerAuthentication_CreateViaJson /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -294,11 +285,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.NewAzIoTO /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -615,24 +601,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthenticationResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceBrokerAuthentication_CreateViaJsonString.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceBrokerAuthentication_CreateViaJsonString.cs index e7c13a6e4b3f..7fd067c9ab92 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceBrokerAuthentication_CreateViaJsonString.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceBrokerAuthentication_CreateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class NewAzIoTOperationsServiceBrokerAuthentication_CreateViaJson /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -292,11 +283,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.NewAzIoTO /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -613,24 +599,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthenticationResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceBrokerAuthorization_CreateExpanded.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceBrokerAuthorization_CreateExpanded.cs index b46818e862e4..39643779ebc3 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceBrokerAuthorization_CreateExpanded.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceBrokerAuthorization_CreateExpanded.cs @@ -40,18 +40,9 @@ public partial class NewAzIoTOperationsServiceBrokerAuthorization_CreateExpanded /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Instance broker authorizations resource private Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthorizationResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.BrokerAuthorizationResource(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -318,11 +309,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.NewAzIoTO /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -638,24 +624,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthorizationResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceBrokerAuthorization_CreateViaJsonFilePath.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceBrokerAuthorization_CreateViaJsonFilePath.cs index c80788171c37..3f6b4dbe5b1a 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceBrokerAuthorization_CreateViaJsonFilePath.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceBrokerAuthorization_CreateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class NewAzIoTOperationsServiceBrokerAuthorization_CreateViaJsonF /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -294,11 +285,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.NewAzIoTO /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -615,24 +601,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthorizationResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceBrokerAuthorization_CreateViaJsonString.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceBrokerAuthorization_CreateViaJsonString.cs index f93281d5253f..1a3bc2899d2c 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceBrokerAuthorization_CreateViaJsonString.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceBrokerAuthorization_CreateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class NewAzIoTOperationsServiceBrokerAuthorization_CreateViaJsonS /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -292,11 +283,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.NewAzIoTO /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -613,24 +599,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthorizationResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceBrokerListener_CreateExpanded.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceBrokerListener_CreateExpanded.cs index dd51533c347e..f3640e710295 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceBrokerListener_CreateExpanded.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceBrokerListener_CreateExpanded.cs @@ -40,18 +40,9 @@ public partial class NewAzIoTOperationsServiceBrokerListener_CreateExpanded : gl /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Instance broker resource private Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerListenerResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.BrokerListenerResource(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -325,11 +316,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.NewAzIoTO /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -645,24 +631,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerListenerResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceBrokerListener_CreateViaJsonFilePath.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceBrokerListener_CreateViaJsonFilePath.cs index 4ba2aa54f026..4647e24458aa 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceBrokerListener_CreateViaJsonFilePath.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceBrokerListener_CreateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class NewAzIoTOperationsServiceBrokerListener_CreateViaJsonFilePa /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -294,11 +285,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.NewAzIoTO /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -615,24 +601,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerListenerResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceBrokerListener_CreateViaJsonString.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceBrokerListener_CreateViaJsonString.cs index 74aba692e0f2..fe0de14ec2ac 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceBrokerListener_CreateViaJsonString.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceBrokerListener_CreateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class NewAzIoTOperationsServiceBrokerListener_CreateViaJsonString /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -292,11 +283,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.NewAzIoTO /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -612,24 +598,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerListenerResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceBroker_CreateExpanded.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceBroker_CreateExpanded.cs index 051a68356ee0..8fd5b967743e 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceBroker_CreateExpanded.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceBroker_CreateExpanded.cs @@ -40,18 +40,9 @@ public partial class NewAzIoTOperationsServiceBroker_CreateExpanded : global::Sy /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Instance broker resource private Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.BrokerResource(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// The setting to enable or disable encryption of internal Traffic. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The setting to enable or disable encryption of internal Traffic.")] [global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Body)] @@ -621,11 +612,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.NewAzIoTO /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -941,24 +927,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceBroker_CreateViaJsonFilePath.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceBroker_CreateViaJsonFilePath.cs index ac988f68228a..c3ebb13b093b 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceBroker_CreateViaJsonFilePath.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceBroker_CreateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class NewAzIoTOperationsServiceBroker_CreateViaJsonFilePath : glo /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -278,11 +269,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.NewAzIoTO /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -598,24 +584,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceBroker_CreateViaJsonString.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceBroker_CreateViaJsonString.cs index 8a03e6380b31..c9404ba040a8 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceBroker_CreateViaJsonString.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceBroker_CreateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class NewAzIoTOperationsServiceBroker_CreateViaJsonString : globa /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -276,11 +267,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.NewAzIoTO /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -596,24 +582,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceDataflowEndpoint_CreateExpanded.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceDataflowEndpoint_CreateExpanded.cs index 335ac5ec6168..1c5440dd21b3 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceDataflowEndpoint_CreateExpanded.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceDataflowEndpoint_CreateExpanded.cs @@ -40,18 +40,9 @@ public partial class NewAzIoTOperationsServiceDataflowEndpoint_CreateExpanded : /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Instance dataflowEndpoint resource private Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.DataflowEndpointResource(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Token secret name. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Token secret name.")] [global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Body)] @@ -662,11 +653,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.NewAzIoTO /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -982,24 +968,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceDataflowEndpoint_CreateViaJsonFilePath.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceDataflowEndpoint_CreateViaJsonFilePath.cs index 085802baa0c9..97235dd1bc41 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceDataflowEndpoint_CreateViaJsonFilePath.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceDataflowEndpoint_CreateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class NewAzIoTOperationsServiceDataflowEndpoint_CreateViaJsonFile /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -280,11 +271,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.NewAzIoTO /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -601,24 +587,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceDataflowEndpoint_CreateViaJsonString.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceDataflowEndpoint_CreateViaJsonString.cs index 5aab12c52401..80fda138d452 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceDataflowEndpoint_CreateViaJsonString.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceDataflowEndpoint_CreateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class NewAzIoTOperationsServiceDataflowEndpoint_CreateViaJsonStri /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -278,11 +269,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.NewAzIoTO /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -599,24 +585,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceDataflowProfile_CreateExpanded.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceDataflowProfile_CreateExpanded.cs index 2ad38311f17c..7e9117347575 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceDataflowProfile_CreateExpanded.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceDataflowProfile_CreateExpanded.cs @@ -40,18 +40,9 @@ public partial class NewAzIoTOperationsServiceDataflowProfile_CreateExpanded : g /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Instance dataflowProfile resource private Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowProfileResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.DataflowProfileResource(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -311,11 +302,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.NewAzIoTO /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -631,24 +617,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowProfileResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceDataflowProfile_CreateViaJsonFilePath.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceDataflowProfile_CreateViaJsonFilePath.cs index a2229b8c06ac..7bbe129abc99 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceDataflowProfile_CreateViaJsonFilePath.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceDataflowProfile_CreateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class NewAzIoTOperationsServiceDataflowProfile_CreateViaJsonFileP /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -280,11 +271,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.NewAzIoTO /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -601,24 +587,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowProfileResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceDataflowProfile_CreateViaJsonString.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceDataflowProfile_CreateViaJsonString.cs index 2db9889657df..f38f591ed3bc 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceDataflowProfile_CreateViaJsonString.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceDataflowProfile_CreateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class NewAzIoTOperationsServiceDataflowProfile_CreateViaJsonStrin /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -278,11 +269,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.NewAzIoTO /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -598,24 +584,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowProfileResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceDataflow_CreateExpanded.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceDataflow_CreateExpanded.cs index caf9ab3837c7..80b535cddc34 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceDataflow_CreateExpanded.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceDataflow_CreateExpanded.cs @@ -40,18 +40,9 @@ public partial class NewAzIoTOperationsServiceDataflow_CreateExpanded : global:: /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Instance dataflowProfile dataflow resource private Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.DataflowResource(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -318,11 +309,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.NewAzIoTO /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -638,24 +624,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceDataflow_CreateViaJsonFilePath.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceDataflow_CreateViaJsonFilePath.cs index 30291b88d5e3..e344b9166e8c 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceDataflow_CreateViaJsonFilePath.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceDataflow_CreateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class NewAzIoTOperationsServiceDataflow_CreateViaJsonFilePath : g /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -294,11 +285,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.NewAzIoTO /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -614,24 +600,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceDataflow_CreateViaJsonString.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceDataflow_CreateViaJsonString.cs index 398823d6bcd2..80bfaee1e335 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceDataflow_CreateViaJsonString.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceDataflow_CreateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class NewAzIoTOperationsServiceDataflow_CreateViaJsonString : glo /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -292,11 +283,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.NewAzIoTO /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -612,24 +598,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceInstance_CreateExpanded.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceInstance_CreateExpanded.cs index bfd8c796bee5..76be3aa87db8 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceInstance_CreateExpanded.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceInstance_CreateExpanded.cs @@ -40,18 +40,9 @@ public partial class NewAzIoTOperationsServiceInstance_CreateExpanded : global:: /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// A Instance resource is a logical container for a set of child resources. private Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IInstanceResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.InstanceResource(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -318,11 +309,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.NewAzIoTO /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -664,24 +650,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IInstanceResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceInstance_CreateViaJsonFilePath.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceInstance_CreateViaJsonFilePath.cs index 8ecef798284e..25a9f599ed26 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceInstance_CreateViaJsonFilePath.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceInstance_CreateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class NewAzIoTOperationsServiceInstance_CreateViaJsonFilePath : g /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.NewAzIoTO /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -583,24 +569,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IInstanceResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceInstance_CreateViaJsonString.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceInstance_CreateViaJsonString.cs index 7aa84f89b7cb..d00f691e124a 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceInstance_CreateViaJsonString.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/NewAzIoTOperationsServiceInstance_CreateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class NewAzIoTOperationsServiceInstance_CreateViaJsonString : glo /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.NewAzIoTO /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -581,24 +567,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IInstanceResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBrokerAuthentication_Delete.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBrokerAuthentication_Delete.cs index 158dc5e83921..eec3a58e1862 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBrokerAuthentication_Delete.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBrokerAuthentication_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzIoTOperationsServiceBrokerAuthentication_Delete : g /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -290,11 +281,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.RemoveAzI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -606,7 +592,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -630,7 +616,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBrokerAuthentication_DeleteViaIdentity.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBrokerAuthentication_DeleteViaIdentity.cs index 5d86329f6193..ad295c82ad1c 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBrokerAuthentication_DeleteViaIdentity.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBrokerAuthentication_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzIoTOperationsServiceBrokerAuthentication_DeleteViaI /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -220,11 +211,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.RemoveAzI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -565,7 +551,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -589,7 +575,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBrokerAuthentication_DeleteViaIdentityBroker.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBrokerAuthentication_DeleteViaIdentityBroker.cs index a909929a0d24..6252d7872f14 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBrokerAuthentication_DeleteViaIdentityBroker.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBrokerAuthentication_DeleteViaIdentityBroker.cs @@ -40,15 +40,6 @@ public partial class RemoveAzIoTOperationsServiceBrokerAuthentication_DeleteViaI /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -235,11 +226,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.RemoveAzI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -577,7 +563,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -601,7 +587,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBrokerAuthentication_DeleteViaIdentityInstance.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBrokerAuthentication_DeleteViaIdentityInstance.cs index 0fae1641fdd5..873672399115 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBrokerAuthentication_DeleteViaIdentityInstance.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBrokerAuthentication_DeleteViaIdentityInstance.cs @@ -40,15 +40,6 @@ public partial class RemoveAzIoTOperationsServiceBrokerAuthentication_DeleteViaI /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -250,11 +241,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.RemoveAzI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -588,7 +574,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -612,7 +598,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBrokerAuthorization_Delete.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBrokerAuthorization_Delete.cs index a4bbecf85815..75662f82d3d9 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBrokerAuthorization_Delete.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBrokerAuthorization_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzIoTOperationsServiceBrokerAuthorization_Delete : gl /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -290,11 +281,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.RemoveAzI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -606,7 +592,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -630,7 +616,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBrokerAuthorization_DeleteViaIdentity.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBrokerAuthorization_DeleteViaIdentity.cs index 5608515fa467..c6e8f82808c2 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBrokerAuthorization_DeleteViaIdentity.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBrokerAuthorization_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzIoTOperationsServiceBrokerAuthorization_DeleteViaId /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -220,11 +211,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.RemoveAzI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -565,7 +551,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -589,7 +575,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBrokerAuthorization_DeleteViaIdentityBroker.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBrokerAuthorization_DeleteViaIdentityBroker.cs index 6a3ea2810cda..974a9d145034 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBrokerAuthorization_DeleteViaIdentityBroker.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBrokerAuthorization_DeleteViaIdentityBroker.cs @@ -40,15 +40,6 @@ public partial class RemoveAzIoTOperationsServiceBrokerAuthorization_DeleteViaId /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -235,11 +226,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.RemoveAzI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -577,7 +563,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -601,7 +587,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBrokerAuthorization_DeleteViaIdentityInstance.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBrokerAuthorization_DeleteViaIdentityInstance.cs index a7b9d92345aa..6bc1db9a5b7a 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBrokerAuthorization_DeleteViaIdentityInstance.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBrokerAuthorization_DeleteViaIdentityInstance.cs @@ -40,15 +40,6 @@ public partial class RemoveAzIoTOperationsServiceBrokerAuthorization_DeleteViaId /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -250,11 +241,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.RemoveAzI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -588,7 +574,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -612,7 +598,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBrokerListener_Delete.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBrokerListener_Delete.cs index 8a15405edaa4..839aa14a23d0 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBrokerListener_Delete.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBrokerListener_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzIoTOperationsServiceBrokerListener_Delete : global: /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -290,11 +281,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.RemoveAzI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -606,7 +592,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -630,7 +616,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBrokerListener_DeleteViaIdentity.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBrokerListener_DeleteViaIdentity.cs index 7c282186174e..acbd8ef3a2ff 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBrokerListener_DeleteViaIdentity.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBrokerListener_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzIoTOperationsServiceBrokerListener_DeleteViaIdentit /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -220,11 +211,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.RemoveAzI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -564,7 +550,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -588,7 +574,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBrokerListener_DeleteViaIdentityBroker.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBrokerListener_DeleteViaIdentityBroker.cs index e970b7c1512f..89cf5dca0fb0 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBrokerListener_DeleteViaIdentityBroker.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBrokerListener_DeleteViaIdentityBroker.cs @@ -40,15 +40,6 @@ public partial class RemoveAzIoTOperationsServiceBrokerListener_DeleteViaIdentit /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -235,11 +226,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.RemoveAzI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -577,7 +563,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -601,7 +587,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBrokerListener_DeleteViaIdentityInstance.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBrokerListener_DeleteViaIdentityInstance.cs index 0219a9aa1911..1d980bd409b4 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBrokerListener_DeleteViaIdentityInstance.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBrokerListener_DeleteViaIdentityInstance.cs @@ -40,15 +40,6 @@ public partial class RemoveAzIoTOperationsServiceBrokerListener_DeleteViaIdentit /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -250,11 +241,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.RemoveAzI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -588,7 +574,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -612,7 +598,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBroker_Delete.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBroker_Delete.cs index 6ba14f84e4fc..13be5fef0cb6 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBroker_Delete.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBroker_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzIoTOperationsServiceBroker_Delete : global::System. /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -276,11 +267,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.RemoveAzI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -592,7 +578,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -616,7 +602,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBroker_DeleteViaIdentity.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBroker_DeleteViaIdentity.cs index e4a565ccbc94..4306ee33f31d 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBroker_DeleteViaIdentity.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBroker_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzIoTOperationsServiceBroker_DeleteViaIdentity : glob /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.RemoveAzI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -558,7 +544,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -582,7 +568,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBroker_DeleteViaIdentityInstance.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBroker_DeleteViaIdentityInstance.cs index 2115b278b90c..5d7ea03415d6 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBroker_DeleteViaIdentityInstance.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceBroker_DeleteViaIdentityInstance.cs @@ -40,15 +40,6 @@ public partial class RemoveAzIoTOperationsServiceBroker_DeleteViaIdentityInstanc /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -236,11 +227,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.RemoveAzI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -573,7 +559,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -597,7 +583,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceDataflowEndpoint_Delete.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceDataflowEndpoint_Delete.cs index e3396c74c1c1..d46297093d05 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceDataflowEndpoint_Delete.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceDataflowEndpoint_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzIoTOperationsServiceDataflowEndpoint_Delete : globa /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -276,11 +267,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.RemoveAzI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -592,7 +578,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -616,7 +602,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceDataflowEndpoint_DeleteViaIdentity.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceDataflowEndpoint_DeleteViaIdentity.cs index 57a0dfc30ec2..80b0441ffd93 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceDataflowEndpoint_DeleteViaIdentity.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceDataflowEndpoint_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzIoTOperationsServiceDataflowEndpoint_DeleteViaIdent /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -220,11 +211,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.RemoveAzI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -561,7 +547,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -585,7 +571,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceDataflowEndpoint_DeleteViaIdentityInstance.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceDataflowEndpoint_DeleteViaIdentityInstance.cs index 68680c9ed869..dd60555639c9 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceDataflowEndpoint_DeleteViaIdentityInstance.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceDataflowEndpoint_DeleteViaIdentityInstance.cs @@ -40,15 +40,6 @@ public partial class RemoveAzIoTOperationsServiceDataflowEndpoint_DeleteViaIdent /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -236,11 +227,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.RemoveAzI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -574,7 +560,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -598,7 +584,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceDataflowProfile_Delete.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceDataflowProfile_Delete.cs index eb2efbaf0824..329d21a69517 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceDataflowProfile_Delete.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceDataflowProfile_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzIoTOperationsServiceDataflowProfile_Delete : global /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -276,11 +267,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.RemoveAzI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -592,7 +578,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -616,7 +602,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceDataflowProfile_DeleteViaIdentity.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceDataflowProfile_DeleteViaIdentity.cs index 61703271963d..6788857df6f4 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceDataflowProfile_DeleteViaIdentity.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceDataflowProfile_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzIoTOperationsServiceDataflowProfile_DeleteViaIdenti /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -220,11 +211,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.RemoveAzI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -561,7 +547,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -585,7 +571,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceDataflowProfile_DeleteViaIdentityInstance.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceDataflowProfile_DeleteViaIdentityInstance.cs index e1e0db180a48..dfdd197ff44c 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceDataflowProfile_DeleteViaIdentityInstance.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceDataflowProfile_DeleteViaIdentityInstance.cs @@ -40,15 +40,6 @@ public partial class RemoveAzIoTOperationsServiceDataflowProfile_DeleteViaIdenti /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -236,11 +227,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.RemoveAzI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -574,7 +560,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -598,7 +584,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceDataflow_Delete.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceDataflow_Delete.cs index 6718b4bcdb01..6ab7d89c0d6d 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceDataflow_Delete.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceDataflow_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzIoTOperationsServiceDataflow_Delete : global::Syste /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -292,11 +283,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.RemoveAzI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -608,7 +594,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -632,7 +618,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceDataflow_DeleteViaIdentity.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceDataflow_DeleteViaIdentity.cs index 06157ca4a489..f7239e314a0b 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceDataflow_DeleteViaIdentity.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceDataflow_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzIoTOperationsServiceDataflow_DeleteViaIdentity : gl /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.RemoveAzI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -562,7 +548,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -586,7 +572,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceDataflow_DeleteViaIdentityDataflowProfile.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceDataflow_DeleteViaIdentityDataflowProfile.cs index e26b03cb57f4..1afc39ca1e37 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceDataflow_DeleteViaIdentityDataflowProfile.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceDataflow_DeleteViaIdentityDataflowProfile.cs @@ -40,15 +40,6 @@ public partial class RemoveAzIoTOperationsServiceDataflow_DeleteViaIdentityDataf /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -236,11 +227,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.RemoveAzI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -578,7 +564,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -602,7 +588,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceDataflow_DeleteViaIdentityInstance.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceDataflow_DeleteViaIdentityInstance.cs index aac521406681..07b43fbacdd0 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceDataflow_DeleteViaIdentityInstance.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceDataflow_DeleteViaIdentityInstance.cs @@ -40,15 +40,6 @@ public partial class RemoveAzIoTOperationsServiceDataflow_DeleteViaIdentityInsta /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -252,11 +243,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.RemoveAzI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -590,7 +576,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -614,7 +600,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceInstance_Delete.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceInstance_Delete.cs index bfbbb0f66443..dfdcf10d2a75 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceInstance_Delete.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceInstance_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzIoTOperationsServiceInstance_Delete : global::Syste /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.RemoveAzI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -577,7 +563,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -601,7 +587,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceInstance_DeleteViaIdentity.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceInstance_DeleteViaIdentity.cs index 168a91a7d0ed..3c8c46a0c4e1 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceInstance_DeleteViaIdentity.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/RemoveAzIoTOperationsServiceInstance_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzIoTOperationsServiceInstance_DeleteViaIdentity : gl /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.RemoveAzI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -554,7 +540,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -578,7 +564,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceBrokerAuthentication_UpdateExpanded.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceBrokerAuthentication_UpdateExpanded.cs index feea7a49233f..9815a7a88e38 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceBrokerAuthentication_UpdateExpanded.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceBrokerAuthentication_UpdateExpanded.cs @@ -40,18 +40,9 @@ public partial class SetAzIoTOperationsServiceBrokerAuthentication_UpdateExpande /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Instance broker authentication resource private Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthenticationResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.BrokerAuthenticationResource(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -307,11 +298,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.SetAzIoTO /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -627,24 +613,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthenticationResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceBrokerAuthentication_UpdateViaJsonFilePath.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceBrokerAuthentication_UpdateViaJsonFilePath.cs index b80ae8fe1a56..306962ed4416 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceBrokerAuthentication_UpdateViaJsonFilePath.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceBrokerAuthentication_UpdateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class SetAzIoTOperationsServiceBrokerAuthentication_UpdateViaJson /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -294,11 +285,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.SetAzIoTO /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -615,24 +601,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthenticationResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceBrokerAuthentication_UpdateViaJsonString.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceBrokerAuthentication_UpdateViaJsonString.cs index 101f030d08b9..76fccdf30467 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceBrokerAuthentication_UpdateViaJsonString.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceBrokerAuthentication_UpdateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class SetAzIoTOperationsServiceBrokerAuthentication_UpdateViaJson /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -292,11 +283,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.SetAzIoTO /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -613,24 +599,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthenticationResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceBrokerAuthorization_UpdateExpanded.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceBrokerAuthorization_UpdateExpanded.cs index 4d4196f6c772..945690f6b669 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceBrokerAuthorization_UpdateExpanded.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceBrokerAuthorization_UpdateExpanded.cs @@ -40,18 +40,9 @@ public partial class SetAzIoTOperationsServiceBrokerAuthorization_UpdateExpanded /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Instance broker authorizations resource private Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthorizationResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.BrokerAuthorizationResource(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -318,11 +309,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.SetAzIoTO /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -638,24 +624,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthorizationResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceBrokerAuthorization_UpdateViaJsonFilePath.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceBrokerAuthorization_UpdateViaJsonFilePath.cs index 7156192aa3db..c95b3ebc7ff5 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceBrokerAuthorization_UpdateViaJsonFilePath.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceBrokerAuthorization_UpdateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class SetAzIoTOperationsServiceBrokerAuthorization_UpdateViaJsonF /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -294,11 +285,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.SetAzIoTO /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -615,24 +601,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthorizationResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceBrokerAuthorization_UpdateViaJsonString.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceBrokerAuthorization_UpdateViaJsonString.cs index 307d945cf085..1292e31c40c4 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceBrokerAuthorization_UpdateViaJsonString.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceBrokerAuthorization_UpdateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class SetAzIoTOperationsServiceBrokerAuthorization_UpdateViaJsonS /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -292,11 +283,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.SetAzIoTO /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -613,24 +599,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthorizationResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceBrokerListener_UpdateExpanded.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceBrokerListener_UpdateExpanded.cs index 7397a0f71dd3..ae7b4195c7db 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceBrokerListener_UpdateExpanded.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceBrokerListener_UpdateExpanded.cs @@ -40,18 +40,9 @@ public partial class SetAzIoTOperationsServiceBrokerListener_UpdateExpanded : gl /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Instance broker resource private Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerListenerResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.BrokerListenerResource(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -325,11 +316,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.SetAzIoTO /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -645,24 +631,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerListenerResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceBrokerListener_UpdateViaJsonFilePath.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceBrokerListener_UpdateViaJsonFilePath.cs index 7a26a7f923f2..b42ea1fd9ec0 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceBrokerListener_UpdateViaJsonFilePath.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceBrokerListener_UpdateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class SetAzIoTOperationsServiceBrokerListener_UpdateViaJsonFilePa /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -294,11 +285,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.SetAzIoTO /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -615,24 +601,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerListenerResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceBrokerListener_UpdateViaJsonString.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceBrokerListener_UpdateViaJsonString.cs index e3b8d320f0c5..b6a14a9a4c29 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceBrokerListener_UpdateViaJsonString.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceBrokerListener_UpdateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class SetAzIoTOperationsServiceBrokerListener_UpdateViaJsonString /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -292,11 +283,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.SetAzIoTO /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -612,24 +598,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerListenerResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceBroker_UpdateExpanded.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceBroker_UpdateExpanded.cs index b0f8478e83fe..63aed24acfd1 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceBroker_UpdateExpanded.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceBroker_UpdateExpanded.cs @@ -40,18 +40,9 @@ public partial class SetAzIoTOperationsServiceBroker_UpdateExpanded : global::Sy /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Instance broker resource private Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.BrokerResource(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// The setting to enable or disable encryption of internal Traffic. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The setting to enable or disable encryption of internal Traffic.")] [global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Body)] @@ -621,11 +612,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.SetAzIoTO /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -941,24 +927,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceBroker_UpdateViaJsonFilePath.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceBroker_UpdateViaJsonFilePath.cs index 02c6ef8d9285..8ac620c3207b 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceBroker_UpdateViaJsonFilePath.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceBroker_UpdateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class SetAzIoTOperationsServiceBroker_UpdateViaJsonFilePath : glo /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -278,11 +269,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.SetAzIoTO /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -598,24 +584,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceBroker_UpdateViaJsonString.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceBroker_UpdateViaJsonString.cs index 531ceccc6e02..787f4d3c5bdb 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceBroker_UpdateViaJsonString.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceBroker_UpdateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class SetAzIoTOperationsServiceBroker_UpdateViaJsonString : globa /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -276,11 +267,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.SetAzIoTO /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -596,24 +582,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceDataflowEndpoint_UpdateExpanded.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceDataflowEndpoint_UpdateExpanded.cs index 0bd4baf47867..0c960d8f581f 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceDataflowEndpoint_UpdateExpanded.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceDataflowEndpoint_UpdateExpanded.cs @@ -40,18 +40,9 @@ public partial class SetAzIoTOperationsServiceDataflowEndpoint_UpdateExpanded : /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Instance dataflowEndpoint resource private Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.DataflowEndpointResource(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Token secret name. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Token secret name.")] [global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Body)] @@ -662,11 +653,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.SetAzIoTO /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -982,24 +968,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceDataflowEndpoint_UpdateViaJsonFilePath.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceDataflowEndpoint_UpdateViaJsonFilePath.cs index a8be98635a1b..da05c34db6d9 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceDataflowEndpoint_UpdateViaJsonFilePath.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceDataflowEndpoint_UpdateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class SetAzIoTOperationsServiceDataflowEndpoint_UpdateViaJsonFile /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -280,11 +271,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.SetAzIoTO /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -601,24 +587,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceDataflowEndpoint_UpdateViaJsonString.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceDataflowEndpoint_UpdateViaJsonString.cs index f0b58ad20fb3..9a2cb97f43fe 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceDataflowEndpoint_UpdateViaJsonString.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceDataflowEndpoint_UpdateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class SetAzIoTOperationsServiceDataflowEndpoint_UpdateViaJsonStri /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -278,11 +269,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.SetAzIoTO /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -599,24 +585,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceDataflowProfile_UpdateExpanded.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceDataflowProfile_UpdateExpanded.cs index 3cb033850006..6697a4af64f3 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceDataflowProfile_UpdateExpanded.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceDataflowProfile_UpdateExpanded.cs @@ -40,18 +40,9 @@ public partial class SetAzIoTOperationsServiceDataflowProfile_UpdateExpanded : g /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Instance dataflowProfile resource private Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowProfileResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.DataflowProfileResource(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -311,11 +302,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.SetAzIoTO /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -631,24 +617,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowProfileResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceDataflowProfile_UpdateViaJsonFilePath.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceDataflowProfile_UpdateViaJsonFilePath.cs index c73189d04f9d..bf3fa08bacf1 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceDataflowProfile_UpdateViaJsonFilePath.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceDataflowProfile_UpdateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class SetAzIoTOperationsServiceDataflowProfile_UpdateViaJsonFileP /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -280,11 +271,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.SetAzIoTO /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -601,24 +587,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowProfileResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceDataflowProfile_UpdateViaJsonString.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceDataflowProfile_UpdateViaJsonString.cs index 6f950a19d0dc..f706274b52b6 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceDataflowProfile_UpdateViaJsonString.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceDataflowProfile_UpdateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class SetAzIoTOperationsServiceDataflowProfile_UpdateViaJsonStrin /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -278,11 +269,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.SetAzIoTO /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -598,24 +584,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowProfileResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceDataflow_UpdateExpanded.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceDataflow_UpdateExpanded.cs index c6c9fe832623..745622f85455 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceDataflow_UpdateExpanded.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceDataflow_UpdateExpanded.cs @@ -40,18 +40,9 @@ public partial class SetAzIoTOperationsServiceDataflow_UpdateExpanded : global:: /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Instance dataflowProfile dataflow resource private Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.DataflowResource(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -318,11 +309,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.SetAzIoTO /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -638,24 +624,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceDataflow_UpdateViaJsonFilePath.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceDataflow_UpdateViaJsonFilePath.cs index 8f4f26816262..c11a37a17994 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceDataflow_UpdateViaJsonFilePath.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceDataflow_UpdateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class SetAzIoTOperationsServiceDataflow_UpdateViaJsonFilePath : g /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -294,11 +285,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.SetAzIoTO /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -614,24 +600,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceDataflow_UpdateViaJsonString.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceDataflow_UpdateViaJsonString.cs index 4f0281c4eb34..2e9959dc2a1a 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceDataflow_UpdateViaJsonString.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceDataflow_UpdateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class SetAzIoTOperationsServiceDataflow_UpdateViaJsonString : glo /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -292,11 +283,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.SetAzIoTO /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -612,24 +598,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceInstance_UpdateExpanded.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceInstance_UpdateExpanded.cs index 79da4bf34436..4574c729aa3f 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceInstance_UpdateExpanded.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceInstance_UpdateExpanded.cs @@ -40,18 +40,9 @@ public partial class SetAzIoTOperationsServiceInstance_UpdateExpanded : global:: /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// A Instance resource is a logical container for a set of child resources. private Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IInstanceResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.InstanceResource(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -318,11 +309,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.SetAzIoTO /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -664,24 +650,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IInstanceResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceInstance_UpdateViaJsonFilePath.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceInstance_UpdateViaJsonFilePath.cs index acdf15808dd0..5a8c20ef3d5e 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceInstance_UpdateViaJsonFilePath.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceInstance_UpdateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class SetAzIoTOperationsServiceInstance_UpdateViaJsonFilePath : g /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.SetAzIoTO /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -583,24 +569,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IInstanceResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceInstance_UpdateViaJsonString.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceInstance_UpdateViaJsonString.cs index 9cc5a194ebe7..9e8ff2d329fb 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceInstance_UpdateViaJsonString.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/SetAzIoTOperationsServiceInstance_UpdateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class SetAzIoTOperationsServiceInstance_UpdateViaJsonString : glo /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.SetAzIoTO /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -581,24 +567,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IInstanceResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBrokerAuthentication_UpdateExpanded.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBrokerAuthentication_UpdateExpanded.cs index 3a09ec5e447d..3587db5be03e 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBrokerAuthentication_UpdateExpanded.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBrokerAuthentication_UpdateExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzIoTOperationsServiceBrokerAuthentication_UpdateExpa /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Instance broker authentication resource private Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthenticationResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.BrokerAuthenticationResource(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -296,11 +287,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.UpdateAzI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -627,24 +613,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthenticationResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBrokerAuthentication_UpdateViaIdentityBrokerExpanded.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBrokerAuthentication_UpdateViaIdentityBrokerExpanded.cs index e7d66ccf4711..33a55103edf8 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBrokerAuthentication_UpdateViaIdentityBrokerExpanded.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBrokerAuthentication_UpdateViaIdentityBrokerExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzIoTOperationsServiceBrokerAuthentication_UpdateViaI /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Instance broker authentication resource private Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthenticationResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.BrokerAuthenticationResource(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -239,11 +230,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.UpdateAzI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -597,24 +583,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthenticationResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBrokerAuthentication_UpdateViaIdentityExpanded.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBrokerAuthentication_UpdateViaIdentityExpanded.cs index 4bea08d36a12..746656744160 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBrokerAuthentication_UpdateViaIdentityExpanded.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBrokerAuthentication_UpdateViaIdentityExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzIoTOperationsServiceBrokerAuthentication_UpdateViaI /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Instance broker authentication resource private Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthenticationResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.BrokerAuthenticationResource(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -224,11 +215,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.UpdateAzI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -585,24 +571,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthenticationResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBrokerAuthentication_UpdateViaIdentityInstanceExpanded.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBrokerAuthentication_UpdateViaIdentityInstanceExpanded.cs index 809c3eb53c3c..7c7bc0268093 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBrokerAuthentication_UpdateViaIdentityInstanceExpanded.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBrokerAuthentication_UpdateViaIdentityInstanceExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzIoTOperationsServiceBrokerAuthentication_UpdateViaI /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Instance broker authentication resource private Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthenticationResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.BrokerAuthenticationResource(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -254,11 +245,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.UpdateAzI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -608,24 +594,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthenticationResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBrokerAuthorization_UpdateExpanded.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBrokerAuthorization_UpdateExpanded.cs index 6c710599c5d5..685fa86695b4 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBrokerAuthorization_UpdateExpanded.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBrokerAuthorization_UpdateExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzIoTOperationsServiceBrokerAuthorization_UpdateExpan /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Instance broker authorizations resource private Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthorizationResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.BrokerAuthorizationResource(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -307,11 +298,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.UpdateAzI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -642,24 +628,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthorizationResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBrokerAuthorization_UpdateViaIdentityBrokerExpanded.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBrokerAuthorization_UpdateViaIdentityBrokerExpanded.cs index 12e12d6ea40a..a31cb67f6424 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBrokerAuthorization_UpdateViaIdentityBrokerExpanded.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBrokerAuthorization_UpdateViaIdentityBrokerExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzIoTOperationsServiceBrokerAuthorization_UpdateViaId /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Instance broker authorizations resource private Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthorizationResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.BrokerAuthorizationResource(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -250,11 +241,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.UpdateAzI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -612,24 +598,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthorizationResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBrokerAuthorization_UpdateViaIdentityExpanded.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBrokerAuthorization_UpdateViaIdentityExpanded.cs index 39c47e7fdba3..46e890f1a2c0 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBrokerAuthorization_UpdateViaIdentityExpanded.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBrokerAuthorization_UpdateViaIdentityExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzIoTOperationsServiceBrokerAuthorization_UpdateViaId /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Instance broker authorizations resource private Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthorizationResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.BrokerAuthorizationResource(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -235,11 +226,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.UpdateAzI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -600,24 +586,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthorizationResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBrokerAuthorization_UpdateViaIdentityInstanceExpanded.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBrokerAuthorization_UpdateViaIdentityInstanceExpanded.cs index a687c0e2ddb1..4e92f116d2ed 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBrokerAuthorization_UpdateViaIdentityInstanceExpanded.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBrokerAuthorization_UpdateViaIdentityInstanceExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzIoTOperationsServiceBrokerAuthorization_UpdateViaId /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Instance broker authorizations resource private Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthorizationResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.BrokerAuthorizationResource(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -265,11 +256,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.UpdateAzI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -623,24 +609,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerAuthorizationResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBrokerListener_UpdateExpanded.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBrokerListener_UpdateExpanded.cs index c95f7835656d..00cceec858d0 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBrokerListener_UpdateExpanded.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBrokerListener_UpdateExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzIoTOperationsServiceBrokerListener_UpdateExpanded : /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Instance broker resource private Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerListenerResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.BrokerListenerResource(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -316,11 +307,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.UpdateAzI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -654,24 +640,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerListenerResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBrokerListener_UpdateViaIdentityBrokerExpanded.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBrokerListener_UpdateViaIdentityBrokerExpanded.cs index a83e6f60fa27..5a7dc79f030c 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBrokerListener_UpdateViaIdentityBrokerExpanded.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBrokerListener_UpdateViaIdentityBrokerExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzIoTOperationsServiceBrokerListener_UpdateViaIdentit /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Instance broker resource private Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerListenerResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.BrokerListenerResource(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -259,11 +250,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.UpdateAzI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -625,24 +611,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerListenerResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBrokerListener_UpdateViaIdentityExpanded.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBrokerListener_UpdateViaIdentityExpanded.cs index a7a40494d1ad..1d04e6a65738 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBrokerListener_UpdateViaIdentityExpanded.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBrokerListener_UpdateViaIdentityExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzIoTOperationsServiceBrokerListener_UpdateViaIdentit /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Instance broker resource private Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerListenerResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.BrokerListenerResource(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -244,11 +235,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.UpdateAzI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -613,24 +599,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerListenerResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBrokerListener_UpdateViaIdentityInstanceExpanded.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBrokerListener_UpdateViaIdentityInstanceExpanded.cs index b95b1ee926b7..0422281e09bf 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBrokerListener_UpdateViaIdentityInstanceExpanded.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBrokerListener_UpdateViaIdentityInstanceExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzIoTOperationsServiceBrokerListener_UpdateViaIdentit /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Instance broker resource private Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerListenerResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.BrokerListenerResource(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -274,11 +265,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.UpdateAzI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -636,24 +622,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerListenerResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBroker_UpdateExpanded.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBroker_UpdateExpanded.cs index 92bcafe229c0..607d25f09ba9 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBroker_UpdateExpanded.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBroker_UpdateExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzIoTOperationsServiceBroker_UpdateExpanded : global: /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Instance broker resource private Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.BrokerResource(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -378,11 +369,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.UpdateAzI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -744,24 +730,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBroker_UpdateViaIdentityExpanded.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBroker_UpdateViaIdentityExpanded.cs index 5cad87d7be4e..6d033fcee5fe 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBroker_UpdateViaIdentityExpanded.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBroker_UpdateViaIdentityExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzIoTOperationsServiceBroker_UpdateViaIdentityExpande /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Instance broker resource private Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.BrokerResource(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -322,11 +313,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.UpdateAzI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -714,24 +700,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBroker_UpdateViaIdentityInstanceExpanded.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBroker_UpdateViaIdentityInstanceExpanded.cs index e36acc4dd3ec..1d1eda8a63d9 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBroker_UpdateViaIdentityInstanceExpanded.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceBroker_UpdateViaIdentityInstanceExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzIoTOperationsServiceBroker_UpdateViaIdentityInstanc /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Instance broker resource private Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.BrokerResource(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -338,11 +329,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.UpdateAzI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -728,24 +714,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IBrokerResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceDataflowEndpoint_UpdateExpanded.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceDataflowEndpoint_UpdateExpanded.cs index 8659273df643..a8158c1840f8 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceDataflowEndpoint_UpdateExpanded.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceDataflowEndpoint_UpdateExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzIoTOperationsServiceDataflowEndpoint_UpdateExpanded /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Instance dataflowEndpoint resource private Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.DataflowEndpointResource(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Token secret name. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Token secret name.")] [global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Body)] @@ -651,11 +642,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.UpdateAzI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -1109,24 +1095,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceDataflowEndpoint_UpdateViaIdentityExpanded.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceDataflowEndpoint_UpdateViaIdentityExpanded.cs index be3a1822909c..f5cf4fb92ea6 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceDataflowEndpoint_UpdateViaIdentityExpanded.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceDataflowEndpoint_UpdateViaIdentityExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzIoTOperationsServiceDataflowEndpoint_UpdateViaIdent /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Instance dataflowEndpoint resource private Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.DataflowEndpointResource(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Token secret name. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Token secret name.")] [global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Body)] @@ -593,11 +584,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.UpdateAzI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -1078,24 +1064,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceDataflowEndpoint_UpdateViaIdentityInstanceExpanded.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceDataflowEndpoint_UpdateViaIdentityInstanceExpanded.cs index 1eb9e563ecf4..2468df7e65ad 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceDataflowEndpoint_UpdateViaIdentityInstanceExpanded.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceDataflowEndpoint_UpdateViaIdentityInstanceExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzIoTOperationsServiceDataflowEndpoint_UpdateViaIdent /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Instance dataflowEndpoint resource private Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.DataflowEndpointResource(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Token secret name. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Token secret name.")] [global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Body)] @@ -609,11 +600,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.UpdateAzI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -1091,24 +1077,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowEndpointResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceDataflowProfile_UpdateExpanded.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceDataflowProfile_UpdateExpanded.cs index c96039629818..81d96defad60 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceDataflowProfile_UpdateExpanded.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceDataflowProfile_UpdateExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzIoTOperationsServiceDataflowProfile_UpdateExpanded /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Instance dataflowProfile resource private Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowProfileResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.DataflowProfileResource(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -302,11 +293,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.UpdateAzI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -640,24 +626,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowProfileResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceDataflowProfile_UpdateViaIdentityExpanded.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceDataflowProfile_UpdateViaIdentityExpanded.cs index eec6d8bb6466..c7b721e7e88f 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceDataflowProfile_UpdateViaIdentityExpanded.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceDataflowProfile_UpdateViaIdentityExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzIoTOperationsServiceDataflowProfile_UpdateViaIdenti /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Instance dataflowProfile resource private Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowProfileResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.DataflowProfileResource(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -244,11 +235,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.UpdateAzI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -609,24 +595,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowProfileResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceDataflowProfile_UpdateViaIdentityInstanceExpanded.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceDataflowProfile_UpdateViaIdentityInstanceExpanded.cs index 86c2eac1e312..781ccc7c100f 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceDataflowProfile_UpdateViaIdentityInstanceExpanded.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceDataflowProfile_UpdateViaIdentityInstanceExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzIoTOperationsServiceDataflowProfile_UpdateViaIdenti /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Instance dataflowProfile resource private Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowProfileResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.DataflowProfileResource(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -260,11 +251,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.UpdateAzI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -622,24 +608,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowProfileResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceDataflow_UpdateExpanded.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceDataflow_UpdateExpanded.cs index 651371b98129..4c6869ac9e0d 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceDataflow_UpdateExpanded.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceDataflow_UpdateExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzIoTOperationsServiceDataflow_UpdateExpanded : globa /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Instance dataflowProfile dataflow resource private Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.DataflowResource(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -307,11 +298,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.UpdateAzI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -641,24 +627,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceDataflow_UpdateViaIdentityDataflowProfileExpanded.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceDataflow_UpdateViaIdentityDataflowProfileExpanded.cs index 97d564cf69bb..01b2fc46291b 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceDataflow_UpdateViaIdentityDataflowProfileExpanded.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceDataflow_UpdateViaIdentityDataflowProfileExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzIoTOperationsServiceDataflow_UpdateViaIdentityDataf /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Instance dataflowProfile dataflow resource private Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.DataflowResource(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -251,11 +242,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.UpdateAzI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -613,24 +599,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceDataflow_UpdateViaIdentityExpanded.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceDataflow_UpdateViaIdentityExpanded.cs index 9146030f6df1..e1ab8b8a8ef8 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceDataflow_UpdateViaIdentityExpanded.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceDataflow_UpdateViaIdentityExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzIoTOperationsServiceDataflow_UpdateViaIdentityExpan /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Instance dataflowProfile dataflow resource private Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.DataflowResource(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -235,11 +226,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.UpdateAzI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -600,24 +586,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceDataflow_UpdateViaIdentityInstanceExpanded.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceDataflow_UpdateViaIdentityInstanceExpanded.cs index 7fbea9c92714..7c8665f9c426 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceDataflow_UpdateViaIdentityInstanceExpanded.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceDataflow_UpdateViaIdentityInstanceExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzIoTOperationsServiceDataflow_UpdateViaIdentityInsta /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Instance dataflowProfile dataflow resource private Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.DataflowResource(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -267,11 +258,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.UpdateAzI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -625,24 +611,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IDataflowResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceInstance_UpdateExpanded.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceInstance_UpdateExpanded.cs index 423913aeda33..5c0728a33fd7 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceInstance_UpdateExpanded.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceInstance_UpdateExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzIoTOperationsServiceInstance_UpdateExpanded : globa /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// A Instance resource is a logical container for a set of child resources. private Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IInstanceResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.InstanceResource(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -296,11 +287,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.UpdateAzI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -673,24 +659,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IInstanceResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceInstance_UpdateViaIdentityExpanded.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceInstance_UpdateViaIdentityExpanded.cs index ee335100cfd0..eb63b63bad4c 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceInstance_UpdateViaIdentityExpanded.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/cmdlets/UpdateAzIoTOperationsServiceInstance_UpdateViaIdentityExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzIoTOperationsServiceInstance_UpdateViaIdentityExpan /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// A Instance resource is a logical container for a set of child resources. private Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IInstanceResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.InstanceResource(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.IoTOperationsService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ParameterCategory.Runtime)] @@ -255,11 +246,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Cmdlets.UpdateAzI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -656,24 +642,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Models.IInstanceResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs index 10f29a842ad9..dce28f76f92f 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs @@ -36,14 +36,23 @@ internal class PsHelpInfo public object Role { get; } public string NonTerminatingErrors { get; } + public static string CapitalizeFirstLetter(string text) + { + if (string.IsNullOrEmpty(text)) + return text; + + return char.ToUpper(text[0]) + text.Substring(1); + } + public PsHelpInfo(PSObject helpObject = null) { helpObject = helpObject ?? new PSObject(); CmdletName = helpObject.GetProperty("Name").NullIfEmpty() ?? helpObject.GetNestedProperty("details", "name"); ModuleName = helpObject.GetProperty("ModuleName"); - Synopsis = helpObject.GetProperty("Synopsis"); + Synopsis = CapitalizeFirstLetter(helpObject.GetProperty("Synopsis")); Description = helpObject.GetProperty("description").EmptyIfNull().ToDescriptionText().NullIfEmpty() ?? helpObject.GetNestedProperty("details", "description").EmptyIfNull().ToDescriptionText(); + Description = CapitalizeFirstLetter(Description); AlertText = helpObject.GetNestedProperty("alertSet", "alert").EmptyIfNull().ToDescriptionText(); Category = helpObject.GetProperty("Category"); HasCommonParameters = helpObject.GetProperty("CommonParameters").ToNullableBool(); diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 5868dd946425..23454ee11abf 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -218,13 +218,12 @@ public string GetProcessCustomAttributesAtRuntime() private string GetLoginVerification() { - if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) + if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) { return $@" {Indent}{Indent}$context = Get-AzContext {Indent}{Indent}if (-not $context -and -not $testPlayback) {{ -{Indent}{Indent}{Indent}Write-Error ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" -{Indent}{Indent}{Indent}exit +{Indent}{Indent}{Indent}throw ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" {Indent}{Indent}}} "; } diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs index 202c2cc072c2..75dd380d6d69 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs @@ -392,6 +392,7 @@ public CommentInfo(VariantGroup variantGroup) var helpInfo = variantGroup.HelpInfo; Description = variantGroup.Variants.SelectMany(v => v.Attributes).OfType().FirstOrDefault()?.Description.NullIfEmpty() ?? helpInfo.Description.EmptyIfNull(); + Description = PsHelpInfo.CapitalizeFirstLetter(Description); // If there is no Synopsis, PowerShell may put in the Syntax string as the Synopsis. This seems unintended, so we remove the Synopsis in this situation. var synopsis = helpInfo.Synopsis.EmptyIfNull().Trim().StartsWith(variantGroup.CmdletName) ? String.Empty : helpInfo.Synopsis; Synopsis = synopsis.NullIfEmpty() ?? Description; diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/runtime/Context.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/runtime/Context.cs index 43b37434750a..7cf8741d1415 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/runtime/Context.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Runtime /// The IContext Interface defines the communication mechanism for input customization. /// /// - /// In the context, we will have client, pipeline, PSBoundParamters, default EventListener, Cancellation. + /// In the context, we will have client, pipeline, PSBoundParameters, default EventListener, Cancellation. /// public interface IContext { diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/runtime/MessageAttribute.cs b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/runtime/MessageAttribute.cs index d4e4dfbe05a3..70cdfd7c8509 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/runtime/MessageAttribute.cs +++ b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/runtime/MessageAttribute.cs @@ -16,9 +16,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.Runtime public class GenericBreakingChangeAttribute : Attribute { private string _message; - //A dexcription of what the change is about, non mandatory + //A description of what the change is about, non mandatory public string ChangeDescription { get; set; } = null; + //Name of the module that is being deprecated + public string moduleName { get; set; } = String.IsNullOrEmpty(@"") ? @"Az.IoTOperationsService" : @""; + //The version the change is effective from, non mandatory public string DeprecateByVersion { get; } public string DeprecateByAzVersion { get; } @@ -82,7 +85,7 @@ public void PrintCustomAttributeInfo(Action writeOutput) } writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByAzVersion, this.DeprecateByAzVersion)); - writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.DeprecateByVersion)); + writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.moduleName, this.DeprecateByVersion)); if (OldWay != null && NewWay != null) { @@ -191,11 +194,11 @@ public PreviewMessageAttribute(string message, string estimatedDateOfGa) : this( this.IsEstimatedGaDateSet = true; } } - + public void PrintCustomAttributeInfo(Action writeOutput) { writeOutput(this._message); - + if (IsEstimatedGaDateSet) { writeOutput(string.Format(Resources.PreviewCmdletETAMessage, this.EstimatedGaDate.ToShortDateString())); diff --git a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/runtime/Properties/Resources.resx b/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/runtime/Properties/Resources.resx index a08a2e50172b..4ef90b70573d 100644 --- a/generated/IoTOperationsService/IoTOperationsService.Autorest/generated/runtime/Properties/Resources.resx +++ b/generated/IoTOperationsService/IoTOperationsService.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 version : '{0}' +- The change is expected to take effect in '{0}' from version : '{1}' ```powershell diff --git a/generated/KeyVault/KeyVault.Autorest/exports/Add-AzKeyVaultManagedHsmRegion.ps1 b/generated/KeyVault/KeyVault.Autorest/exports/Add-AzKeyVaultManagedHsmRegion.ps1 index b019af52a199..52fbfcef5d8d 100644 --- a/generated/KeyVault/KeyVault.Autorest/exports/Add-AzKeyVaultManagedHsmRegion.ps1 +++ b/generated/KeyVault/KeyVault.Autorest/exports/Add-AzKeyVaultManagedHsmRegion.ps1 @@ -126,8 +126,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/KeyVault/KeyVault.Autorest/exports/Get-AzKeyVaultManagedHsmRegion.ps1 b/generated/KeyVault/KeyVault.Autorest/exports/Get-AzKeyVaultManagedHsmRegion.ps1 index e17446fe92ae..4e9fd4c4d81b 100644 --- a/generated/KeyVault/KeyVault.Autorest/exports/Get-AzKeyVaultManagedHsmRegion.ps1 +++ b/generated/KeyVault/KeyVault.Autorest/exports/Get-AzKeyVaultManagedHsmRegion.ps1 @@ -113,8 +113,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/KeyVault/KeyVault.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/KeyVault/KeyVault.Autorest/exports/ProxyCmdletDefinitions.ps1 index 4df03977b433..01ae80d36bae 100644 --- a/generated/KeyVault/KeyVault.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/KeyVault/KeyVault.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -113,8 +113,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -304,8 +303,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -497,8 +495,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -695,8 +692,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -896,8 +892,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/KeyVault/KeyVault.Autorest/exports/Remove-AzKeyVaultManagedHsmRegion.ps1 b/generated/KeyVault/KeyVault.Autorest/exports/Remove-AzKeyVaultManagedHsmRegion.ps1 index f5e341c6d12a..469efb0d63cd 100644 --- a/generated/KeyVault/KeyVault.Autorest/exports/Remove-AzKeyVaultManagedHsmRegion.ps1 +++ b/generated/KeyVault/KeyVault.Autorest/exports/Remove-AzKeyVaultManagedHsmRegion.ps1 @@ -131,8 +131,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/KeyVault/KeyVault.Autorest/exports/Test-AzKeyVaultManagedHsmNameAvailability.ps1 b/generated/KeyVault/KeyVault.Autorest/exports/Test-AzKeyVaultManagedHsmNameAvailability.ps1 index bafc0be375ec..7f0cd198232e 100644 --- a/generated/KeyVault/KeyVault.Autorest/exports/Test-AzKeyVaultManagedHsmNameAvailability.ps1 +++ b/generated/KeyVault/KeyVault.Autorest/exports/Test-AzKeyVaultManagedHsmNameAvailability.ps1 @@ -121,8 +121,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/KeyVault/KeyVault.Autorest/exports/Test-AzKeyVaultNameAvailability.ps1 b/generated/KeyVault/KeyVault.Autorest/exports/Test-AzKeyVaultNameAvailability.ps1 index 0d368bb68aeb..57c1f88abd74 100644 --- a/generated/KeyVault/KeyVault.Autorest/exports/Test-AzKeyVaultNameAvailability.ps1 +++ b/generated/KeyVault/KeyVault.Autorest/exports/Test-AzKeyVaultNameAvailability.ps1 @@ -121,8 +121,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/KeyVault/KeyVault.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/KeyVault/KeyVault.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 817355c88c2c..c8dd17bf5a9b 100644 --- a/generated/KeyVault/KeyVault.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/KeyVault/KeyVault.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -218,13 +218,12 @@ public string GetProcessCustomAttributesAtRuntime() private string GetLoginVerification() { - if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) + if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) { return $@" {Indent}{Indent}$context = Get-AzContext {Indent}{Indent}if (-not $context -and -not $testPlayback) {{ -{Indent}{Indent}{Indent}Write-Error ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" -{Indent}{Indent}{Indent}exit +{Indent}{Indent}{Indent}throw ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" {Indent}{Indent}}} "; } diff --git a/generated/KeyVault/KeyVault.Autorest/generated/runtime/Context.cs b/generated/KeyVault/KeyVault.Autorest/generated/runtime/Context.cs index f5a4eabf0568..b38676352acc 100644 --- a/generated/KeyVault/KeyVault.Autorest/generated/runtime/Context.cs +++ b/generated/KeyVault/KeyVault.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime /// The IContext Interface defines the communication mechanism for input customization. /// /// - /// In the context, we will have client, pipeline, PSBoundParamters, default EventListener, Cancellation. + /// In the context, we will have client, pipeline, PSBoundParameters, default EventListener, Cancellation. /// public interface IContext { diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/exports/Get-AzKubernetesConfigFluxOperationStatus.ps1 b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/exports/Get-AzKubernetesConfigFluxOperationStatus.ps1 index 09e7de41c65d..6de38bc63c4d 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/exports/Get-AzKubernetesConfigFluxOperationStatus.ps1 +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/exports/Get-AzKubernetesConfigFluxOperationStatus.ps1 @@ -159,8 +159,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/exports/Get-AzKubernetesConfiguration.ps1 b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/exports/Get-AzKubernetesConfiguration.ps1 index fff5c291a66c..cb2d691bb780 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/exports/Get-AzKubernetesConfiguration.ps1 +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/exports/Get-AzKubernetesConfiguration.ps1 @@ -160,8 +160,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/exports/Get-AzKubernetesConfigurationFlux.ps1 b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/exports/Get-AzKubernetesConfigurationFlux.ps1 index 3762e032e41a..5a27763df365 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/exports/Get-AzKubernetesConfigurationFlux.ps1 +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/exports/Get-AzKubernetesConfigurationFlux.ps1 @@ -160,8 +160,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/exports/Get-AzKubernetesExtension.ps1 b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/exports/Get-AzKubernetesExtension.ps1 index a7282b655e37..dcb9c32fc1fd 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/exports/Get-AzKubernetesExtension.ps1 +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/exports/Get-AzKubernetesExtension.ps1 @@ -160,8 +160,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/exports/New-AzKubernetesConfiguration.ps1 b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/exports/New-AzKubernetesConfiguration.ps1 index 48de56caf874..bdcbcdf28e82 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/exports/New-AzKubernetesConfiguration.ps1 +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/exports/New-AzKubernetesConfiguration.ps1 @@ -209,8 +209,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/exports/New-AzKubernetesConfigurationFlux.ps1 b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/exports/New-AzKubernetesConfigurationFlux.ps1 index b7450b8280e5..9fed91124824 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/exports/New-AzKubernetesConfigurationFlux.ps1 +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/exports/New-AzKubernetesConfigurationFlux.ps1 @@ -391,8 +391,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/exports/New-AzKubernetesExtension.ps1 b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/exports/New-AzKubernetesExtension.ps1 index 9be31a89852a..0b5a5ff38dec 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/exports/New-AzKubernetesExtension.ps1 +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/exports/New-AzKubernetesExtension.ps1 @@ -246,8 +246,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/exports/ProxyCmdletDefinitions.ps1 index 809fbd66f003..cbab55ac76e9 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -159,8 +159,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -390,8 +389,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -622,8 +620,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -854,8 +851,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1135,8 +1131,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1596,8 +1591,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1912,8 +1906,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2156,8 +2149,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2407,8 +2399,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2658,8 +2649,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3120,8 +3110,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3391,8 +3380,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/exports/Remove-AzKubernetesConfiguration.ps1 b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/exports/Remove-AzKubernetesConfiguration.ps1 index 7f694393f665..21d52519702a 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/exports/Remove-AzKubernetesConfiguration.ps1 +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/exports/Remove-AzKubernetesConfiguration.ps1 @@ -174,8 +174,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/exports/Remove-AzKubernetesConfigurationFlux.ps1 b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/exports/Remove-AzKubernetesConfigurationFlux.ps1 index e093bce33be4..31930cc5b7d6 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/exports/Remove-AzKubernetesConfigurationFlux.ps1 +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/exports/Remove-AzKubernetesConfigurationFlux.ps1 @@ -180,8 +180,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/exports/Remove-AzKubernetesExtension.ps1 b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/exports/Remove-AzKubernetesExtension.ps1 index feeadec8c1df..7bd297fbe6af 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/exports/Remove-AzKubernetesExtension.ps1 +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/exports/Remove-AzKubernetesExtension.ps1 @@ -180,8 +180,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/exports/Update-AzKubernetesConfigurationFlux.ps1 b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/exports/Update-AzKubernetesConfigurationFlux.ps1 index 01783882f8c4..93511c8a8c94 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/exports/Update-AzKubernetesConfigurationFlux.ps1 +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/exports/Update-AzKubernetesConfigurationFlux.ps1 @@ -391,8 +391,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/exports/Update-AzKubernetesExtension.ps1 b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/exports/Update-AzKubernetesExtension.ps1 index 225aa10340f9..ecfc183b0c41 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/exports/Update-AzKubernetesExtension.ps1 +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/exports/Update-AzKubernetesExtension.ps1 @@ -200,8 +200,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/api/Models/ErrorResponse.cs b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/api/Models/ErrorResponse.cs index 6741a3801061..ba4b64ca2231 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/api/Models/ErrorResponse.cs +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/api/Models/ErrorResponse.cs @@ -40,22 +40,22 @@ public partial class ErrorResponse : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)Error).Message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)Error).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)Error).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)Error).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)Error).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)Error).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for Error Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ErrorDetail()); set { {_error = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)Error).Message = value ?? null; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)Error).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)Error).Target = value ?? null; } /// The error target. [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Origin(Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.PropertyOrigin.Inlined)] diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/api/Models/Extension.cs b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/api/Models/Extension.cs index 337426316d55..db186cac317b 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/api/Models/Extension.cs +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/api/Models/Extension.cs @@ -140,52 +140,52 @@ public partial class Extension : public bool? IsSystemExtension { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).IsSystemExtension; } /// Internal Acessors for AkAssignedIdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionInternal.AkAssignedIdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).AkAssignedIdentityPrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).AkAssignedIdentityPrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionInternal.AkAssignedIdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).AkAssignedIdentityPrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).AkAssignedIdentityPrincipalId = value ?? null; } /// Internal Acessors for AkAssignedIdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionInternal.AkAssignedIdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).AkAssignedIdentityTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).AkAssignedIdentityTenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionInternal.AkAssignedIdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).AkAssignedIdentityTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).AkAssignedIdentityTenantId = value ?? null; } /// Internal Acessors for AksAssignedIdentity - Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesAksAssignedIdentity Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionInternal.AksAssignedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).AksAssignedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).AksAssignedIdentity = value; } + Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesAksAssignedIdentity Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionInternal.AksAssignedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).AksAssignedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).AksAssignedIdentity = value ?? null /* model class */; } /// Internal Acessors for CurrentVersion - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionInternal.CurrentVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).CurrentVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).CurrentVersion = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionInternal.CurrentVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).CurrentVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).CurrentVersion = value ?? null; } /// Internal Acessors for CustomLocationSetting - Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesCustomLocationSettings Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionInternal.CustomLocationSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).CustomLocationSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).CustomLocationSetting = value; } + Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesCustomLocationSettings Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionInternal.CustomLocationSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).CustomLocationSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).CustomLocationSetting = value ?? null /* model class */; } /// Internal Acessors for ErrorInfo - Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionInternal.ErrorInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).ErrorInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).ErrorInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionInternal.ErrorInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).ErrorInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).ErrorInfo = value ?? null /* model class */; } /// Internal Acessors for ErrorInfoAdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionInternal.ErrorInfoAdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).ErrorInfoAdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).ErrorInfoAdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionInternal.ErrorInfoAdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).ErrorInfoAdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).ErrorInfoAdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for ErrorInfoCode - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionInternal.ErrorInfoCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).ErrorInfoCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).ErrorInfoCode = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionInternal.ErrorInfoCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).ErrorInfoCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).ErrorInfoCode = value ?? null; } /// Internal Acessors for ErrorInfoDetail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionInternal.ErrorInfoDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).ErrorInfoDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).ErrorInfoDetail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionInternal.ErrorInfoDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).ErrorInfoDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).ErrorInfoDetail = value ?? null /* arrayOf */; } /// Internal Acessors for ErrorInfoMessage - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionInternal.ErrorInfoMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).ErrorInfoMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).ErrorInfoMessage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionInternal.ErrorInfoMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).ErrorInfoMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).ErrorInfoMessage = value ?? null; } /// Internal Acessors for ErrorInfoTarget - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionInternal.ErrorInfoTarget { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).ErrorInfoTarget; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).ErrorInfoTarget = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionInternal.ErrorInfoTarget { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).ErrorInfoTarget; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).ErrorInfoTarget = value ?? null; } /// Internal Acessors for Identity Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IIdentity Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Identity()); set { {_identity = value;} } } /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IIdentityInternal)Identity).PrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IIdentityInternal)Identity).PrincipalId = value ?? null; } /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IIdentityInternal)Identity).TenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IIdentityInternal)Identity).TenantId = value ?? null; } /// Internal Acessors for IsSystemExtension - bool? Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionInternal.IsSystemExtension { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).IsSystemExtension; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).IsSystemExtension = value; } + bool? Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionInternal.IsSystemExtension { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).IsSystemExtension; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).IsSystemExtension = value ?? default(bool); } /// Internal Acessors for PackageUri - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionInternal.PackageUri { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).PackageUri; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).PackageUri = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionInternal.PackageUri { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).PackageUri; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).PackageUri = value ?? null; } /// Internal Acessors for Plan Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IPlan Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionInternal.Plan { get => (this._plan = this._plan ?? new Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Plan()); set { {_plan = value;} } } @@ -194,49 +194,49 @@ public partial class Extension : Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionProperties Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ExtensionProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Scope - Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IScope Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionInternal.Scope { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).Scope; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).Scope = value; } + Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IScope Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionInternal.Scope { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).Scope; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).Scope = value ?? null /* model class */; } /// Internal Acessors for ScopeCluster - Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IScopeCluster Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionInternal.ScopeCluster { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).ScopeCluster; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).ScopeCluster = value; } + Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IScopeCluster Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionInternal.ScopeCluster { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).ScopeCluster; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).ScopeCluster = value ?? null /* model class */; } /// Internal Acessors for ScopeNamespace - Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IScopeNamespace Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionInternal.ScopeNamespace { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).ScopeNamespace; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).ScopeNamespace = value; } + Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IScopeNamespace Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionInternal.ScopeNamespace { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).ScopeNamespace; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).ScopeNamespace = value ?? null /* model class */; } /// Internal Acessors for Statuses - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionInternal.Statuses { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).Statuses; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).Statuses = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionInternal.Statuses { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).Statuses; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal)Property).Statuses = value ?? null /* arrayOf */; } /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.SystemData()); set { {_systemData = value;} } } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).CreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).CreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).CreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).LastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).LastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).LastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Origin(Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.PropertyOrigin.Inherited)] diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/api/Models/ExtensionProperties.cs b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/api/Models/ExtensionProperties.cs index 6d129dbd4dc6..325f712b2086 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/api/Models/ExtensionProperties.cs +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/api/Models/ExtensionProperties.cs @@ -123,10 +123,10 @@ public partial class ExtensionProperties : public bool? IsSystemExtension { get => this._isSystemExtension; } /// Internal Acessors for AkAssignedIdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal.AkAssignedIdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesAksAssignedIdentityInternal)AksAssignedIdentity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesAksAssignedIdentityInternal)AksAssignedIdentity).PrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal.AkAssignedIdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesAksAssignedIdentityInternal)AksAssignedIdentity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesAksAssignedIdentityInternal)AksAssignedIdentity).PrincipalId = value ?? null; } /// Internal Acessors for AkAssignedIdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal.AkAssignedIdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesAksAssignedIdentityInternal)AksAssignedIdentity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesAksAssignedIdentityInternal)AksAssignedIdentity).TenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal.AkAssignedIdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesAksAssignedIdentityInternal)AksAssignedIdentity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesAksAssignedIdentityInternal)AksAssignedIdentity).TenantId = value ?? null; } /// Internal Acessors for AksAssignedIdentity Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesAksAssignedIdentity Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal.AksAssignedIdentity { get => (this._aksAssignedIdentity = this._aksAssignedIdentity ?? new Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ExtensionPropertiesAksAssignedIdentity()); set { {_aksAssignedIdentity = value;} } } @@ -141,19 +141,19 @@ public partial class ExtensionProperties : Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal.ErrorInfo { get => (this._errorInfo = this._errorInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ErrorDetail()); set { {_errorInfo = value;} } } /// Internal Acessors for ErrorInfoAdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal.ErrorInfoAdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)ErrorInfo).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)ErrorInfo).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal.ErrorInfoAdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)ErrorInfo).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)ErrorInfo).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for ErrorInfoCode - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal.ErrorInfoCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)ErrorInfo).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)ErrorInfo).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal.ErrorInfoCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)ErrorInfo).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)ErrorInfo).Code = value ?? null; } /// Internal Acessors for ErrorInfoDetail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal.ErrorInfoDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)ErrorInfo).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)ErrorInfo).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal.ErrorInfoDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)ErrorInfo).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)ErrorInfo).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for ErrorInfoMessage - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal.ErrorInfoMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)ErrorInfo).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)ErrorInfo).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal.ErrorInfoMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)ErrorInfo).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)ErrorInfo).Message = value ?? null; } /// Internal Acessors for ErrorInfoTarget - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal.ErrorInfoTarget { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)ErrorInfo).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)ErrorInfo).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal.ErrorInfoTarget { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)ErrorInfo).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)ErrorInfo).Target = value ?? null; } /// Internal Acessors for IsSystemExtension bool? Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal.IsSystemExtension { get => this._isSystemExtension; set { {_isSystemExtension = value;} } } @@ -168,10 +168,10 @@ public partial class ExtensionProperties : Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IScope Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal.Scope { get => (this._scope = this._scope ?? new Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Scope()); set { {_scope = value;} } } /// Internal Acessors for ScopeCluster - Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IScopeCluster Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal.ScopeCluster { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IScopeInternal)Scope).Cluster; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IScopeInternal)Scope).Cluster = value; } + Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IScopeCluster Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal.ScopeCluster { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IScopeInternal)Scope).Cluster; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IScopeInternal)Scope).Cluster = value ?? null /* model class */; } /// Internal Acessors for ScopeNamespace - Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IScopeNamespace Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal.ScopeNamespace { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IScopeInternal)Scope).Namespace; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IScopeInternal)Scope).Namespace = value; } + Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IScopeNamespace Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal.ScopeNamespace { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IScopeInternal)Scope).Namespace; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IScopeInternal)Scope).Namespace = value ?? null /* model class */; } /// Internal Acessors for Statuses System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtensionPropertiesInternal.Statuses { get => this._statuses; set { {_statuses = value;} } } diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/api/Models/FluxConfiguration.cs b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/api/Models/FluxConfiguration.cs index 46f2195cf8fc..a941110d2035 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/api/Models/FluxConfiguration.cs +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/api/Models/FluxConfiguration.cs @@ -163,79 +163,79 @@ public partial class FluxConfiguration : public string ManagedIdentityClientId { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).ManagedIdentityClientId; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).ManagedIdentityClientId = value ?? null; } /// Internal Acessors for AzureBlob - Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IAzureBlobDefinition Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationInternal.AzureBlob { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).AzureBlob; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).AzureBlob = value; } + Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IAzureBlobDefinition Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationInternal.AzureBlob { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).AzureBlob; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).AzureBlob = value ?? null /* model class */; } /// Internal Acessors for AzureBlobManagedIdentity - Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IManagedIdentityDefinition Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationInternal.AzureBlobManagedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).AzureBlobManagedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).AzureBlobManagedIdentity = value; } + Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IManagedIdentityDefinition Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationInternal.AzureBlobManagedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).AzureBlobManagedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).AzureBlobManagedIdentity = value ?? null /* model class */; } /// Internal Acessors for AzureBlobServicePrincipal - Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IServicePrincipalDefinition Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationInternal.AzureBlobServicePrincipal { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).AzureBlobServicePrincipal; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).AzureBlobServicePrincipal = value; } + Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IServicePrincipalDefinition Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationInternal.AzureBlobServicePrincipal { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).AzureBlobServicePrincipal; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).AzureBlobServicePrincipal = value ?? null /* model class */; } /// Internal Acessors for Bucket - Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IBucketDefinition Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationInternal.Bucket { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).Bucket; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).Bucket = value; } + Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IBucketDefinition Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationInternal.Bucket { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).Bucket; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).Bucket = value ?? null /* model class */; } /// Internal Acessors for ComplianceState - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationInternal.ComplianceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).ComplianceState; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).ComplianceState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationInternal.ComplianceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).ComplianceState; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).ComplianceState = value ?? null; } /// Internal Acessors for ErrorMessage - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationInternal.ErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).ErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).ErrorMessage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationInternal.ErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).ErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).ErrorMessage = value ?? null; } /// Internal Acessors for GitRepository - Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IGitRepositoryDefinition Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationInternal.GitRepository { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).GitRepository; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).GitRepository = value; } + Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IGitRepositoryDefinition Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationInternal.GitRepository { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).GitRepository; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).GitRepository = value ?? null /* model class */; } /// Internal Acessors for GitRepositoryRef - Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IRepositoryRefDefinition Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationInternal.GitRepositoryRef { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).GitRepositoryRef; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).GitRepositoryRef = value; } + Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IRepositoryRefDefinition Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationInternal.GitRepositoryRef { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).GitRepositoryRef; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).GitRepositoryRef = value ?? null /* model class */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationProperties Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.FluxConfigurationProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for RepositoryPublicKey - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationInternal.RepositoryPublicKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).RepositoryPublicKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).RepositoryPublicKey = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationInternal.RepositoryPublicKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).RepositoryPublicKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).RepositoryPublicKey = value ?? null; } /// Internal Acessors for SourceSyncedCommitId - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationInternal.SourceSyncedCommitId { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).SourceSyncedCommitId; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).SourceSyncedCommitId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationInternal.SourceSyncedCommitId { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).SourceSyncedCommitId; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).SourceSyncedCommitId = value ?? null; } /// Internal Acessors for SourceUpdatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationInternal.SourceUpdatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).SourceUpdatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).SourceUpdatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationInternal.SourceUpdatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).SourceUpdatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).SourceUpdatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for StatusUpdatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationInternal.StatusUpdatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).StatusUpdatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).StatusUpdatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationInternal.StatusUpdatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).StatusUpdatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).StatusUpdatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for Statuses - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationInternal.Statuses { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).Statuses; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).Statuses = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationInternal.Statuses { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).Statuses; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal)Property).Statuses = value ?? null /* arrayOf */; } /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.SystemData()); set { {_systemData = value;} } } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).CreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).CreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).CreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).LastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).LastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).LastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Origin(Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.PropertyOrigin.Inherited)] diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/api/Models/FluxConfigurationPatch.cs b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/api/Models/FluxConfigurationPatch.cs index 7d38af6b6d23..7f3d1dd8d54a 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/api/Models/FluxConfigurationPatch.cs +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/api/Models/FluxConfigurationPatch.cs @@ -141,22 +141,22 @@ public partial class FluxConfigurationPatch : public string ManagedIdentityClientId { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPatchPropertiesInternal)Property).ManagedIdentityClientId; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPatchPropertiesInternal)Property).ManagedIdentityClientId = value ?? null; } /// Internal Acessors for AzureBlob - Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IAzureBlobPatchDefinition Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPatchInternal.AzureBlob { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPatchPropertiesInternal)Property).AzureBlob; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPatchPropertiesInternal)Property).AzureBlob = value; } + Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IAzureBlobPatchDefinition Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPatchInternal.AzureBlob { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPatchPropertiesInternal)Property).AzureBlob; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPatchPropertiesInternal)Property).AzureBlob = value ?? null /* model class */; } /// Internal Acessors for AzureBlobManagedIdentity - Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IManagedIdentityPatchDefinition Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPatchInternal.AzureBlobManagedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPatchPropertiesInternal)Property).AzureBlobManagedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPatchPropertiesInternal)Property).AzureBlobManagedIdentity = value; } + Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IManagedIdentityPatchDefinition Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPatchInternal.AzureBlobManagedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPatchPropertiesInternal)Property).AzureBlobManagedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPatchPropertiesInternal)Property).AzureBlobManagedIdentity = value ?? null /* model class */; } /// Internal Acessors for AzureBlobServicePrincipal - Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IServicePrincipalPatchDefinition Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPatchInternal.AzureBlobServicePrincipal { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPatchPropertiesInternal)Property).AzureBlobServicePrincipal; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPatchPropertiesInternal)Property).AzureBlobServicePrincipal = value; } + Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IServicePrincipalPatchDefinition Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPatchInternal.AzureBlobServicePrincipal { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPatchPropertiesInternal)Property).AzureBlobServicePrincipal; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPatchPropertiesInternal)Property).AzureBlobServicePrincipal = value ?? null /* model class */; } /// Internal Acessors for Bucket - Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IBucketPatchDefinition Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPatchInternal.Bucket { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPatchPropertiesInternal)Property).Bucket; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPatchPropertiesInternal)Property).Bucket = value; } + Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IBucketPatchDefinition Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPatchInternal.Bucket { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPatchPropertiesInternal)Property).Bucket; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPatchPropertiesInternal)Property).Bucket = value ?? null /* model class */; } /// Internal Acessors for GitRepository - Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IGitRepositoryPatchDefinition Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPatchInternal.GitRepository { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPatchPropertiesInternal)Property).GitRepository; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPatchPropertiesInternal)Property).GitRepository = value; } + Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IGitRepositoryPatchDefinition Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPatchInternal.GitRepository { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPatchPropertiesInternal)Property).GitRepository; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPatchPropertiesInternal)Property).GitRepository = value ?? null /* model class */; } /// Internal Acessors for GitRepositoryRef - Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IRepositoryRefDefinition Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPatchInternal.GitRepositoryRef { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPatchPropertiesInternal)Property).GitRepositoryRef; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPatchPropertiesInternal)Property).GitRepositoryRef = value; } + Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IRepositoryRefDefinition Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPatchInternal.GitRepositoryRef { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPatchPropertiesInternal)Property).GitRepositoryRef; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPatchPropertiesInternal)Property).GitRepositoryRef = value ?? null /* model class */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPatchProperties Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPatchInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.FluxConfigurationPatchProperties()); set { {_property = value;} } } diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/api/Models/FluxConfigurationPatchProperties.cs b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/api/Models/FluxConfigurationPatchProperties.cs index f0d0a48f9c3c..315989a0e934 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/api/Models/FluxConfigurationPatchProperties.cs +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/api/Models/FluxConfigurationPatchProperties.cs @@ -171,10 +171,10 @@ public partial class FluxConfigurationPatchProperties : Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IAzureBlobPatchDefinition Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPatchPropertiesInternal.AzureBlob { get => (this._azureBlob = this._azureBlob ?? new Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.AzureBlobPatchDefinition()); set { {_azureBlob = value;} } } /// Internal Acessors for AzureBlobManagedIdentity - Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IManagedIdentityPatchDefinition Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPatchPropertiesInternal.AzureBlobManagedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IAzureBlobPatchDefinitionInternal)AzureBlob).ManagedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IAzureBlobPatchDefinitionInternal)AzureBlob).ManagedIdentity = value; } + Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IManagedIdentityPatchDefinition Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPatchPropertiesInternal.AzureBlobManagedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IAzureBlobPatchDefinitionInternal)AzureBlob).ManagedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IAzureBlobPatchDefinitionInternal)AzureBlob).ManagedIdentity = value ?? null /* model class */; } /// Internal Acessors for AzureBlobServicePrincipal - Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IServicePrincipalPatchDefinition Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPatchPropertiesInternal.AzureBlobServicePrincipal { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IAzureBlobPatchDefinitionInternal)AzureBlob).ServicePrincipal; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IAzureBlobPatchDefinitionInternal)AzureBlob).ServicePrincipal = value; } + Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IServicePrincipalPatchDefinition Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPatchPropertiesInternal.AzureBlobServicePrincipal { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IAzureBlobPatchDefinitionInternal)AzureBlob).ServicePrincipal; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IAzureBlobPatchDefinitionInternal)AzureBlob).ServicePrincipal = value ?? null /* model class */; } /// Internal Acessors for Bucket Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IBucketPatchDefinition Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPatchPropertiesInternal.Bucket { get => (this._bucket = this._bucket ?? new Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.BucketPatchDefinition()); set { {_bucket = value;} } } @@ -183,7 +183,7 @@ public partial class FluxConfigurationPatchProperties : Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IGitRepositoryPatchDefinition Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPatchPropertiesInternal.GitRepository { get => (this._gitRepository = this._gitRepository ?? new Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.GitRepositoryPatchDefinition()); set { {_gitRepository = value;} } } /// Internal Acessors for GitRepositoryRef - Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IRepositoryRefDefinition Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPatchPropertiesInternal.GitRepositoryRef { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IGitRepositoryPatchDefinitionInternal)GitRepository).RepositoryRef; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IGitRepositoryPatchDefinitionInternal)GitRepository).RepositoryRef = value; } + Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IRepositoryRefDefinition Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPatchPropertiesInternal.GitRepositoryRef { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IGitRepositoryPatchDefinitionInternal)GitRepository).RepositoryRef; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IGitRepositoryPatchDefinitionInternal)GitRepository).RepositoryRef = value ?? null /* model class */; } /// The git repository branch name to checkout. [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Origin(Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.PropertyOrigin.Inlined)] diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/api/Models/FluxConfigurationProperties.cs b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/api/Models/FluxConfigurationProperties.cs index aebb75aef30d..980475594771 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/api/Models/FluxConfigurationProperties.cs +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/api/Models/FluxConfigurationProperties.cs @@ -187,10 +187,10 @@ public partial class FluxConfigurationProperties : Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IAzureBlobDefinition Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal.AzureBlob { get => (this._azureBlob = this._azureBlob ?? new Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.AzureBlobDefinition()); set { {_azureBlob = value;} } } /// Internal Acessors for AzureBlobManagedIdentity - Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IManagedIdentityDefinition Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal.AzureBlobManagedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IAzureBlobDefinitionInternal)AzureBlob).ManagedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IAzureBlobDefinitionInternal)AzureBlob).ManagedIdentity = value; } + Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IManagedIdentityDefinition Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal.AzureBlobManagedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IAzureBlobDefinitionInternal)AzureBlob).ManagedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IAzureBlobDefinitionInternal)AzureBlob).ManagedIdentity = value ?? null /* model class */; } /// Internal Acessors for AzureBlobServicePrincipal - Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IServicePrincipalDefinition Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal.AzureBlobServicePrincipal { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IAzureBlobDefinitionInternal)AzureBlob).ServicePrincipal; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IAzureBlobDefinitionInternal)AzureBlob).ServicePrincipal = value; } + Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IServicePrincipalDefinition Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal.AzureBlobServicePrincipal { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IAzureBlobDefinitionInternal)AzureBlob).ServicePrincipal; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IAzureBlobDefinitionInternal)AzureBlob).ServicePrincipal = value ?? null /* model class */; } /// Internal Acessors for Bucket Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IBucketDefinition Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal.Bucket { get => (this._bucket = this._bucket ?? new Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.BucketDefinition()); set { {_bucket = value;} } } @@ -205,7 +205,7 @@ public partial class FluxConfigurationProperties : Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IGitRepositoryDefinition Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal.GitRepository { get => (this._gitRepository = this._gitRepository ?? new Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.GitRepositoryDefinition()); set { {_gitRepository = value;} } } /// Internal Acessors for GitRepositoryRef - Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IRepositoryRefDefinition Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal.GitRepositoryRef { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IGitRepositoryDefinitionInternal)GitRepository).RepositoryRef; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IGitRepositoryDefinitionInternal)GitRepository).RepositoryRef = value; } + Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IRepositoryRefDefinition Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal.GitRepositoryRef { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IGitRepositoryDefinitionInternal)GitRepository).RepositoryRef; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IGitRepositoryDefinitionInternal)GitRepository).RepositoryRef = value ?? null /* model class */; } /// Internal Acessors for ProvisioningState string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/api/Models/ObjectStatusDefinition.cs b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/api/Models/ObjectStatusDefinition.cs index a9231b7b2017..9f793150eae3 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/api/Models/ObjectStatusDefinition.cs +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/api/Models/ObjectStatusDefinition.cs @@ -84,7 +84,7 @@ public partial class ObjectStatusDefinition : Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IHelmReleasePropertiesDefinition Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IObjectStatusDefinitionInternal.HelmReleaseProperty { get => (this._helmReleaseProperty = this._helmReleaseProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.HelmReleasePropertiesDefinition()); set { {_helmReleaseProperty = value;} } } /// Internal Acessors for HelmReleasePropertyHelmChartRef - Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IObjectReferenceDefinition Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IObjectStatusDefinitionInternal.HelmReleasePropertyHelmChartRef { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IHelmReleasePropertiesDefinitionInternal)HelmReleaseProperty).HelmChartRef; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IHelmReleasePropertiesDefinitionInternal)HelmReleaseProperty).HelmChartRef = value; } + Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IObjectReferenceDefinition Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IObjectStatusDefinitionInternal.HelmReleasePropertyHelmChartRef { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IHelmReleasePropertiesDefinitionInternal)HelmReleaseProperty).HelmChartRef; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IHelmReleasePropertiesDefinitionInternal)HelmReleaseProperty).HelmChartRef = value ?? null /* model class */; } /// Backing field for property. private string _name; diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/api/Models/OperationStatusResult.cs b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/api/Models/OperationStatusResult.cs index 688e3374b772..b6fe63b209ab 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/api/Models/OperationStatusResult.cs +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/api/Models/OperationStatusResult.cs @@ -44,22 +44,22 @@ public partial class OperationStatusResult : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)Error).Message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IOperationStatusResultInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)Error).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IOperationStatusResultInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)Error).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IOperationStatusResultInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IOperationStatusResultInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)Error).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IOperationStatusResultInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)Error).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IOperationStatusResultInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)Error).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for Error Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IOperationStatusResultInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ErrorDetail()); set { {_error = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IOperationStatusResultInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IOperationStatusResultInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)Error).Message = value ?? null; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IOperationStatusResultInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)Error).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IOperationStatusResultInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IErrorDetailInternal)Error).Target = value ?? null; } /// Backing field for property. private string _name; diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/api/Models/ProxyResource.cs b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/api/Models/ProxyResource.cs index c61ece43a919..ac3bcd776287 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/api/Models/ProxyResource.cs +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/api/Models/ProxyResource.cs @@ -28,13 +28,13 @@ public partial class ProxyResource : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal)__resource).Id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Origin(Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.PropertyOrigin.Inherited)] diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/api/Models/SourceControlConfiguration.cs b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/api/Models/SourceControlConfiguration.cs index 2ca7055f0a4f..5b0265648f75 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/api/Models/SourceControlConfiguration.cs +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/api/Models/SourceControlConfiguration.cs @@ -67,61 +67,61 @@ public partial class SourceControlConfiguration : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal)__proxyResource).Id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// Internal Acessors for ComplianceStatus - Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IComplianceStatus Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationInternal.ComplianceStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationPropertiesInternal)Property).ComplianceStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationPropertiesInternal)Property).ComplianceStatus = value; } + Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IComplianceStatus Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationInternal.ComplianceStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationPropertiesInternal)Property).ComplianceStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationPropertiesInternal)Property).ComplianceStatus = value ?? null /* model class */; } /// Internal Acessors for ComplianceStatusComplianceState - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationInternal.ComplianceStatusComplianceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationPropertiesInternal)Property).ComplianceStatusComplianceState; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationPropertiesInternal)Property).ComplianceStatusComplianceState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationInternal.ComplianceStatusComplianceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationPropertiesInternal)Property).ComplianceStatusComplianceState; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationPropertiesInternal)Property).ComplianceStatusComplianceState = value ?? null; } /// Internal Acessors for ComplianceStatusLastConfigApplied - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationInternal.ComplianceStatusLastConfigApplied { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationPropertiesInternal)Property).ComplianceStatusLastConfigApplied; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationPropertiesInternal)Property).ComplianceStatusLastConfigApplied = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationInternal.ComplianceStatusLastConfigApplied { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationPropertiesInternal)Property).ComplianceStatusLastConfigApplied; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationPropertiesInternal)Property).ComplianceStatusLastConfigApplied = value ?? default(global::System.DateTime); } /// Internal Acessors for ComplianceStatusMessage - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationInternal.ComplianceStatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationPropertiesInternal)Property).ComplianceStatusMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationPropertiesInternal)Property).ComplianceStatusMessage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationInternal.ComplianceStatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationPropertiesInternal)Property).ComplianceStatusMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationPropertiesInternal)Property).ComplianceStatusMessage = value ?? null; } /// Internal Acessors for ComplianceStatusMessageLevel - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationInternal.ComplianceStatusMessageLevel { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationPropertiesInternal)Property).ComplianceStatusMessageLevel; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationPropertiesInternal)Property).ComplianceStatusMessageLevel = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationInternal.ComplianceStatusMessageLevel { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationPropertiesInternal)Property).ComplianceStatusMessageLevel; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationPropertiesInternal)Property).ComplianceStatusMessageLevel = value ?? null; } /// Internal Acessors for HelmOperatorProperty - Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IHelmOperatorProperties Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationInternal.HelmOperatorProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationPropertiesInternal)Property).HelmOperatorProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationPropertiesInternal)Property).HelmOperatorProperty = value; } + Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IHelmOperatorProperties Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationInternal.HelmOperatorProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationPropertiesInternal)Property).HelmOperatorProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationPropertiesInternal)Property).HelmOperatorProperty = value ?? null /* model class */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationProperties Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.SourceControlConfigurationProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for RepositoryPublicKey - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationInternal.RepositoryPublicKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationPropertiesInternal)Property).RepositoryPublicKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationPropertiesInternal)Property).RepositoryPublicKey = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationInternal.RepositoryPublicKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationPropertiesInternal)Property).RepositoryPublicKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationPropertiesInternal)Property).RepositoryPublicKey = value ?? null; } /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.SystemData()); set { {_systemData = value;} } } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).CreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).CreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).CreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).LastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).LastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).LastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Origin(Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.PropertyOrigin.Inherited)] diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/api/Models/SourceControlConfigurationProperties.cs b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/api/Models/SourceControlConfigurationProperties.cs index dc6ab2787081..31d481b4ea32 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/api/Models/SourceControlConfigurationProperties.cs +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/api/Models/SourceControlConfigurationProperties.cs @@ -69,16 +69,16 @@ public partial class SourceControlConfigurationProperties : Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IComplianceStatus Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationPropertiesInternal.ComplianceStatus { get => (this._complianceStatus = this._complianceStatus ?? new Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ComplianceStatus()); set { {_complianceStatus = value;} } } /// Internal Acessors for ComplianceStatusComplianceState - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationPropertiesInternal.ComplianceStatusComplianceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IComplianceStatusInternal)ComplianceStatus).ComplianceState; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IComplianceStatusInternal)ComplianceStatus).ComplianceState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationPropertiesInternal.ComplianceStatusComplianceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IComplianceStatusInternal)ComplianceStatus).ComplianceState; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IComplianceStatusInternal)ComplianceStatus).ComplianceState = value ?? null; } /// Internal Acessors for ComplianceStatusLastConfigApplied - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationPropertiesInternal.ComplianceStatusLastConfigApplied { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IComplianceStatusInternal)ComplianceStatus).LastConfigApplied; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IComplianceStatusInternal)ComplianceStatus).LastConfigApplied = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationPropertiesInternal.ComplianceStatusLastConfigApplied { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IComplianceStatusInternal)ComplianceStatus).LastConfigApplied; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IComplianceStatusInternal)ComplianceStatus).LastConfigApplied = value ?? default(global::System.DateTime); } /// Internal Acessors for ComplianceStatusMessage - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationPropertiesInternal.ComplianceStatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IComplianceStatusInternal)ComplianceStatus).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IComplianceStatusInternal)ComplianceStatus).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationPropertiesInternal.ComplianceStatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IComplianceStatusInternal)ComplianceStatus).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IComplianceStatusInternal)ComplianceStatus).Message = value ?? null; } /// Internal Acessors for ComplianceStatusMessageLevel - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationPropertiesInternal.ComplianceStatusMessageLevel { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IComplianceStatusInternal)ComplianceStatus).MessageLevel; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IComplianceStatusInternal)ComplianceStatus).MessageLevel = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationPropertiesInternal.ComplianceStatusMessageLevel { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IComplianceStatusInternal)ComplianceStatus).MessageLevel; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IComplianceStatusInternal)ComplianceStatus).MessageLevel = value ?? null; } /// Internal Acessors for HelmOperatorProperty Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IHelmOperatorProperties Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.ISourceControlConfigurationPropertiesInternal.HelmOperatorProperty { get => (this._helmOperatorProperty = this._helmOperatorProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.HelmOperatorProperties()); set { {_helmOperatorProperty = value;} } } diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/NewAzKubernetesConfigurationFlux_CreateExpanded.cs b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/NewAzKubernetesConfigurationFlux_CreateExpanded.cs index 5c9003e02d3b..fb3a96efe917 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/NewAzKubernetesConfigurationFlux_CreateExpanded.cs +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/NewAzKubernetesConfigurationFlux_CreateExpanded.cs @@ -42,18 +42,9 @@ public partial class NewAzKubernetesConfigurationFlux_CreateExpanded : global::S /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// The Flux Configuration object returned in Get & Put response. private Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfiguration _fluxConfigurationBody = new Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.FluxConfiguration(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.KubernetesConfiguration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.ParameterCategory.Runtime)] @@ -770,11 +761,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Cmdlets.NewAzK /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -1090,24 +1076,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfiguration var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/NewAzKubernetesConfigurationFlux_CreateViaJsonFilePath.cs b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/NewAzKubernetesConfigurationFlux_CreateViaJsonFilePath.cs index 9f0ba9d2c7ca..31bc086c3370 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/NewAzKubernetesConfigurationFlux_CreateViaJsonFilePath.cs +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/NewAzKubernetesConfigurationFlux_CreateViaJsonFilePath.cs @@ -43,17 +43,8 @@ public partial class NewAzKubernetesConfigurationFlux_CreateViaJsonFilePath : gl /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.KubernetesConfiguration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.ParameterCategory.Runtime)] @@ -318,11 +309,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Cmdlets.NewAzK /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -638,24 +624,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfiguration var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/NewAzKubernetesConfigurationFlux_CreateViaJsonString.cs b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/NewAzKubernetesConfigurationFlux_CreateViaJsonString.cs index 1721b0eb6eb6..11f9d0c013e6 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/NewAzKubernetesConfigurationFlux_CreateViaJsonString.cs +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/NewAzKubernetesConfigurationFlux_CreateViaJsonString.cs @@ -43,15 +43,6 @@ public partial class NewAzKubernetesConfigurationFlux_CreateViaJsonString : glob /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.KubernetesConfiguration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.ParameterCategory.Runtime)] @@ -316,11 +307,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Cmdlets.NewAzK /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -636,24 +622,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfiguration var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/NewAzKubernetesExtension_CreateExpanded.cs b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/NewAzKubernetesExtension_CreateExpanded.cs index 178459aa2535..0507eeb6ee68 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/NewAzKubernetesExtension_CreateExpanded.cs +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/NewAzKubernetesExtension_CreateExpanded.cs @@ -45,15 +45,6 @@ public partial class NewAzKubernetesExtension_CreateExpanded : global::System.Ma /// The Extension object. private Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtension _extensionBody = new Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Extension(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// The identity type. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The identity type.")] [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.ParameterCategory.Body)] @@ -490,11 +481,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Cmdlets.NewAzK /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -810,24 +796,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtension var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/NewAzKubernetesExtension_CreateViaJsonFilePath.cs b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/NewAzKubernetesExtension_CreateViaJsonFilePath.cs index d75aa557b419..b37c52b547f8 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/NewAzKubernetesExtension_CreateViaJsonFilePath.cs +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/NewAzKubernetesExtension_CreateViaJsonFilePath.cs @@ -43,17 +43,8 @@ public partial class NewAzKubernetesExtension_CreateViaJsonFilePath : global::Sy /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.KubernetesConfiguration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.ParameterCategory.Runtime)] @@ -318,11 +309,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Cmdlets.NewAzK /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -638,24 +624,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtension var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/NewAzKubernetesExtension_CreateViaJsonString.cs b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/NewAzKubernetesExtension_CreateViaJsonString.cs index 479e9f1623b1..f0848d5086f5 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/NewAzKubernetesExtension_CreateViaJsonString.cs +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/NewAzKubernetesExtension_CreateViaJsonString.cs @@ -43,15 +43,6 @@ public partial class NewAzKubernetesExtension_CreateViaJsonString : global::Syst /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.KubernetesConfiguration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.ParameterCategory.Runtime)] @@ -316,11 +307,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Cmdlets.NewAzK /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -636,24 +622,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtension var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/RemoveAzKubernetesConfigurationFlux_Delete.cs b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/RemoveAzKubernetesConfigurationFlux_Delete.cs index 9bc969e43368..c707404ba8c0 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/RemoveAzKubernetesConfigurationFlux_Delete.cs +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/RemoveAzKubernetesConfigurationFlux_Delete.cs @@ -44,15 +44,6 @@ public partial class RemoveAzKubernetesConfigurationFlux_Delete : global::System /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.KubernetesConfiguration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.ParameterCategory.Runtime)] @@ -333,11 +324,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Cmdlets.Remove /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -649,7 +635,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -673,7 +659,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/RemoveAzKubernetesConfigurationFlux_DeleteViaIdentity.cs b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/RemoveAzKubernetesConfigurationFlux_DeleteViaIdentity.cs index d370f36dca36..cd192fa9fe9e 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/RemoveAzKubernetesConfigurationFlux_DeleteViaIdentity.cs +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/RemoveAzKubernetesConfigurationFlux_DeleteViaIdentity.cs @@ -44,15 +44,6 @@ public partial class RemoveAzKubernetesConfigurationFlux_DeleteViaIdentity : glo /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.KubernetesConfiguration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.ParameterCategory.Runtime)] @@ -237,11 +228,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Cmdlets.Remove /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -585,7 +571,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -609,7 +595,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/RemoveAzKubernetesConfiguration_Delete.cs b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/RemoveAzKubernetesConfiguration_Delete.cs index 499ff85cd297..5b2d0ce1bdf8 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/RemoveAzKubernetesConfiguration_Delete.cs +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/RemoveAzKubernetesConfiguration_Delete.cs @@ -45,15 +45,6 @@ public partial class RemoveAzKubernetesConfiguration_Delete : global::System.Man /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.KubernetesConfiguration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.ParameterCategory.Runtime)] @@ -319,11 +310,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Cmdlets.Remove /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -635,7 +621,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -659,7 +645,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/RemoveAzKubernetesConfiguration_DeleteViaIdentity.cs b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/RemoveAzKubernetesConfiguration_DeleteViaIdentity.cs index dbad064daf6e..c9cda79c0ce1 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/RemoveAzKubernetesConfiguration_DeleteViaIdentity.cs +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/RemoveAzKubernetesConfiguration_DeleteViaIdentity.cs @@ -45,15 +45,6 @@ public partial class RemoveAzKubernetesConfiguration_DeleteViaIdentity : global: /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.KubernetesConfiguration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.ParameterCategory.Runtime)] @@ -223,11 +214,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Cmdlets.Remove /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -571,7 +557,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -595,7 +581,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/RemoveAzKubernetesExtension_Delete.cs b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/RemoveAzKubernetesExtension_Delete.cs index 6551fd4c4a7c..8d875a0b3e56 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/RemoveAzKubernetesExtension_Delete.cs +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/RemoveAzKubernetesExtension_Delete.cs @@ -44,15 +44,6 @@ public partial class RemoveAzKubernetesExtension_Delete : global::System.Managem /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.KubernetesConfiguration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.ParameterCategory.Runtime)] @@ -333,11 +324,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Cmdlets.Remove /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -649,7 +635,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -673,7 +659,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/RemoveAzKubernetesExtension_DeleteViaIdentity.cs b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/RemoveAzKubernetesExtension_DeleteViaIdentity.cs index 555ecc6b7b05..bd1985ed0afd 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/RemoveAzKubernetesExtension_DeleteViaIdentity.cs +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/RemoveAzKubernetesExtension_DeleteViaIdentity.cs @@ -44,15 +44,6 @@ public partial class RemoveAzKubernetesExtension_DeleteViaIdentity : global::Sys /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.KubernetesConfiguration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.ParameterCategory.Runtime)] @@ -237,11 +228,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Cmdlets.Remove /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -585,7 +571,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -609,7 +595,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/UpdateAzKubernetesConfigurationFlux_UpdateExpanded.cs b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/UpdateAzKubernetesConfigurationFlux_UpdateExpanded.cs index dec8611c369f..2fd83ccc976c 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/UpdateAzKubernetesConfigurationFlux_UpdateExpanded.cs +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/UpdateAzKubernetesConfigurationFlux_UpdateExpanded.cs @@ -42,18 +42,9 @@ public partial class UpdateAzKubernetesConfigurationFlux_UpdateExpanded : global /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// The Flux Configuration Patch Request object. private Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPatch _fluxConfigurationPatchBody = new Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.FluxConfigurationPatch(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.KubernetesConfiguration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.ParameterCategory.Runtime)] @@ -744,11 +735,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Cmdlets.Update /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -1064,24 +1050,7 @@ public UpdateAzKubernetesConfigurationFlux_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfiguration var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/UpdateAzKubernetesConfigurationFlux_UpdateViaIdentityExpanded.cs b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/UpdateAzKubernetesConfigurationFlux_UpdateViaIdentityExpanded.cs index bf6a01275fec..4d5f01cf24ad 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/UpdateAzKubernetesConfigurationFlux_UpdateViaIdentityExpanded.cs +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/UpdateAzKubernetesConfigurationFlux_UpdateViaIdentityExpanded.cs @@ -42,18 +42,9 @@ public partial class UpdateAzKubernetesConfigurationFlux_UpdateViaIdentityExpand /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// The Flux Configuration Patch Request object. private Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfigurationPatch _fluxConfigurationPatchBody = new Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.FluxConfigurationPatch(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.KubernetesConfiguration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.ParameterCategory.Runtime)] @@ -650,11 +641,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Cmdlets.Update /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -1003,24 +989,7 @@ public UpdateAzKubernetesConfigurationFlux_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfiguration var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/UpdateAzKubernetesConfigurationFlux_UpdateViaJsonFilePath.cs b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/UpdateAzKubernetesConfigurationFlux_UpdateViaJsonFilePath.cs index 274a8560967e..d97e9c497fda 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/UpdateAzKubernetesConfigurationFlux_UpdateViaJsonFilePath.cs +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/UpdateAzKubernetesConfigurationFlux_UpdateViaJsonFilePath.cs @@ -43,17 +43,8 @@ public partial class UpdateAzKubernetesConfigurationFlux_UpdateViaJsonFilePath : /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.KubernetesConfiguration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.ParameterCategory.Runtime)] @@ -320,11 +311,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Cmdlets.Update /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -640,24 +626,7 @@ public UpdateAzKubernetesConfigurationFlux_UpdateViaJsonFilePath() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfiguration var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/UpdateAzKubernetesConfigurationFlux_UpdateViaJsonString.cs b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/UpdateAzKubernetesConfigurationFlux_UpdateViaJsonString.cs index bf11e6b3e904..8f1c5f0a1556 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/UpdateAzKubernetesConfigurationFlux_UpdateViaJsonString.cs +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/UpdateAzKubernetesConfigurationFlux_UpdateViaJsonString.cs @@ -43,15 +43,6 @@ public partial class UpdateAzKubernetesConfigurationFlux_UpdateViaJsonString : g /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.KubernetesConfiguration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.ParameterCategory.Runtime)] @@ -316,11 +307,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Cmdlets.Update /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -636,24 +622,7 @@ public UpdateAzKubernetesConfigurationFlux_UpdateViaJsonString() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IFluxConfiguration var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/UpdateAzKubernetesExtension_UpdateExpanded.cs b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/UpdateAzKubernetesExtension_UpdateExpanded.cs index 4e9b158ee9f9..5ebba7611add 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/UpdateAzKubernetesExtension_UpdateExpanded.cs +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/UpdateAzKubernetesExtension_UpdateExpanded.cs @@ -42,18 +42,9 @@ public partial class UpdateAzKubernetesExtension_UpdateExpanded : global::System /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// The Extension Patch Request object. private Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IPatchExtension _patchExtensionBody = new Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.PatchExtension(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.KubernetesConfiguration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.ParameterCategory.Runtime)] @@ -372,11 +363,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Cmdlets.Update /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -692,24 +678,7 @@ public UpdateAzKubernetesExtension_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtension var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/UpdateAzKubernetesExtension_UpdateViaIdentityExpanded.cs b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/UpdateAzKubernetesExtension_UpdateViaIdentityExpanded.cs index dfcf6cb0136b..c30acf630b48 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/UpdateAzKubernetesExtension_UpdateViaIdentityExpanded.cs +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/UpdateAzKubernetesExtension_UpdateViaIdentityExpanded.cs @@ -42,18 +42,9 @@ public partial class UpdateAzKubernetesExtension_UpdateViaIdentityExpanded : glo /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// The Extension Patch Request object. private Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IPatchExtension _patchExtensionBody = new Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.PatchExtension(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.KubernetesConfiguration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.ParameterCategory.Runtime)] @@ -276,11 +267,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Cmdlets.Update /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -628,24 +614,7 @@ public UpdateAzKubernetesExtension_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtension var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/UpdateAzKubernetesExtension_UpdateViaJsonFilePath.cs b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/UpdateAzKubernetesExtension_UpdateViaJsonFilePath.cs index ec225e99bc1d..e22ab6c588da 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/UpdateAzKubernetesExtension_UpdateViaJsonFilePath.cs +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/UpdateAzKubernetesExtension_UpdateViaJsonFilePath.cs @@ -43,17 +43,8 @@ public partial class UpdateAzKubernetesExtension_UpdateViaJsonFilePath : global: /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.KubernetesConfiguration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.ParameterCategory.Runtime)] @@ -318,11 +309,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Cmdlets.Update /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -638,24 +624,7 @@ public UpdateAzKubernetesExtension_UpdateViaJsonFilePath() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtension var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/UpdateAzKubernetesExtension_UpdateViaJsonString.cs b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/UpdateAzKubernetesExtension_UpdateViaJsonString.cs index 00a1eb2e7446..decea5ed6e77 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/UpdateAzKubernetesExtension_UpdateViaJsonString.cs +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/cmdlets/UpdateAzKubernetesExtension_UpdateViaJsonString.cs @@ -43,15 +43,6 @@ public partial class UpdateAzKubernetesExtension_UpdateViaJsonString : global::S /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.KubernetesConfiguration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.ParameterCategory.Runtime)] @@ -316,11 +307,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Cmdlets.Update /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -636,24 +622,7 @@ public UpdateAzKubernetesExtension_UpdateViaJsonString() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IExtension var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs index bcd8ebbc26e5..845988149204 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs @@ -36,14 +36,23 @@ internal class PsHelpInfo public object Role { get; } public string NonTerminatingErrors { get; } + public static string CapitalizeFirstLetter(string text) + { + if (string.IsNullOrEmpty(text)) + return text; + + return char.ToUpper(text[0]) + text.Substring(1); + } + public PsHelpInfo(PSObject helpObject = null) { helpObject = helpObject ?? new PSObject(); CmdletName = helpObject.GetProperty("Name").NullIfEmpty() ?? helpObject.GetNestedProperty("details", "name"); ModuleName = helpObject.GetProperty("ModuleName"); - Synopsis = helpObject.GetProperty("Synopsis"); + Synopsis = CapitalizeFirstLetter(helpObject.GetProperty("Synopsis")); Description = helpObject.GetProperty("description").EmptyIfNull().ToDescriptionText().NullIfEmpty() ?? helpObject.GetNestedProperty("details", "description").EmptyIfNull().ToDescriptionText(); + Description = CapitalizeFirstLetter(Description); AlertText = helpObject.GetNestedProperty("alertSet", "alert").EmptyIfNull().ToDescriptionText(); Category = helpObject.GetProperty("Category"); HasCommonParameters = helpObject.GetProperty("CommonParameters").ToNullableBool(); diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index aab839852a89..d63d54714c50 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -218,13 +218,12 @@ public string GetProcessCustomAttributesAtRuntime() private string GetLoginVerification() { - if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) + if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) { return $@" {Indent}{Indent}$context = Get-AzContext {Indent}{Indent}if (-not $context -and -not $testPlayback) {{ -{Indent}{Indent}{Indent}Write-Error ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" -{Indent}{Indent}{Indent}exit +{Indent}{Indent}{Indent}throw ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" {Indent}{Indent}}} "; } diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs index d7b184543164..4eb28e8cf7fa 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs @@ -392,6 +392,7 @@ public CommentInfo(VariantGroup variantGroup) var helpInfo = variantGroup.HelpInfo; Description = variantGroup.Variants.SelectMany(v => v.Attributes).OfType().FirstOrDefault()?.Description.NullIfEmpty() ?? helpInfo.Description.EmptyIfNull(); + Description = PsHelpInfo.CapitalizeFirstLetter(Description); // If there is no Synopsis, PowerShell may put in the Syntax string as the Synopsis. This seems unintended, so we remove the Synopsis in this situation. var synopsis = helpInfo.Synopsis.EmptyIfNull().Trim().StartsWith(variantGroup.CmdletName) ? String.Empty : helpInfo.Synopsis; Synopsis = synopsis.NullIfEmpty() ?? Description; diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/runtime/Context.cs b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/runtime/Context.cs index 557dc3adc5e5..ae36a1a6b0eb 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/runtime/Context.cs +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime /// The IContext Interface defines the communication mechanism for input customization. /// /// - /// In the context, we will have client, pipeline, PSBoundParamters, default EventListener, Cancellation. + /// In the context, we will have client, pipeline, PSBoundParameters, default EventListener, Cancellation. /// public interface IContext { diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/runtime/MessageAttribute.cs b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/runtime/MessageAttribute.cs index aff692193fd2..de46458fc7c5 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/runtime/MessageAttribute.cs +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/runtime/MessageAttribute.cs @@ -16,9 +16,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime public class GenericBreakingChangeAttribute : Attribute { private string _message; - //A dexcription of what the change is about, non mandatory + //A description of what the change is about, non mandatory public string ChangeDescription { get; set; } = null; + //Name of the module that is being deprecated + public string moduleName { get; set; } = String.IsNullOrEmpty(@"") ? @"Az.KubernetesConfiguration" : @""; + //The version the change is effective from, non mandatory public string DeprecateByVersion { get; } public string DeprecateByAzVersion { get; } @@ -82,7 +85,7 @@ public void PrintCustomAttributeInfo(Action writeOutput) } writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByAzVersion, this.DeprecateByAzVersion)); - writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.DeprecateByVersion)); + writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.moduleName, this.DeprecateByVersion)); if (OldWay != null && NewWay != null) { @@ -191,11 +194,11 @@ public PreviewMessageAttribute(string message, string estimatedDateOfGa) : this( this.IsEstimatedGaDateSet = true; } } - + public void PrintCustomAttributeInfo(Action writeOutput) { writeOutput(this._message); - + if (IsEstimatedGaDateSet) { writeOutput(string.Format(Resources.PreviewCmdletETAMessage, this.EstimatedGaDate.ToShortDateString())); diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/runtime/Properties/Resources.resx b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/runtime/Properties/Resources.resx index a08a2e50172b..4ef90b70573d 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/generated/runtime/Properties/Resources.resx +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.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 version : '{0}' +- The change is expected to take effect in '{0}' from version : '{1}' ```powershell diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/internal/New-AzKubernetesConfiguration.ps1 b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/internal/New-AzKubernetesConfiguration.ps1 index 2b949ccf312e..ffb937d62238 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/internal/New-AzKubernetesConfiguration.ps1 +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/internal/New-AzKubernetesConfiguration.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a new Kubernetes Source Control Configuration. +Create a new Kubernetes Source Control Configuration. .Description -create a new Kubernetes Source Control Configuration. +Create a new Kubernetes Source Control Configuration. .Example New-AzConnectedKubernetes -ClusterName azpstest_cluster_arc -ResourceGroupName azps_test_group -Location eastus -KubeConfig $HOME\.kube\config -KubeContext azps_aks_t01 New-AzKubernetesConfiguration -ResourceGroupName azps_test_group -ClusterName azpstest_cluster_arc -Name azpstestk8s -RepositoryUrl http://github.com/xxxx -ClusterType ConnectedClusters diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/internal/New-AzKubernetesConfigurationFlux.ps1 b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/internal/New-AzKubernetesConfigurationFlux.ps1 index 391274e9f4af..713c8d37de88 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/internal/New-AzKubernetesConfigurationFlux.ps1 +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/internal/New-AzKubernetesConfigurationFlux.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a new Kubernetes Flux Configuration. +Create a new Kubernetes Flux Configuration. .Description -create a new Kubernetes Flux Configuration. +Create a new Kubernetes Flux Configuration. .Example $kustomizations = @{ infra=@{ diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/internal/New-AzKubernetesExtension.ps1 b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/internal/New-AzKubernetesExtension.ps1 index 4fb948ccf3f5..cfca5f705f8d 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/internal/New-AzKubernetesExtension.ps1 +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/internal/New-AzKubernetesExtension.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a new Kubernetes Cluster Extension. +Create a new Kubernetes Cluster Extension. .Description -create a new Kubernetes Cluster Extension. +Create a new Kubernetes Cluster Extension. .Example New-AzKubernetesExtension -ClusterName azpstest_cluster_arc -ClusterType ConnectedClusters -Name azpstest-extension -ResourceGroupName azps_test_group -ExtensionType azuremonitor-containers .Example diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/internal/ProxyCmdletDefinitions.ps1 b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/internal/ProxyCmdletDefinitions.ps1 index 3f3278aa0d67..c6d68b2751c6 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/internal/ProxyCmdletDefinitions.ps1 +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/internal/ProxyCmdletDefinitions.ps1 @@ -937,9 +937,9 @@ end { <# .Synopsis -create a new Kubernetes Flux Configuration. +Create a new Kubernetes Flux Configuration. .Description -create a new Kubernetes Flux Configuration. +Create a new Kubernetes Flux Configuration. .Example $kustomizations = @{ infra=@{ @@ -1377,9 +1377,9 @@ end { <# .Synopsis -create a new Kubernetes Source Control Configuration. +Create a new Kubernetes Source Control Configuration. .Description -create a new Kubernetes Source Control Configuration. +Create a new Kubernetes Source Control Configuration. .Example New-AzConnectedKubernetes -ClusterName azpstest_cluster_arc -ResourceGroupName azps_test_group -Location eastus -KubeConfig $HOME\.kube\config -KubeContext azps_aks_t01 New-AzKubernetesConfiguration -ResourceGroupName azps_test_group -ClusterName azpstest_cluster_arc -Name azpstestk8s -RepositoryUrl http://github.com/xxxx -ClusterType ConnectedClusters @@ -1629,9 +1629,9 @@ end { <# .Synopsis -create a new Kubernetes Cluster Extension. +Create a new Kubernetes Cluster Extension. .Description -create a new Kubernetes Cluster Extension. +Create a new Kubernetes Cluster Extension. .Example New-AzKubernetesExtension -ClusterName azpstest_cluster_arc -ClusterType ConnectedClusters -Name azpstest-extension -ResourceGroupName azps_test_group -ExtensionType azuremonitor-containers .Example @@ -2563,9 +2563,9 @@ end { <# .Synopsis -update an existing Kubernetes Flux Configuration. +Update an existing Kubernetes Flux Configuration. .Description -update an existing Kubernetes Flux Configuration. +Update an existing Kubernetes Flux Configuration. .Example Update-AzKubernetesConfigurationFlux -ClusterName azpstest_cluster_arc -ClusterType ConnectedClusters -Name azpstestflux-k8s -ResourceGroupName azps_test_group -GitRepositoryUrl https://github.com/fluxcd/flux2-kustomize-helm-example -RepositoryRefBranch main -SourceKind 'GitRepository' -GitRepositorySyncIntervalInSecond 600 -GitRepositoryTimeoutInSecond 600 -Suspend:$false .Example @@ -3051,9 +3051,9 @@ end { <# .Synopsis -update a new Kubernetes Source Control Configuration. +Update a new Kubernetes Source Control Configuration. .Description -update a new Kubernetes Source Control Configuration. +Update a new Kubernetes Source Control Configuration. .Example {{ Add code here }} .Example diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/internal/Update-AzKubernetesConfiguration.ps1 b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/internal/Update-AzKubernetesConfiguration.ps1 index 3a851ae97d23..2b465b1919d4 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/internal/Update-AzKubernetesConfiguration.ps1 +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/internal/Update-AzKubernetesConfiguration.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update a new Kubernetes Source Control Configuration. +Update a new Kubernetes Source Control Configuration. .Description -update a new Kubernetes Source Control Configuration. +Update a new Kubernetes Source Control Configuration. .Example {{ Add code here }} .Example diff --git a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/internal/Update-AzKubernetesConfigurationFlux.ps1 b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/internal/Update-AzKubernetesConfigurationFlux.ps1 index db39de0128f9..8e8d8ba699c0 100644 --- a/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/internal/Update-AzKubernetesConfigurationFlux.ps1 +++ b/generated/KubernetesConfiguration/KubernetesConfiguration.Autorest/internal/Update-AzKubernetesConfigurationFlux.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update an existing Kubernetes Flux Configuration. +Update an existing Kubernetes Flux Configuration. .Description -update an existing Kubernetes Flux Configuration. +Update an existing Kubernetes Flux Configuration. .Example Update-AzKubernetesConfigurationFlux -ClusterName azpstest_cluster_arc -ClusterType ConnectedClusters -Name azpstestflux-k8s -ResourceGroupName azps_test_group -GitRepositoryUrl https://github.com/fluxcd/flux2-kustomize-helm-example -RepositoryRefBranch main -SourceKind 'GitRepository' -GitRepositorySyncIntervalInSecond 600 -GitRepositoryTimeoutInSecond 600 -Suspend:$false .Example diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Disable-AzKubernetesRuntimeLoadBalancer.ps1 b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Disable-AzKubernetesRuntimeLoadBalancer.ps1 index 498b4c2f37ef..05221d64b70f 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Disable-AzKubernetesRuntimeLoadBalancer.ps1 +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Disable-AzKubernetesRuntimeLoadBalancer.ps1 @@ -95,6 +95,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -122,6 +130,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Disable-AzKubernetesRuntimeStorageClass.ps1 b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Disable-AzKubernetesRuntimeStorageClass.ps1 index de239efc0979..1962ccd5fb4c 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Disable-AzKubernetesRuntimeStorageClass.ps1 +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Disable-AzKubernetesRuntimeStorageClass.ps1 @@ -95,6 +95,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -122,6 +130,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Enable-AzKubernetesRuntimeLoadBalancer.ps1 b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Enable-AzKubernetesRuntimeLoadBalancer.ps1 index 40b8c58ec457..5f940b2bfffc 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Enable-AzKubernetesRuntimeLoadBalancer.ps1 +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Enable-AzKubernetesRuntimeLoadBalancer.ps1 @@ -101,6 +101,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -128,6 +136,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Enable-AzKubernetesRuntimeStorageClass.ps1 b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Enable-AzKubernetesRuntimeStorageClass.ps1 index 6ecc11eebd51..ac07cea7d366 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Enable-AzKubernetesRuntimeStorageClass.ps1 +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Enable-AzKubernetesRuntimeStorageClass.ps1 @@ -103,6 +103,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -130,6 +138,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Get-AzKubernetesRuntimeBgpPeer.ps1 b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Get-AzKubernetesRuntimeBgpPeer.ps1 index 710d8d6bbcc5..05bf41e9a489 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Get-AzKubernetesRuntimeBgpPeer.ps1 +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Get-AzKubernetesRuntimeBgpPeer.ps1 @@ -125,6 +125,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -154,6 +162,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Get-AzKubernetesRuntimeLoadBalancer.ps1 b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Get-AzKubernetesRuntimeLoadBalancer.ps1 index 57b6c87aa0a8..6a8d0db4f644 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Get-AzKubernetesRuntimeLoadBalancer.ps1 +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Get-AzKubernetesRuntimeLoadBalancer.ps1 @@ -125,6 +125,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -154,6 +162,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Get-AzKubernetesRuntimeService.ps1 b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Get-AzKubernetesRuntimeService.ps1 index 55c2e3fd4bd0..0afd9e66b2c0 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Get-AzKubernetesRuntimeService.ps1 +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Get-AzKubernetesRuntimeService.ps1 @@ -125,6 +125,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -154,6 +162,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Get-AzKubernetesRuntimeStorageClass.ps1 b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Get-AzKubernetesRuntimeStorageClass.ps1 index 81466f8c5be7..bb9496954777 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Get-AzKubernetesRuntimeStorageClass.ps1 +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Get-AzKubernetesRuntimeStorageClass.ps1 @@ -125,6 +125,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -154,6 +162,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/New-AzKubernetesRuntimeBgpPeer.ps1 b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/New-AzKubernetesRuntimeBgpPeer.ps1 index bf93df243994..faaaa8db2f73 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/New-AzKubernetesRuntimeBgpPeer.ps1 +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/New-AzKubernetesRuntimeBgpPeer.ps1 @@ -144,6 +144,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -173,6 +181,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/New-AzKubernetesRuntimeBlobStorageClassTypePropertiesObject.ps1 b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/New-AzKubernetesRuntimeBlobStorageClassTypePropertiesObject.ps1 index 2756a297dc31..5dc230e62e60 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/New-AzKubernetesRuntimeBlobStorageClassTypePropertiesObject.ps1 +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/New-AzKubernetesRuntimeBlobStorageClassTypePropertiesObject.ps1 @@ -54,6 +54,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -81,6 +84,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/New-AzKubernetesRuntimeLoadBalancer.ps1 b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/New-AzKubernetesRuntimeLoadBalancer.ps1 index 964ef7ced274..ea9f134501b6 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/New-AzKubernetesRuntimeLoadBalancer.ps1 +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/New-AzKubernetesRuntimeLoadBalancer.ps1 @@ -160,6 +160,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -189,6 +197,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/New-AzKubernetesRuntimeNativeStorageClassTypePropertiesObject.ps1 b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/New-AzKubernetesRuntimeNativeStorageClassTypePropertiesObject.ps1 index 137e658e1e73..512234321c2d 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/New-AzKubernetesRuntimeNativeStorageClassTypePropertiesObject.ps1 +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/New-AzKubernetesRuntimeNativeStorageClassTypePropertiesObject.ps1 @@ -40,6 +40,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -67,6 +70,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/New-AzKubernetesRuntimeNfsStorageClassTypePropertiesObject.ps1 b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/New-AzKubernetesRuntimeNfsStorageClassTypePropertiesObject.ps1 index e609ed265a60..cc55d5f8ba51 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/New-AzKubernetesRuntimeNfsStorageClassTypePropertiesObject.ps1 +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/New-AzKubernetesRuntimeNfsStorageClassTypePropertiesObject.ps1 @@ -80,6 +80,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -107,6 +110,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/New-AzKubernetesRuntimeRwxStorageClassTypePropertiesObject.ps1 b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/New-AzKubernetesRuntimeRwxStorageClassTypePropertiesObject.ps1 index b71a4ad50d6b..b8ca16d19f07 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/New-AzKubernetesRuntimeRwxStorageClassTypePropertiesObject.ps1 +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/New-AzKubernetesRuntimeRwxStorageClassTypePropertiesObject.ps1 @@ -47,6 +47,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -74,6 +77,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/New-AzKubernetesRuntimeService.ps1 b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/New-AzKubernetesRuntimeService.ps1 index e160529742db..599e608c9f95 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/New-AzKubernetesRuntimeService.ps1 +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/New-AzKubernetesRuntimeService.ps1 @@ -114,6 +114,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -143,6 +151,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/New-AzKubernetesRuntimeSmbStorageClassTypePropertiesObject.ps1 b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/New-AzKubernetesRuntimeSmbStorageClassTypePropertiesObject.ps1 index 43561d164cf3..84e81c6151b9 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/New-AzKubernetesRuntimeSmbStorageClassTypePropertiesObject.ps1 +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/New-AzKubernetesRuntimeSmbStorageClassTypePropertiesObject.ps1 @@ -76,6 +76,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -103,6 +106,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/New-AzKubernetesRuntimeStorageClass.ps1 b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/New-AzKubernetesRuntimeStorageClass.ps1 index 1bfbab589ead..6fbec7770c71 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/New-AzKubernetesRuntimeStorageClass.ps1 +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/New-AzKubernetesRuntimeStorageClass.ps1 @@ -219,6 +219,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -248,6 +256,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/ProxyCmdletDefinitions.ps1 index 65c8e06cc1e4..ac3e2109f9eb 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -125,6 +125,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -154,6 +162,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -308,6 +319,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -337,6 +356,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -491,6 +513,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -520,6 +550,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -674,6 +707,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -703,6 +744,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -876,6 +920,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -905,6 +957,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -1094,6 +1149,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -1123,6 +1186,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -1266,6 +1332,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -1295,6 +1369,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -1543,6 +1620,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -1572,6 +1657,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -1729,6 +1817,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -1757,6 +1853,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -1914,6 +2013,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -1942,6 +2049,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -2099,6 +2209,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -2127,6 +2245,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -2297,6 +2418,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -2325,6 +2454,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -2506,6 +2638,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -2534,6 +2674,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -2727,6 +2870,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -2755,6 +2906,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -2906,6 +3060,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -2934,6 +3096,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -3275,6 +3440,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -3305,6 +3478,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -3429,6 +3605,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -3456,6 +3640,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -3580,6 +3767,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -3607,6 +3802,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -3737,6 +3935,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -3764,6 +3970,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -3896,6 +4105,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -3923,6 +4140,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -4006,6 +4226,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -4033,6 +4256,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -4102,6 +4328,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -4129,6 +4358,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -4238,6 +4470,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -4265,6 +4500,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -4341,6 +4579,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -4368,6 +4609,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -4473,6 +4717,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -4500,6 +4747,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Remove-AzKubernetesRuntimeBgpPeer.ps1 b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Remove-AzKubernetesRuntimeBgpPeer.ps1 index 914a4810a34a..4a7aa29c6865 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Remove-AzKubernetesRuntimeBgpPeer.ps1 +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Remove-AzKubernetesRuntimeBgpPeer.ps1 @@ -128,6 +128,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -156,6 +164,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Remove-AzKubernetesRuntimeLoadBalancer.ps1 b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Remove-AzKubernetesRuntimeLoadBalancer.ps1 index a26e61bec4df..972a90977d39 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Remove-AzKubernetesRuntimeLoadBalancer.ps1 +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Remove-AzKubernetesRuntimeLoadBalancer.ps1 @@ -128,6 +128,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -156,6 +164,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Remove-AzKubernetesRuntimeService.ps1 b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Remove-AzKubernetesRuntimeService.ps1 index 8771d57b5b98..e3a01089604f 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Remove-AzKubernetesRuntimeService.ps1 +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Remove-AzKubernetesRuntimeService.ps1 @@ -128,6 +128,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -156,6 +164,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Remove-AzKubernetesRuntimeStorageClass.ps1 b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Remove-AzKubernetesRuntimeStorageClass.ps1 index 1cba5aa44148..f3295633de0b 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Remove-AzKubernetesRuntimeStorageClass.ps1 +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Remove-AzKubernetesRuntimeStorageClass.ps1 @@ -141,6 +141,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -169,6 +177,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Update-AzKubernetesRuntimeBgpPeer.ps1 b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Update-AzKubernetesRuntimeBgpPeer.ps1 index f32fa562893c..7c2ffdcc661e 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Update-AzKubernetesRuntimeBgpPeer.ps1 +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Update-AzKubernetesRuntimeBgpPeer.ps1 @@ -152,6 +152,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -180,6 +188,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Update-AzKubernetesRuntimeLoadBalancer.ps1 b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Update-AzKubernetesRuntimeLoadBalancer.ps1 index 687b2774e6bb..a2dfb6e98e96 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Update-AzKubernetesRuntimeLoadBalancer.ps1 +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Update-AzKubernetesRuntimeLoadBalancer.ps1 @@ -164,6 +164,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -192,6 +200,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Update-AzKubernetesRuntimeService.ps1 b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Update-AzKubernetesRuntimeService.ps1 index c0c187de86a9..fe09ca64be86 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Update-AzKubernetesRuntimeService.ps1 +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Update-AzKubernetesRuntimeService.ps1 @@ -122,6 +122,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -150,6 +158,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Update-AzKubernetesRuntimeStorageClass.ps1 b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Update-AzKubernetesRuntimeStorageClass.ps1 index 0f88376809d8..4424ebb75f55 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Update-AzKubernetesRuntimeStorageClass.ps1 +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/exports/Update-AzKubernetesRuntimeStorageClass.ps1 @@ -312,6 +312,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -342,6 +350,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/api/KubernetesRuntime.cs b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/api/KubernetesRuntime.cs index dd84bd5face7..5d67996696cb 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/api/KubernetesRuntime.cs +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/api/KubernetesRuntime.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime public partial class KubernetesRuntime { - /// Update a BgpPeer + /// update a BgpPeer /// The fully qualified Azure Resource manager identifier of the resource. /// The name of the BgpPeer /// Resource create parameters. @@ -59,7 +59,7 @@ public partial class KubernetesRuntime } } - /// Update a BgpPeer + /// update a BgpPeer /// /// Resource create parameters. /// a delegate that is called when the remote service returns 200 (OK). @@ -115,7 +115,7 @@ public partial class KubernetesRuntime } } - /// Update a BgpPeer + /// update a BgpPeer /// /// Resource create parameters. /// an instance that will receive events. @@ -169,7 +169,7 @@ public partial class KubernetesRuntime } } - /// Update a BgpPeer + /// update a BgpPeer /// The fully qualified Azure Resource manager identifier of the resource. /// The name of the BgpPeer /// Json string supplied to the BgpPeersCreateOrUpdate operation @@ -214,7 +214,7 @@ public partial class KubernetesRuntime } } - /// Update a BgpPeer + /// update a BgpPeer /// The fully qualified Azure Resource manager identifier of the resource. /// The name of the BgpPeer /// Json string supplied to the BgpPeersCreateOrUpdate operation @@ -257,7 +257,7 @@ public partial class KubernetesRuntime } } - /// Update a BgpPeer + /// update a BgpPeer /// The fully qualified Azure Resource manager identifier of the resource. /// The name of the BgpPeer /// Resource create parameters. @@ -316,13 +316,13 @@ public partial class KubernetesRuntime global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -470,13 +470,13 @@ public partial class KubernetesRuntime global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -1388,7 +1388,7 @@ public partial class KubernetesRuntime } } - /// Update a LoadBalancer + /// update a LoadBalancer /// The fully qualified Azure Resource manager identifier of the resource. /// The name of the LoadBalancer /// Resource create parameters. @@ -1434,7 +1434,7 @@ public partial class KubernetesRuntime } } - /// Update a LoadBalancer + /// update a LoadBalancer /// /// Resource create parameters. /// a delegate that is called when the remote service returns 200 (OK). @@ -1490,7 +1490,7 @@ public partial class KubernetesRuntime } } - /// Update a LoadBalancer + /// update a LoadBalancer /// /// Resource create parameters. /// an instance that will receive events. @@ -1544,7 +1544,7 @@ public partial class KubernetesRuntime } } - /// Update a LoadBalancer + /// update a LoadBalancer /// The fully qualified Azure Resource manager identifier of the resource. /// The name of the LoadBalancer /// Json string supplied to the LoadBalancersCreateOrUpdate operation @@ -1589,7 +1589,7 @@ public partial class KubernetesRuntime } } - /// Update a LoadBalancer + /// update a LoadBalancer /// The fully qualified Azure Resource manager identifier of the resource. /// The name of the LoadBalancer /// Json string supplied to the LoadBalancersCreateOrUpdate operation @@ -1632,7 +1632,7 @@ public partial class KubernetesRuntime } } - /// Update a LoadBalancer + /// update a LoadBalancer /// The fully qualified Azure Resource manager identifier of the resource. /// The name of the LoadBalancer /// Resource create parameters. @@ -1693,13 +1693,13 @@ public partial class KubernetesRuntime global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -1847,13 +1847,13 @@ public partial class KubernetesRuntime global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -3047,7 +3047,7 @@ public partial class KubernetesRuntime } } - /// Update a ServiceResource + /// update a ServiceResource /// The fully qualified Azure Resource manager identifier of the resource. /// The name of the the service /// Resource create parameters. @@ -3094,7 +3094,7 @@ public partial class KubernetesRuntime } } - /// Update a ServiceResource + /// update a ServiceResource /// /// Resource create parameters. /// a delegate that is called when the remote service returns 200 (OK). @@ -3151,7 +3151,7 @@ public partial class KubernetesRuntime } } - /// Update a ServiceResource + /// update a ServiceResource /// /// Resource create parameters. /// an instance that will receive events. @@ -3205,7 +3205,7 @@ public partial class KubernetesRuntime } } - /// Update a ServiceResource + /// update a ServiceResource /// The fully qualified Azure Resource manager identifier of the resource. /// The name of the the service /// Json string supplied to the ServicesCreateOrUpdate operation @@ -3251,7 +3251,7 @@ public partial class KubernetesRuntime } } - /// Update a ServiceResource + /// update a ServiceResource /// The fully qualified Azure Resource manager identifier of the resource. /// The name of the the service /// Json string supplied to the ServicesCreateOrUpdate operation @@ -3294,7 +3294,7 @@ public partial class KubernetesRuntime } } - /// Update a ServiceResource + /// update a ServiceResource /// The fully qualified Azure Resource manager identifier of the resource. /// The name of the the service /// Resource create parameters. @@ -4254,7 +4254,7 @@ public partial class KubernetesRuntime } } - /// Update a StorageClassResource + /// update a StorageClassResource /// The fully qualified Azure Resource manager identifier of the resource. /// The name of the the storage class /// Resource create parameters. @@ -4300,7 +4300,7 @@ public partial class KubernetesRuntime } } - /// Update a StorageClassResource + /// update a StorageClassResource /// /// Resource create parameters. /// a delegate that is called when the remote service returns 200 (OK). @@ -4356,7 +4356,7 @@ public partial class KubernetesRuntime } } - /// Update a StorageClassResource + /// update a StorageClassResource /// /// Resource create parameters. /// an instance that will receive events. @@ -4410,7 +4410,7 @@ public partial class KubernetesRuntime } } - /// Update a StorageClassResource + /// update a StorageClassResource /// The fully qualified Azure Resource manager identifier of the resource. /// The name of the the storage class /// Json string supplied to the StorageClassCreateOrUpdate operation @@ -4455,7 +4455,7 @@ public partial class KubernetesRuntime } } - /// Update a StorageClassResource + /// update a StorageClassResource /// The fully qualified Azure Resource manager identifier of the resource. /// The name of the the storage class /// Json string supplied to the StorageClassCreateOrUpdate operation @@ -4498,7 +4498,7 @@ public partial class KubernetesRuntime } } - /// Update a StorageClassResource + /// update a StorageClassResource /// The fully qualified Azure Resource manager identifier of the resource. /// The name of the the storage class /// Resource create parameters. @@ -4559,13 +4559,13 @@ public partial class KubernetesRuntime global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -4713,13 +4713,13 @@ public partial class KubernetesRuntime global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -4971,13 +4971,13 @@ public partial class KubernetesRuntime global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); @@ -5724,7 +5724,7 @@ public partial class KubernetesRuntime } } - /// Update a StorageClassResource + /// update a StorageClassResource /// The fully qualified Azure Resource manager identifier of the resource. /// The name of the the storage class /// The resource properties to be updated. @@ -5770,7 +5770,7 @@ public partial class KubernetesRuntime } } - /// Update a StorageClassResource + /// update a StorageClassResource /// /// The resource properties to be updated. /// a delegate that is called when the remote service returns 200 (OK). @@ -5826,7 +5826,7 @@ public partial class KubernetesRuntime } } - /// Update a StorageClassResource + /// update a StorageClassResource /// /// The resource properties to be updated. /// an instance that will receive events. @@ -5880,7 +5880,7 @@ public partial class KubernetesRuntime } } - /// Update a StorageClassResource + /// update a StorageClassResource /// The fully qualified Azure Resource manager identifier of the resource. /// The name of the the storage class /// Json string supplied to the StorageClassUpdate operation @@ -5925,7 +5925,7 @@ public partial class KubernetesRuntime } } - /// Update a StorageClassResource + /// update a StorageClassResource /// The fully qualified Azure Resource manager identifier of the resource. /// The name of the the storage class /// Json string supplied to the StorageClassUpdate operation @@ -5968,7 +5968,7 @@ public partial class KubernetesRuntime } } - /// Update a StorageClassResource + /// update a StorageClassResource /// The fully qualified Azure Resource manager identifier of the resource. /// The name of the the storage class /// The resource properties to be updated. @@ -6027,13 +6027,13 @@ public partial class KubernetesRuntime global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); @@ -6182,13 +6182,13 @@ public partial class KubernetesRuntime global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/api/Models/BgpPeer.PowerShell.cs b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/api/Models/BgpPeer.PowerShell.cs index 850a198e67ac..f10ac6bf8797 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/api/Models/BgpPeer.PowerShell.cs +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/api/Models/BgpPeer.PowerShell.cs @@ -128,11 +128,11 @@ internal BgpPeer(global::System.Collections.IDictionary content) } if (content.Contains("MyAsn")) { - ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IBgpPeerInternal)this).MyAsn = (int) content.GetValueForProperty("MyAsn",((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IBgpPeerInternal)this).MyAsn, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IBgpPeerInternal)this).MyAsn = (int?) content.GetValueForProperty("MyAsn",((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IBgpPeerInternal)this).MyAsn, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("PeerAsn")) { - ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IBgpPeerInternal)this).PeerAsn = (int) content.GetValueForProperty("PeerAsn",((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IBgpPeerInternal)this).PeerAsn, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IBgpPeerInternal)this).PeerAsn = (int?) content.GetValueForProperty("PeerAsn",((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IBgpPeerInternal)this).PeerAsn, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("PeerAddress")) { @@ -205,11 +205,11 @@ internal BgpPeer(global::System.Management.Automation.PSObject content) } if (content.Contains("MyAsn")) { - ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IBgpPeerInternal)this).MyAsn = (int) content.GetValueForProperty("MyAsn",((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IBgpPeerInternal)this).MyAsn, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IBgpPeerInternal)this).MyAsn = (int?) content.GetValueForProperty("MyAsn",((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IBgpPeerInternal)this).MyAsn, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("PeerAsn")) { - ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IBgpPeerInternal)this).PeerAsn = (int) content.GetValueForProperty("PeerAsn",((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IBgpPeerInternal)this).PeerAsn, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IBgpPeerInternal)this).PeerAsn = (int?) content.GetValueForProperty("PeerAsn",((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IBgpPeerInternal)this).PeerAsn, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("PeerAddress")) { diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/api/Models/BgpPeer.cs b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/api/Models/BgpPeer.cs index 826d866e17a2..3f0a88e35d2d 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/api/Models/BgpPeer.cs +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/api/Models/BgpPeer.cs @@ -31,19 +31,37 @@ public partial class BgpPeer : Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IBgpPeerProperties Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IBgpPeerInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.BgpPeerProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IBgpPeerInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IBgpPeerPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IBgpPeerPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IBgpPeerInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IBgpPeerPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IBgpPeerPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// My ASN [Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Origin(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.PropertyOrigin.Inlined)] @@ -80,31 +98,31 @@ public partial class BgpPeer : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Origin(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Origin(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Origin(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Origin(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Origin(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Origin(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Origin(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/api/Models/ErrorResponse.cs b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/api/Models/ErrorResponse.cs index 2c5ae9610d71..90f1d1ec0759 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/api/Models/ErrorResponse.cs +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/api/Models/ErrorResponse.cs @@ -40,22 +40,22 @@ public partial class ErrorResponse : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IErrorDetailInternal)Error).Message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IErrorDetailInternal)Error).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IErrorDetailInternal)Error).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IErrorDetailInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IErrorDetailInternal)Error).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IErrorDetailInternal)Error).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IErrorDetailInternal)Error).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for Error Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ErrorDetail()); set { {_error = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IErrorDetailInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IErrorDetailInternal)Error).Message = value ?? null; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IErrorDetailInternal)Error).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IErrorDetailInternal)Error).Target = value ?? null; } /// The error target. [Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Origin(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.PropertyOrigin.Inlined)] diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/api/Models/LoadBalancer.cs b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/api/Models/LoadBalancer.cs index 2fffbc75fbcb..4123f619ec5e 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/api/Models/LoadBalancer.cs +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/api/Models/LoadBalancer.cs @@ -45,19 +45,37 @@ public partial class LoadBalancer : Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ILoadBalancerProperties Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ILoadBalancerInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.LoadBalancerProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ILoadBalancerInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ILoadBalancerPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ILoadBalancerPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ILoadBalancerInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ILoadBalancerPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ILoadBalancerPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Origin(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.PropertyOrigin.Inherited)] @@ -89,31 +107,31 @@ public partial class LoadBalancer : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Origin(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Origin(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Origin(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Origin(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Origin(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Origin(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Origin(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/api/Models/Operation.cs b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/api/Models/Operation.cs index 7ff2d93b21ca..4625210e8890 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/api/Models/Operation.cs +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/api/Models/Operation.cs @@ -73,16 +73,16 @@ public partial class Operation : Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IOperationDisplay Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IOperationInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.OperationDisplay()); set { {_display = value;} } } /// Internal Acessors for DisplayDescription - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IOperationDisplayInternal)Display).Description = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IOperationDisplayInternal)Display).Description = value ?? null; } /// Internal Acessors for DisplayOperation - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IOperationDisplayInternal)Display).Operation = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IOperationDisplayInternal)Display).Operation = value ?? null; } /// Internal Acessors for DisplayProvider - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IOperationDisplayInternal)Display).Provider = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IOperationDisplayInternal)Display).Provider = value ?? null; } /// Internal Acessors for DisplayResource - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IOperationDisplayInternal)Display).Resource = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IOperationDisplayInternal)Display).Resource = value ?? null; } /// Internal Acessors for IsDataAction bool? Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IOperationInternal.IsDataAction { get => this._isDataAction; set { {_isDataAction = value;} } } diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/api/Models/ProxyResource.cs b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/api/Models/ProxyResource.cs index e1d2f9ab0b02..af66ed654f0d 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/api/Models/ProxyResource.cs +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/api/Models/ProxyResource.cs @@ -27,16 +27,34 @@ public partial class ProxyResource : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__resource).Id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__resource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Origin(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.PropertyOrigin.Inherited)] @@ -46,31 +64,31 @@ public partial class ProxyResource : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Origin(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__resource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Origin(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__resource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Origin(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__resource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Origin(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__resource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Origin(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Origin(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Origin(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/api/Models/Resource.cs b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/api/Models/Resource.cs index cd9afff4547c..997a191a3eb5 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/api/Models/Resource.cs +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/api/Models/Resource.cs @@ -33,6 +33,24 @@ public partial class Resource : /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.Type { get => this._type; set { {_type = value;} } } @@ -54,27 +72,27 @@ public partial class Resource : /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Origin(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Origin(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Origin(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Origin(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Origin(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Origin(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// Backing field for property. private string _type; diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/api/Models/ServiceResource.cs b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/api/Models/ServiceResource.cs index ecb36e29f926..dae8e5bffd8d 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/api/Models/ServiceResource.cs +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/api/Models/ServiceResource.cs @@ -28,25 +28,43 @@ public partial class ServiceResource : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).Id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IServiceProperties Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IServiceResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ServiceProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IServiceResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IServicePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IServicePropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IServiceResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IServicePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IServicePropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for RpObjectId - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IServiceResourceInternal.RpObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IServicePropertiesInternal)Property).RpObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IServicePropertiesInternal)Property).RpObjectId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IServiceResourceInternal.RpObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IServicePropertiesInternal)Property).RpObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IServicePropertiesInternal)Property).RpObjectId = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Origin(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.PropertyOrigin.Inherited)] @@ -75,31 +93,31 @@ public partial class ServiceResource : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Origin(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Origin(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Origin(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Origin(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Origin(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Origin(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Origin(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/api/Models/StorageClassProperties.cs b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/api/Models/StorageClassProperties.cs index f660b62fec7c..53196570afdd 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/api/Models/StorageClassProperties.cs +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/api/Models/StorageClassProperties.cs @@ -232,7 +232,7 @@ public partial interface IStorageClassProperties : string ProvisioningState { get; } /// Properties of the StorageClass [Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/api/Models/StorageClassResource.cs b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/api/Models/StorageClassResource.cs index d8f8f9974f20..d3ce027c8c88 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/api/Models/StorageClassResource.cs +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/api/Models/StorageClassResource.cs @@ -48,22 +48,40 @@ public partial class StorageClassResource : public System.Collections.Generic.List Limitation { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IStorageClassPropertiesInternal)Property).Limitation; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IStorageClassPropertiesInternal)Property).Limitation = value ?? null /* arrayOf */; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IStorageClassProperties Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IStorageClassResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.StorageClassProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IStorageClassResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IStorageClassPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IStorageClassPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IStorageClassResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IStorageClassPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IStorageClassPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Additional mount options [Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Origin(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.PropertyOrigin.Inlined)] @@ -106,31 +124,31 @@ public partial class StorageClassResource : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Origin(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Origin(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Origin(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Origin(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Origin(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Origin(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Origin(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/api/Models/StorageClassResourceUpdate.cs b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/api/Models/StorageClassResourceUpdate.cs index da542be8c047..6f616ffc74b0 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/api/Models/StorageClassResourceUpdate.cs +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/api/Models/StorageClassResourceUpdate.cs @@ -37,7 +37,7 @@ public partial class StorageClassResourceUpdate : Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IStorageClassPropertiesUpdate Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IStorageClassResourceUpdateInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.StorageClassPropertiesUpdate()); set { {_property = value;} } } /// Internal Acessors for TypeProperty - Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IStorageClassTypePropertiesUpdate Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IStorageClassResourceUpdateInternal.TypeProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IStorageClassPropertiesUpdateInternal)Property).TypeProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IStorageClassPropertiesUpdateInternal)Property).TypeProperty = value; } + Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IStorageClassTypePropertiesUpdate Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IStorageClassResourceUpdateInternal.TypeProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IStorageClassPropertiesUpdateInternal)Property).TypeProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IStorageClassPropertiesUpdateInternal)Property).TypeProperty = value ?? null /* model class */; } /// Additional mount options [Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Origin(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.PropertyOrigin.Inlined)] diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/NewAzKubernetesRuntimeBgpPeer_CreateExpanded.cs b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/NewAzKubernetesRuntimeBgpPeer_CreateExpanded.cs index 63d606d45a91..18b4edb6da2a 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/NewAzKubernetesRuntimeBgpPeer_CreateExpanded.cs +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/NewAzKubernetesRuntimeBgpPeer_CreateExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.Cmdlets; using System; - /// Create a BgpPeer + /// create a BgpPeer /// /// [OpenAPI] CreateOrUpdate=>PUT:"/{resourceUri}/providers/Microsoft.KubernetesRuntime/bgpPeers/{bgpPeerName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzKubernetesRuntimeBgpPeer_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IBgpPeer))] - [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Description(@"Create a BgpPeer")] + [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Description(@"create a BgpPeer")] [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.HttpPath(Path = "/{resourceUri}/providers/Microsoft.KubernetesRuntime/bgpPeers/{bgpPeerName}", ApiVersion = "2024-03-01")] public partial class NewAzKubernetesRuntimeBgpPeer_CreateExpanded : global::System.Management.Automation.PSCmdlet, @@ -40,20 +40,11 @@ public partial class NewAzKubernetesRuntimeBgpPeer_CreateExpanded : global::Syst /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// /// A BgpPeer resource for an Arc connected cluster (Microsoft.Kubernetes/connectedClusters) /// private Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IBgpPeer _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.BgpPeer(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Backing field for property. private string _arcConnectedClusterId; @@ -266,11 +257,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Cmdlets.NewAzKuberne /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -586,24 +572,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IBgpPeer var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/NewAzKubernetesRuntimeBgpPeer_CreateViaJsonFilePath.cs b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/NewAzKubernetesRuntimeBgpPeer_CreateViaJsonFilePath.cs index b6b39a903da2..08a029167ad5 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/NewAzKubernetesRuntimeBgpPeer_CreateViaJsonFilePath.cs +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/NewAzKubernetesRuntimeBgpPeer_CreateViaJsonFilePath.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.Cmdlets; using System; - /// Create a BgpPeer + /// create a BgpPeer /// /// [OpenAPI] CreateOrUpdate=>PUT:"/{resourceUri}/providers/Microsoft.KubernetesRuntime/bgpPeers/{bgpPeerName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzKubernetesRuntimeBgpPeer_CreateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IBgpPeer))] - [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Description(@"Create a BgpPeer")] + [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Description(@"create a BgpPeer")] [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.HttpPath(Path = "/{resourceUri}/providers/Microsoft.KubernetesRuntime/bgpPeers/{bgpPeerName}", ApiVersion = "2024-03-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.NotSuggestDefaultParameterSet] @@ -41,17 +41,8 @@ public partial class NewAzKubernetesRuntimeBgpPeer_CreateViaJsonFilePath : globa /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Backing field for property. private string _arcConnectedClusterId; @@ -244,11 +235,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Cmdlets.NewAzKuberne /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -564,24 +550,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IBgpPeer var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/NewAzKubernetesRuntimeBgpPeer_CreateViaJsonString.cs b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/NewAzKubernetesRuntimeBgpPeer_CreateViaJsonString.cs index 8738ce171126..a98f5fd07045 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/NewAzKubernetesRuntimeBgpPeer_CreateViaJsonString.cs +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/NewAzKubernetesRuntimeBgpPeer_CreateViaJsonString.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.Cmdlets; using System; - /// Create a BgpPeer + /// create a BgpPeer /// /// [OpenAPI] CreateOrUpdate=>PUT:"/{resourceUri}/providers/Microsoft.KubernetesRuntime/bgpPeers/{bgpPeerName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzKubernetesRuntimeBgpPeer_CreateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IBgpPeer))] - [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Description(@"Create a BgpPeer")] + [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Description(@"create a BgpPeer")] [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.HttpPath(Path = "/{resourceUri}/providers/Microsoft.KubernetesRuntime/bgpPeers/{bgpPeerName}", ApiVersion = "2024-03-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.NotSuggestDefaultParameterSet] @@ -41,15 +41,6 @@ public partial class NewAzKubernetesRuntimeBgpPeer_CreateViaJsonString : global: /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Backing field for property. private string _arcConnectedClusterId; @@ -242,11 +233,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Cmdlets.NewAzKuberne /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -562,24 +548,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IBgpPeer var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/NewAzKubernetesRuntimeLoadBalancer_CreateExpanded.cs b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/NewAzKubernetesRuntimeLoadBalancer_CreateExpanded.cs index 94d9d8eae457..dc0509f293bb 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/NewAzKubernetesRuntimeLoadBalancer_CreateExpanded.cs +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/NewAzKubernetesRuntimeLoadBalancer_CreateExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.Cmdlets; using System; - /// Create a LoadBalancer + /// create a LoadBalancer /// /// [OpenAPI] CreateOrUpdate=>PUT:"/{resourceUri}/providers/Microsoft.KubernetesRuntime/loadBalancers/{loadBalancerName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzKubernetesRuntimeLoadBalancer_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ILoadBalancer))] - [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Description(@"Create a LoadBalancer")] + [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Description(@"create a LoadBalancer")] [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.HttpPath(Path = "/{resourceUri}/providers/Microsoft.KubernetesRuntime/loadBalancers/{loadBalancerName}", ApiVersion = "2024-03-01")] public partial class NewAzKubernetesRuntimeLoadBalancer_CreateExpanded : global::System.Management.Automation.PSCmdlet, @@ -40,20 +40,11 @@ public partial class NewAzKubernetesRuntimeLoadBalancer_CreateExpanded : global: /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// /// A LoadBalancer resource for an Arc connected cluster (Microsoft.Kubernetes/connectedClusters) /// private Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ILoadBalancer _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.LoadBalancer(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// IP Range [global::System.Management.Automation.AllowEmptyCollection] [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "IP Range")] @@ -286,11 +277,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Cmdlets.NewAzKuberne /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -606,24 +592,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ILoadBalancer var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/NewAzKubernetesRuntimeLoadBalancer_CreateViaJsonFilePath.cs b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/NewAzKubernetesRuntimeLoadBalancer_CreateViaJsonFilePath.cs index f2f8f5c92389..d82add7b5192 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/NewAzKubernetesRuntimeLoadBalancer_CreateViaJsonFilePath.cs +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/NewAzKubernetesRuntimeLoadBalancer_CreateViaJsonFilePath.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.Cmdlets; using System; - /// Create a LoadBalancer + /// create a LoadBalancer /// /// [OpenAPI] CreateOrUpdate=>PUT:"/{resourceUri}/providers/Microsoft.KubernetesRuntime/loadBalancers/{loadBalancerName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzKubernetesRuntimeLoadBalancer_CreateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ILoadBalancer))] - [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Description(@"Create a LoadBalancer")] + [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Description(@"create a LoadBalancer")] [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.HttpPath(Path = "/{resourceUri}/providers/Microsoft.KubernetesRuntime/loadBalancers/{loadBalancerName}", ApiVersion = "2024-03-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.NotSuggestDefaultParameterSet] @@ -41,17 +41,8 @@ public partial class NewAzKubernetesRuntimeLoadBalancer_CreateViaJsonFilePath : /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Backing field for property. private string _arcConnectedClusterId; @@ -246,11 +237,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Cmdlets.NewAzKuberne /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -566,24 +552,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ILoadBalancer var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/NewAzKubernetesRuntimeLoadBalancer_CreateViaJsonString.cs b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/NewAzKubernetesRuntimeLoadBalancer_CreateViaJsonString.cs index 7ef437d8084e..d84f2eeb05ad 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/NewAzKubernetesRuntimeLoadBalancer_CreateViaJsonString.cs +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/NewAzKubernetesRuntimeLoadBalancer_CreateViaJsonString.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.Cmdlets; using System; - /// Create a LoadBalancer + /// create a LoadBalancer /// /// [OpenAPI] CreateOrUpdate=>PUT:"/{resourceUri}/providers/Microsoft.KubernetesRuntime/loadBalancers/{loadBalancerName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzKubernetesRuntimeLoadBalancer_CreateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ILoadBalancer))] - [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Description(@"Create a LoadBalancer")] + [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Description(@"create a LoadBalancer")] [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.HttpPath(Path = "/{resourceUri}/providers/Microsoft.KubernetesRuntime/loadBalancers/{loadBalancerName}", ApiVersion = "2024-03-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.NotSuggestDefaultParameterSet] @@ -41,15 +41,6 @@ public partial class NewAzKubernetesRuntimeLoadBalancer_CreateViaJsonString : gl /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Backing field for property. private string _arcConnectedClusterId; @@ -242,11 +233,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Cmdlets.NewAzKuberne /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -562,24 +548,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ILoadBalancer var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/NewAzKubernetesRuntimeService_CreateExpanded.cs b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/NewAzKubernetesRuntimeService_CreateExpanded.cs index 0be058427995..b7fa1580f7c7 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/NewAzKubernetesRuntimeService_CreateExpanded.cs +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/NewAzKubernetesRuntimeService_CreateExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.Cmdlets; using System; - /// Create a ServiceResource + /// create a ServiceResource /// /// [OpenAPI] CreateOrUpdate=>PUT:"/{resourceUri}/providers/Microsoft.KubernetesRuntime/services/{serviceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzKubernetesRuntimeService_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IServiceResource))] - [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Description(@"Create a ServiceResource")] + [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Description(@"create a ServiceResource")] [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.HttpPath(Path = "/{resourceUri}/providers/Microsoft.KubernetesRuntime/services/{serviceName}", ApiVersion = "2024-03-01")] public partial class NewAzKubernetesRuntimeService_CreateExpanded : global::System.Management.Automation.PSCmdlet, diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/NewAzKubernetesRuntimeService_CreateViaJsonFilePath.cs b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/NewAzKubernetesRuntimeService_CreateViaJsonFilePath.cs index 1a18e88bd2d8..8f8f2d18a74b 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/NewAzKubernetesRuntimeService_CreateViaJsonFilePath.cs +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/NewAzKubernetesRuntimeService_CreateViaJsonFilePath.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.Cmdlets; using System; - /// Create a ServiceResource + /// create a ServiceResource /// /// [OpenAPI] CreateOrUpdate=>PUT:"/{resourceUri}/providers/Microsoft.KubernetesRuntime/services/{serviceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzKubernetesRuntimeService_CreateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IServiceResource))] - [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Description(@"Create a ServiceResource")] + [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Description(@"create a ServiceResource")] [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.HttpPath(Path = "/{resourceUri}/providers/Microsoft.KubernetesRuntime/services/{serviceName}", ApiVersion = "2024-03-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.NotSuggestDefaultParameterSet] diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/NewAzKubernetesRuntimeService_CreateViaJsonString.cs b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/NewAzKubernetesRuntimeService_CreateViaJsonString.cs index e89b8a63294d..62322cd1c6c0 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/NewAzKubernetesRuntimeService_CreateViaJsonString.cs +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/NewAzKubernetesRuntimeService_CreateViaJsonString.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.Cmdlets; using System; - /// Create a ServiceResource + /// create a ServiceResource /// /// [OpenAPI] CreateOrUpdate=>PUT:"/{resourceUri}/providers/Microsoft.KubernetesRuntime/services/{serviceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzKubernetesRuntimeService_CreateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IServiceResource))] - [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Description(@"Create a ServiceResource")] + [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Description(@"create a ServiceResource")] [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.HttpPath(Path = "/{resourceUri}/providers/Microsoft.KubernetesRuntime/services/{serviceName}", ApiVersion = "2024-03-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.NotSuggestDefaultParameterSet] diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/NewAzKubernetesRuntimeStorageClass_CreateExpanded.cs b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/NewAzKubernetesRuntimeStorageClass_CreateExpanded.cs index 8b4ecb5feda5..9b6b356c7c76 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/NewAzKubernetesRuntimeStorageClass_CreateExpanded.cs +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/NewAzKubernetesRuntimeStorageClass_CreateExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.Cmdlets; using System; - /// Create a StorageClassResource + /// create a StorageClassResource /// /// [OpenAPI] CreateOrUpdate=>PUT:"/{resourceUri}/providers/Microsoft.KubernetesRuntime/storageClasses/{storageClassName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzKubernetesRuntimeStorageClass_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IStorageClassResource))] - [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Description(@"Create a StorageClassResource")] + [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Description(@"create a StorageClassResource")] [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.HttpPath(Path = "/{resourceUri}/providers/Microsoft.KubernetesRuntime/storageClasses/{storageClassName}", ApiVersion = "2024-03-01")] public partial class NewAzKubernetesRuntimeStorageClass_CreateExpanded : global::System.Management.Automation.PSCmdlet, @@ -40,20 +40,11 @@ public partial class NewAzKubernetesRuntimeStorageClass_CreateExpanded : global: /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// /// A StorageClass resource for an Arc connected cluster (Microsoft.Kubernetes/connectedClusters) /// private Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IStorageClassResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.StorageClassResource(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// The access mode: [ReadWriteOnce, ReadWriteMany] or [ReadWriteOnce] [global::System.Management.Automation.AllowEmptyCollection] [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The access mode: [ReadWriteOnce, ReadWriteMany] or [ReadWriteOnce]")] @@ -365,11 +356,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Cmdlets.NewAzKuberne /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -685,24 +671,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IStorageClassResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/NewAzKubernetesRuntimeStorageClass_CreateViaJsonFilePath.cs b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/NewAzKubernetesRuntimeStorageClass_CreateViaJsonFilePath.cs index 8e117d68369b..c415f7831130 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/NewAzKubernetesRuntimeStorageClass_CreateViaJsonFilePath.cs +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/NewAzKubernetesRuntimeStorageClass_CreateViaJsonFilePath.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.Cmdlets; using System; - /// Create a StorageClassResource + /// create a StorageClassResource /// /// [OpenAPI] CreateOrUpdate=>PUT:"/{resourceUri}/providers/Microsoft.KubernetesRuntime/storageClasses/{storageClassName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzKubernetesRuntimeStorageClass_CreateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IStorageClassResource))] - [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Description(@"Create a StorageClassResource")] + [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Description(@"create a StorageClassResource")] [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.HttpPath(Path = "/{resourceUri}/providers/Microsoft.KubernetesRuntime/storageClasses/{storageClassName}", ApiVersion = "2024-03-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.NotSuggestDefaultParameterSet] @@ -41,17 +41,8 @@ public partial class NewAzKubernetesRuntimeStorageClass_CreateViaJsonFilePath : /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Backing field for property. private string _arcConnectedClusterId; @@ -246,11 +237,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Cmdlets.NewAzKuberne /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -566,24 +552,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IStorageClassResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/NewAzKubernetesRuntimeStorageClass_CreateViaJsonString.cs b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/NewAzKubernetesRuntimeStorageClass_CreateViaJsonString.cs index 2cc16baec347..3202eb00f2a5 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/NewAzKubernetesRuntimeStorageClass_CreateViaJsonString.cs +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/NewAzKubernetesRuntimeStorageClass_CreateViaJsonString.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.Cmdlets; using System; - /// Create a StorageClassResource + /// create a StorageClassResource /// /// [OpenAPI] CreateOrUpdate=>PUT:"/{resourceUri}/providers/Microsoft.KubernetesRuntime/storageClasses/{storageClassName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzKubernetesRuntimeStorageClass_CreateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IStorageClassResource))] - [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Description(@"Create a StorageClassResource")] + [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Description(@"create a StorageClassResource")] [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.HttpPath(Path = "/{resourceUri}/providers/Microsoft.KubernetesRuntime/storageClasses/{storageClassName}", ApiVersion = "2024-03-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.NotSuggestDefaultParameterSet] @@ -41,15 +41,6 @@ public partial class NewAzKubernetesRuntimeStorageClass_CreateViaJsonString : gl /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Backing field for property. private string _arcConnectedClusterId; @@ -242,11 +233,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Cmdlets.NewAzKuberne /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -562,24 +548,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IStorageClassResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/RemoveAzKubernetesRuntimeBgpPeer_Delete.cs b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/RemoveAzKubernetesRuntimeBgpPeer_Delete.cs index 37f315781f4f..3104596bef3f 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/RemoveAzKubernetesRuntimeBgpPeer_Delete.cs +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/RemoveAzKubernetesRuntimeBgpPeer_Delete.cs @@ -477,7 +477,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -501,7 +501,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/RemoveAzKubernetesRuntimeBgpPeer_DeleteViaIdentity.cs b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/RemoveAzKubernetesRuntimeBgpPeer_DeleteViaIdentity.cs index 0c968b2a1a57..beb49674bc6a 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/RemoveAzKubernetesRuntimeBgpPeer_DeleteViaIdentity.cs +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/RemoveAzKubernetesRuntimeBgpPeer_DeleteViaIdentity.cs @@ -471,7 +471,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -495,7 +495,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/RemoveAzKubernetesRuntimeLoadBalancer_Delete.cs b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/RemoveAzKubernetesRuntimeLoadBalancer_Delete.cs index 49b5ae010ea2..0bbee076a717 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/RemoveAzKubernetesRuntimeLoadBalancer_Delete.cs +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/RemoveAzKubernetesRuntimeLoadBalancer_Delete.cs @@ -477,7 +477,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -501,7 +501,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/RemoveAzKubernetesRuntimeLoadBalancer_DeleteViaIdentity.cs b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/RemoveAzKubernetesRuntimeLoadBalancer_DeleteViaIdentity.cs index a0f315306f0f..cf47354fc7f8 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/RemoveAzKubernetesRuntimeLoadBalancer_DeleteViaIdentity.cs +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/RemoveAzKubernetesRuntimeLoadBalancer_DeleteViaIdentity.cs @@ -471,7 +471,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -495,7 +495,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/RemoveAzKubernetesRuntimeService_Delete.cs b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/RemoveAzKubernetesRuntimeService_Delete.cs index d9689b55a4e5..17782b2a7575 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/RemoveAzKubernetesRuntimeService_Delete.cs +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/RemoveAzKubernetesRuntimeService_Delete.cs @@ -477,7 +477,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -501,7 +501,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/RemoveAzKubernetesRuntimeService_DeleteViaIdentity.cs b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/RemoveAzKubernetesRuntimeService_DeleteViaIdentity.cs index 9d5b9647610e..b2e94422c1c6 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/RemoveAzKubernetesRuntimeService_DeleteViaIdentity.cs +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/RemoveAzKubernetesRuntimeService_DeleteViaIdentity.cs @@ -471,7 +471,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -495,7 +495,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/RemoveAzKubernetesRuntimeStorageClass_Delete.cs b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/RemoveAzKubernetesRuntimeStorageClass_Delete.cs index 318b51198373..37f469e66031 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/RemoveAzKubernetesRuntimeStorageClass_Delete.cs +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/RemoveAzKubernetesRuntimeStorageClass_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzKubernetesRuntimeStorageClass_Delete : global::Syst /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Backing field for property. private string _arcConnectedClusterId; @@ -242,11 +233,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Cmdlets.RemoveAzKube /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -558,7 +544,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -582,7 +568,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/RemoveAzKubernetesRuntimeStorageClass_DeleteViaIdentity.cs b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/RemoveAzKubernetesRuntimeStorageClass_DeleteViaIdentity.cs index 210952cb0e9b..923d2fc1b297 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/RemoveAzKubernetesRuntimeStorageClass_DeleteViaIdentity.cs +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/RemoveAzKubernetesRuntimeStorageClass_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzKubernetesRuntimeStorageClass_DeleteViaIdentity : g /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.KubernetesRuntime.Category(global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Cmdlets.RemoveAzKube /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -550,7 +536,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -574,7 +560,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/UpdateAzKubernetesRuntimeBgpPeer_UpdateExpanded.cs b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/UpdateAzKubernetesRuntimeBgpPeer_UpdateExpanded.cs index d6cd8c8d8059..b495fe1f7db0 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/UpdateAzKubernetesRuntimeBgpPeer_UpdateExpanded.cs +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/UpdateAzKubernetesRuntimeBgpPeer_UpdateExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.Cmdlets; using System; - /// Update a BgpPeer + /// update a BgpPeer /// /// [OpenAPI] Get=>GET:"/{resourceUri}/providers/Microsoft.KubernetesRuntime/bgpPeers/{bgpPeerName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/{resourceUri}/providers/Microsoft.KubernetesRuntime/bgpPeers/{bgpPeerName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzKubernetesRuntimeBgpPeer_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IBgpPeer))] - [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Description(@"Update a BgpPeer")] + [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Description(@"update a BgpPeer")] [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Generated] public partial class UpdateAzKubernetesRuntimeBgpPeer_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.IEventListener, @@ -40,20 +40,11 @@ public partial class UpdateAzKubernetesRuntimeBgpPeer_UpdateExpanded : global::S /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// /// A BgpPeer resource for an Arc connected cluster (Microsoft.Kubernetes/connectedClusters) /// private Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IBgpPeer _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.BgpPeer(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Backing field for property. private string _arcConnectedClusterId; @@ -266,11 +257,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Cmdlets.UpdateAzKube /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -604,24 +590,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IBgpPeer var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/UpdateAzKubernetesRuntimeBgpPeer_UpdateViaIdentityExpanded.cs b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/UpdateAzKubernetesRuntimeBgpPeer_UpdateViaIdentityExpanded.cs index 221c4067185d..4c35237f917d 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/UpdateAzKubernetesRuntimeBgpPeer_UpdateViaIdentityExpanded.cs +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/UpdateAzKubernetesRuntimeBgpPeer_UpdateViaIdentityExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.Cmdlets; using System; - /// Update a BgpPeer + /// update a BgpPeer /// /// [OpenAPI] Get=>GET:"/{resourceUri}/providers/Microsoft.KubernetesRuntime/bgpPeers/{bgpPeerName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/{resourceUri}/providers/Microsoft.KubernetesRuntime/bgpPeers/{bgpPeerName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzKubernetesRuntimeBgpPeer_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IBgpPeer))] - [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Description(@"Update a BgpPeer")] + [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Description(@"update a BgpPeer")] [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Generated] public partial class UpdateAzKubernetesRuntimeBgpPeer_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.IEventListener, @@ -40,20 +40,11 @@ public partial class UpdateAzKubernetesRuntimeBgpPeer_UpdateViaIdentityExpanded /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// /// A BgpPeer resource for an Arc connected cluster (Microsoft.Kubernetes/connectedClusters) /// private Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IBgpPeer _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.BgpPeer(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.KubernetesRuntime.Category(global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.ParameterCategory.Runtime)] @@ -244,11 +235,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Cmdlets.UpdateAzKube /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -600,24 +586,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IBgpPeer var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/UpdateAzKubernetesRuntimeLoadBalancer_UpdateExpanded.cs b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/UpdateAzKubernetesRuntimeLoadBalancer_UpdateExpanded.cs index 5448d48ab4be..fb97e724e7fa 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/UpdateAzKubernetesRuntimeLoadBalancer_UpdateExpanded.cs +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/UpdateAzKubernetesRuntimeLoadBalancer_UpdateExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.Cmdlets; using System; - /// Update a LoadBalancer + /// update a LoadBalancer /// /// [OpenAPI] Get=>GET:"/{resourceUri}/providers/Microsoft.KubernetesRuntime/loadBalancers/{loadBalancerName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/{resourceUri}/providers/Microsoft.KubernetesRuntime/loadBalancers/{loadBalancerName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzKubernetesRuntimeLoadBalancer_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ILoadBalancer))] - [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Description(@"Update a LoadBalancer")] + [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Description(@"update a LoadBalancer")] [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Generated] public partial class UpdateAzKubernetesRuntimeLoadBalancer_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.IEventListener, @@ -40,20 +40,11 @@ public partial class UpdateAzKubernetesRuntimeLoadBalancer_UpdateExpanded : glob /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// /// A LoadBalancer resource for an Arc connected cluster (Microsoft.Kubernetes/connectedClusters) /// private Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ILoadBalancer _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.LoadBalancer(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// IP Range [global::System.Management.Automation.AllowEmptyCollection] [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "IP Range")] @@ -286,11 +277,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Cmdlets.UpdateAzKube /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -628,24 +614,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ILoadBalancer var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/UpdateAzKubernetesRuntimeLoadBalancer_UpdateViaIdentityExpanded.cs b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/UpdateAzKubernetesRuntimeLoadBalancer_UpdateViaIdentityExpanded.cs index a0b95a82b32e..639ff582dbd9 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/UpdateAzKubernetesRuntimeLoadBalancer_UpdateViaIdentityExpanded.cs +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/UpdateAzKubernetesRuntimeLoadBalancer_UpdateViaIdentityExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.Cmdlets; using System; - /// Update a LoadBalancer + /// update a LoadBalancer /// /// [OpenAPI] Get=>GET:"/{resourceUri}/providers/Microsoft.KubernetesRuntime/loadBalancers/{loadBalancerName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/{resourceUri}/providers/Microsoft.KubernetesRuntime/loadBalancers/{loadBalancerName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzKubernetesRuntimeLoadBalancer_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ILoadBalancer))] - [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Description(@"Update a LoadBalancer")] + [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Description(@"update a LoadBalancer")] [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Generated] public partial class UpdateAzKubernetesRuntimeLoadBalancer_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.IEventListener, @@ -40,20 +40,11 @@ public partial class UpdateAzKubernetesRuntimeLoadBalancer_UpdateViaIdentityExpa /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// /// A LoadBalancer resource for an Arc connected cluster (Microsoft.Kubernetes/connectedClusters) /// private Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ILoadBalancer _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.LoadBalancer(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// IP Range [global::System.Management.Automation.AllowEmptyCollection] [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "IP Range")] @@ -264,11 +255,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Cmdlets.UpdateAzKube /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -625,24 +611,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.ILoadBalancer var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/UpdateAzKubernetesRuntimeService_UpdateExpanded.cs b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/UpdateAzKubernetesRuntimeService_UpdateExpanded.cs index 713d0fcf39a9..abbf512c739d 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/UpdateAzKubernetesRuntimeService_UpdateExpanded.cs +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/UpdateAzKubernetesRuntimeService_UpdateExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.Cmdlets; using System; - /// Update a ServiceResource + /// update a ServiceResource /// /// [OpenAPI] Get=>GET:"/{resourceUri}/providers/Microsoft.KubernetesRuntime/services/{serviceName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/{resourceUri}/providers/Microsoft.KubernetesRuntime/services/{serviceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzKubernetesRuntimeService_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IServiceResource))] - [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Description(@"Update a ServiceResource")] + [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Description(@"update a ServiceResource")] [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Generated] public partial class UpdateAzKubernetesRuntimeService_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.IEventListener, diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/UpdateAzKubernetesRuntimeService_UpdateViaIdentityExpanded.cs b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/UpdateAzKubernetesRuntimeService_UpdateViaIdentityExpanded.cs index 59b43df47a70..047d1d71726b 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/UpdateAzKubernetesRuntimeService_UpdateViaIdentityExpanded.cs +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/UpdateAzKubernetesRuntimeService_UpdateViaIdentityExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.Cmdlets; using System; - /// Update a ServiceResource + /// update a ServiceResource /// /// [OpenAPI] Get=>GET:"/{resourceUri}/providers/Microsoft.KubernetesRuntime/services/{serviceName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/{resourceUri}/providers/Microsoft.KubernetesRuntime/services/{serviceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzKubernetesRuntimeService_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IServiceResource))] - [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Description(@"Update a ServiceResource")] + [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Description(@"update a ServiceResource")] [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Generated] public partial class UpdateAzKubernetesRuntimeService_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.IEventListener, diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/UpdateAzKubernetesRuntimeStorageClass_UpdateExpanded.cs b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/UpdateAzKubernetesRuntimeStorageClass_UpdateExpanded.cs index e678c68a37ca..6a7127fd5433 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/UpdateAzKubernetesRuntimeStorageClass_UpdateExpanded.cs +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/UpdateAzKubernetesRuntimeStorageClass_UpdateExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.Cmdlets; using System; - /// Update a StorageClassResource + /// update a StorageClassResource /// /// [OpenAPI] Update=>PATCH:"/{resourceUri}/providers/Microsoft.KubernetesRuntime/storageClasses/{storageClassName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzKubernetesRuntimeStorageClass_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IStorageClassResource))] - [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Description(@"Update a StorageClassResource")] + [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Description(@"update a StorageClassResource")] [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.HttpPath(Path = "/{resourceUri}/providers/Microsoft.KubernetesRuntime/storageClasses/{storageClassName}", ApiVersion = "2024-03-01")] public partial class UpdateAzKubernetesRuntimeStorageClass_UpdateExpanded : global::System.Management.Automation.PSCmdlet, @@ -40,18 +40,9 @@ public partial class UpdateAzKubernetesRuntimeStorageClass_UpdateExpanded : glob /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// The model for updating a storageClass private Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IStorageClassResourceUpdate _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.StorageClassResourceUpdate(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// The access mode: [ReadWriteOnce, ReadWriteMany] or [ReadWriteOnce] [global::System.Management.Automation.AllowEmptyCollection] [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The access mode: [ReadWriteOnce, ReadWriteMany] or [ReadWriteOnce]")] @@ -466,11 +457,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Cmdlets.UpdateAzKube /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -786,24 +772,7 @@ public UpdateAzKubernetesRuntimeStorageClass_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IStorageClassResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/UpdateAzKubernetesRuntimeStorageClass_UpdateViaIdentityExpanded.cs b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/UpdateAzKubernetesRuntimeStorageClass_UpdateViaIdentityExpanded.cs index dabc72d5e5ff..b09024e7cd30 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/UpdateAzKubernetesRuntimeStorageClass_UpdateViaIdentityExpanded.cs +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/UpdateAzKubernetesRuntimeStorageClass_UpdateViaIdentityExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.Cmdlets; using System; - /// Update a StorageClassResource + /// update a StorageClassResource /// /// [OpenAPI] Update=>PATCH:"/{resourceUri}/providers/Microsoft.KubernetesRuntime/storageClasses/{storageClassName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzKubernetesRuntimeStorageClass_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IStorageClassResource))] - [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Description(@"Update a StorageClassResource")] + [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Description(@"update a StorageClassResource")] [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.HttpPath(Path = "/{resourceUri}/providers/Microsoft.KubernetesRuntime/storageClasses/{storageClassName}", ApiVersion = "2024-03-01")] public partial class UpdateAzKubernetesRuntimeStorageClass_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, @@ -40,18 +40,9 @@ public partial class UpdateAzKubernetesRuntimeStorageClass_UpdateViaIdentityExpa /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// The model for updating a storageClass private Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IStorageClassResourceUpdate _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.StorageClassResourceUpdate(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// The access mode: [ReadWriteOnce, ReadWriteMany] or [ReadWriteOnce] [global::System.Management.Automation.AllowEmptyCollection] [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The access mode: [ReadWriteOnce, ReadWriteMany] or [ReadWriteOnce]")] @@ -444,11 +435,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Cmdlets.UpdateAzKube /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -781,24 +767,7 @@ public UpdateAzKubernetesRuntimeStorageClass_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IStorageClassResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/UpdateAzKubernetesRuntimeStorageClass_UpdateViaJsonFilePath.cs b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/UpdateAzKubernetesRuntimeStorageClass_UpdateViaJsonFilePath.cs index e1c9069b2b5a..25cd04651f48 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/UpdateAzKubernetesRuntimeStorageClass_UpdateViaJsonFilePath.cs +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/UpdateAzKubernetesRuntimeStorageClass_UpdateViaJsonFilePath.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.Cmdlets; using System; - /// Update a StorageClassResource + /// update a StorageClassResource /// /// [OpenAPI] Update=>PATCH:"/{resourceUri}/providers/Microsoft.KubernetesRuntime/storageClasses/{storageClassName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzKubernetesRuntimeStorageClass_UpdateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IStorageClassResource))] - [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Description(@"Update a StorageClassResource")] + [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Description(@"update a StorageClassResource")] [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.HttpPath(Path = "/{resourceUri}/providers/Microsoft.KubernetesRuntime/storageClasses/{storageClassName}", ApiVersion = "2024-03-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.NotSuggestDefaultParameterSet] @@ -41,17 +41,8 @@ public partial class UpdateAzKubernetesRuntimeStorageClass_UpdateViaJsonFilePath /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Backing field for property. private string _arcConnectedClusterId; @@ -246,11 +237,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Cmdlets.UpdateAzKube /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -566,24 +552,7 @@ public UpdateAzKubernetesRuntimeStorageClass_UpdateViaJsonFilePath() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IStorageClassResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/UpdateAzKubernetesRuntimeStorageClass_UpdateViaJsonString.cs b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/UpdateAzKubernetesRuntimeStorageClass_UpdateViaJsonString.cs index 238f86effae5..0a72199f372c 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/UpdateAzKubernetesRuntimeStorageClass_UpdateViaJsonString.cs +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/cmdlets/UpdateAzKubernetesRuntimeStorageClass_UpdateViaJsonString.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.Cmdlets; using System; - /// Update a StorageClassResource + /// update a StorageClassResource /// /// [OpenAPI] Update=>PATCH:"/{resourceUri}/providers/Microsoft.KubernetesRuntime/storageClasses/{storageClassName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzKubernetesRuntimeStorageClass_UpdateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IStorageClassResource))] - [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Description(@"Update a StorageClassResource")] + [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Description(@"update a StorageClassResource")] [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.HttpPath(Path = "/{resourceUri}/providers/Microsoft.KubernetesRuntime/storageClasses/{storageClassName}", ApiVersion = "2024-03-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.NotSuggestDefaultParameterSet] @@ -41,15 +41,6 @@ public partial class UpdateAzKubernetesRuntimeStorageClass_UpdateViaJsonString : /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Backing field for property. private string _arcConnectedClusterId; @@ -244,11 +235,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Cmdlets.UpdateAzKube /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -564,24 +550,7 @@ public UpdateAzKubernetesRuntimeStorageClass_UpdateViaJsonString() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.IStorageClassResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs index 991e414eea91..961885a13d79 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs @@ -36,14 +36,23 @@ internal class PsHelpInfo public object Role { get; } public string NonTerminatingErrors { get; } + public static string CapitalizeFirstLetter(string text) + { + if (string.IsNullOrEmpty(text)) + return text; + + return char.ToUpper(text[0]) + text.Substring(1); + } + public PsHelpInfo(PSObject helpObject = null) { helpObject = helpObject ?? new PSObject(); CmdletName = helpObject.GetProperty("Name").NullIfEmpty() ?? helpObject.GetNestedProperty("details", "name"); ModuleName = helpObject.GetProperty("ModuleName"); - Synopsis = helpObject.GetProperty("Synopsis"); + Synopsis = CapitalizeFirstLetter(helpObject.GetProperty("Synopsis")); Description = helpObject.GetProperty("description").EmptyIfNull().ToDescriptionText().NullIfEmpty() ?? helpObject.GetNestedProperty("details", "description").EmptyIfNull().ToDescriptionText(); + Description = CapitalizeFirstLetter(Description); AlertText = helpObject.GetNestedProperty("alertSet", "alert").EmptyIfNull().ToDescriptionText(); Category = helpObject.GetProperty("Category"); HasCommonParameters = helpObject.GetProperty("CommonParameters").ToNullableBool(); diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 27c87a120bc7..071d0164a0f3 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -216,6 +216,20 @@ public string GetProcessCustomAttributesAtRuntime() {Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)"; } + private string GetLoginVerification() + { + if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) + { + return $@" +{Indent}{Indent}$context = Get-AzContext +{Indent}{Indent}if (-not $context -and -not $testPlayback) {{ +{Indent}{Indent}{Indent}throw ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" +{Indent}{Indent}}} +"; + } + return ""; + } + private string GetTelemetry() { if (!VariantGroup.IsInternal && IsAzure) @@ -248,10 +262,16 @@ public override string ToString() => $@"begin {{ {Indent}{Indent}{Indent}$PSBoundParameters['OutBuffer'] = 1 {Indent}{Indent}}} {Indent}{Indent}$parameterSet = $PSCmdlet.ParameterSetName -{GetTelemetry()} +{Indent}{Indent} +{Indent}{Indent}$testPlayback = $false +{Indent}{Indent}$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object {{ if ($_) {{ $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) }} }} +{GetLoginVerification()}{GetTelemetry()} {GetParameterSetToCmdletMapping()}{GetDefaultValuesStatements()} {GetProcessCustomAttributesAtRuntime()} {Indent}{Indent}$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) +{Indent}{Indent}if ($wrappedCmd -eq $null) {{ +{Indent}{Indent}{Indent}$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) +{Indent}{Indent}}} {Indent}{Indent}$scriptCmd = {{& $wrappedCmd @PSBoundParameters}} {Indent}{Indent}$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) {Indent}{Indent}$steppablePipeline.Begin($PSCmdlet) @@ -295,8 +315,6 @@ private string GetDefaultValuesStatements() if ("SubscriptionId".Equals(parameterName)) { sb.AppendLine($"{Indent}{Indent}if (({variantListString}) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('{parameterName}'){setCondition}) {{"); - sb.AppendLine($"{Indent}{Indent}{Indent}$testPlayback = $false"); - sb.AppendLine($"{Indent}{Indent}{Indent}$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object {{ if ($_) {{ $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.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 {{"); diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs index d1119a13ac15..fb0fb587e5dd 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs @@ -49,6 +49,7 @@ internal class VariantGroup public PsHelpInfo HelpInfo { get; } public bool IsGenerated { get; } public bool IsInternal { get; } + public bool IsModelCmdlet { get; } public string OutputFolder { get; } public string FileName { get; } public string FilePath { get; } @@ -83,6 +84,7 @@ public VariantGroup(string moduleName, string cmdletName, Variant[] variants, st HelpInfo = Variants.Select(v => v.HelpInfo).FirstOrDefault() ?? new PsHelpInfo(); IsGenerated = Variants.All(v => v.Attributes.OfType().Any()); IsInternal = isInternal; + IsModelCmdlet = Variants.All(v => v.IsModelCmdlet); OutputFolder = outputFolder; FileName = $"{CmdletName}{(isTest ? ".Tests" : String.Empty)}.ps1"; FilePath = Path.Combine(OutputFolder, FileName); @@ -143,6 +145,7 @@ internal class Variant public Parameter[] Parameters { get; } public Parameter[] CmdletOnlyParameters { get; } public bool IsInternal { get; } + public bool IsModelCmdlet { get; } public bool IsDoNotExport { get; } public bool IsNotSuggestDefaultParameterSet { get; } public string[] Profiles { get; } @@ -165,6 +168,7 @@ public Variant(string cmdletName, string variantName, CommandInfo info, CommandM Parameters = this.ToParameters().OrderBy(p => p.OrderCategory).ThenByDescending(p => p.IsMandatory).ToArray(); IsInternal = Attributes.OfType().Any(); IsDoNotExport = Attributes.OfType().Any(); + IsModelCmdlet = Attributes.OfType().Any(); IsNotSuggestDefaultParameterSet = Attributes.OfType().Any(); CmdletOnlyParameters = Parameters.Where(p => !p.Categories.Any(c => c == ParameterCategory.Azure || c == ParameterCategory.Runtime)).ToArray(); Profiles = Attributes.OfType().SelectMany(pa => pa.Profiles).ToArray(); @@ -388,6 +392,7 @@ public CommentInfo(VariantGroup variantGroup) var helpInfo = variantGroup.HelpInfo; Description = variantGroup.Variants.SelectMany(v => v.Attributes).OfType().FirstOrDefault()?.Description.NullIfEmpty() ?? helpInfo.Description.EmptyIfNull(); + Description = PsHelpInfo.CapitalizeFirstLetter(Description); // If there is no Synopsis, PowerShell may put in the Syntax string as the Synopsis. This seems unintended, so we remove the Synopsis in this situation. var synopsis = helpInfo.Synopsis.EmptyIfNull().Trim().StartsWith(variantGroup.CmdletName) ? String.Empty : helpInfo.Synopsis; Synopsis = synopsis.NullIfEmpty() ?? Description; diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/runtime/BuildTime/PsAttributes.cs b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/runtime/BuildTime/PsAttributes.cs index d03d22862810..05bea246a654 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/runtime/BuildTime/PsAttributes.cs +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/runtime/BuildTime/PsAttributes.cs @@ -22,6 +22,11 @@ public class DoNotExportAttribute : Attribute { } + [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property)] + public class ModelCmdletAttribute : Attribute + { + } + [AttributeUsage(AttributeTargets.Class)] public class InternalExportAttribute : Attribute { diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/runtime/Context.cs b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/runtime/Context.cs index 1cb1e5f5be42..f66079cfadb4 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/runtime/Context.cs +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime /// The IContext Interface defines the communication mechanism for input customization. /// /// - /// In the context, we will have client, pipeline, PSBoundParamters, default EventListener, Cancellation. + /// In the context, we will have client, pipeline, PSBoundParameters, default EventListener, Cancellation. /// public interface IContext { diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/runtime/MessageAttribute.cs b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/runtime/MessageAttribute.cs index 34f1ca75f2b8..2bc6f10df971 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/runtime/MessageAttribute.cs +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/runtime/MessageAttribute.cs @@ -16,9 +16,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime public class GenericBreakingChangeAttribute : Attribute { private string _message; - //A dexcription of what the change is about, non mandatory + //A description of what the change is about, non mandatory public string ChangeDescription { get; set; } = null; + //Name of the module that is being deprecated + public string moduleName { get; set; } = String.IsNullOrEmpty(@"") ? @"Az.KubernetesRuntime" : @""; + //The version the change is effective from, non mandatory public string DeprecateByVersion { get; } public string DeprecateByAzVersion { get; } @@ -82,7 +85,7 @@ public void PrintCustomAttributeInfo(Action writeOutput) } writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByAzVersion, this.DeprecateByAzVersion)); - writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.DeprecateByVersion)); + writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.moduleName, this.DeprecateByVersion)); if (OldWay != null && NewWay != null) { @@ -191,11 +194,11 @@ public PreviewMessageAttribute(string message, string estimatedDateOfGa) : this( this.IsEstimatedGaDateSet = true; } } - + public void PrintCustomAttributeInfo(Action writeOutput) { writeOutput(this._message); - + if (IsEstimatedGaDateSet) { writeOutput(string.Format(Resources.PreviewCmdletETAMessage, this.EstimatedGaDate.ToShortDateString())); diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/runtime/Properties/Resources.resx b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/runtime/Properties/Resources.resx index a08a2e50172b..4ef90b70573d 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/generated/runtime/Properties/Resources.resx +++ b/generated/KubernetesRuntime/KubernetesRuntime.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 version : '{0}' +- The change is expected to take effect in '{0}' from version : '{1}' ```powershell diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/internal/Get-AzKubernetesRuntimeOperation.ps1 b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/internal/Get-AzKubernetesRuntimeOperation.ps1 index 25bc09541080..3f0b32ea68fb 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/internal/Get-AzKubernetesRuntimeOperation.ps1 +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/internal/Get-AzKubernetesRuntimeOperation.ps1 @@ -90,11 +90,17 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ List = 'Az.KubernetesRuntime.private\Get-AzKubernetesRuntimeOperation_List'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/internal/ProxyCmdletDefinitions.ps1 b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/internal/ProxyCmdletDefinitions.ps1 index 25bc09541080..3f0b32ea68fb 100644 --- a/generated/KubernetesRuntime/KubernetesRuntime.Autorest/internal/ProxyCmdletDefinitions.ps1 +++ b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/internal/ProxyCmdletDefinitions.ps1 @@ -90,11 +90,17 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ List = 'Az.KubernetesRuntime.private\Get-AzKubernetesRuntimeOperation_List'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/src/ImportExport/ImportExport.Autorest/resources/README.md b/generated/KubernetesRuntime/KubernetesRuntime.Autorest/resources/README.md similarity index 100% rename from src/ImportExport/ImportExport.Autorest/resources/README.md rename to generated/KubernetesRuntime/KubernetesRuntime.Autorest/resources/README.md diff --git a/generated/LabServices/LabServices.Autorest/exports/Add-AzLabServicesUserQuota.ps1 b/generated/LabServices/LabServices.Autorest/exports/Add-AzLabServicesUserQuota.ps1 index 93f6784f2962..d11e1e8dd718 100644 --- a/generated/LabServices/LabServices.Autorest/exports/Add-AzLabServicesUserQuota.ps1 +++ b/generated/LabServices/LabServices.Autorest/exports/Add-AzLabServicesUserQuota.ps1 @@ -149,8 +149,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/LabServices/LabServices.Autorest/exports/Get-AzLabServicesLab.ps1 b/generated/LabServices/LabServices.Autorest/exports/Get-AzLabServicesLab.ps1 index 6633d05b5476..fdfbeab86401 100644 --- a/generated/LabServices/LabServices.Autorest/exports/Get-AzLabServicesLab.ps1 +++ b/generated/LabServices/LabServices.Autorest/exports/Get-AzLabServicesLab.ps1 @@ -163,8 +163,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/LabServices/LabServices.Autorest/exports/Get-AzLabServicesLabForVM.ps1 b/generated/LabServices/LabServices.Autorest/exports/Get-AzLabServicesLabForVM.ps1 index 23b323c10bdc..42a8e53a3b03 100644 --- a/generated/LabServices/LabServices.Autorest/exports/Get-AzLabServicesLabForVM.ps1 +++ b/generated/LabServices/LabServices.Autorest/exports/Get-AzLabServicesLabForVM.ps1 @@ -105,8 +105,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/LabServices/LabServices.Autorest/exports/Get-AzLabServicesLabPlan.ps1 b/generated/LabServices/LabServices.Autorest/exports/Get-AzLabServicesLabPlan.ps1 index f269f9271652..04efa62a2d37 100644 --- a/generated/LabServices/LabServices.Autorest/exports/Get-AzLabServicesLabPlan.ps1 +++ b/generated/LabServices/LabServices.Autorest/exports/Get-AzLabServicesLabPlan.ps1 @@ -159,8 +159,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/LabServices/LabServices.Autorest/exports/Get-AzLabServicesPlanImage.ps1 b/generated/LabServices/LabServices.Autorest/exports/Get-AzLabServicesPlanImage.ps1 index 32e768f46484..7ca4fa1c5583 100644 --- a/generated/LabServices/LabServices.Autorest/exports/Get-AzLabServicesPlanImage.ps1 +++ b/generated/LabServices/LabServices.Autorest/exports/Get-AzLabServicesPlanImage.ps1 @@ -228,8 +228,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/LabServices/LabServices.Autorest/exports/Get-AzLabServicesSchedule.ps1 b/generated/LabServices/LabServices.Autorest/exports/Get-AzLabServicesSchedule.ps1 index 01eab2c95da5..d74c92e3fe49 100644 --- a/generated/LabServices/LabServices.Autorest/exports/Get-AzLabServicesSchedule.ps1 +++ b/generated/LabServices/LabServices.Autorest/exports/Get-AzLabServicesSchedule.ps1 @@ -236,8 +236,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/LabServices/LabServices.Autorest/exports/Get-AzLabServicesTemplateVM.ps1 b/generated/LabServices/LabServices.Autorest/exports/Get-AzLabServicesTemplateVM.ps1 index 2c1af0b31b0a..95a1af8c72ff 100644 --- a/generated/LabServices/LabServices.Autorest/exports/Get-AzLabServicesTemplateVM.ps1 +++ b/generated/LabServices/LabServices.Autorest/exports/Get-AzLabServicesTemplateVM.ps1 @@ -169,8 +169,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/LabServices/LabServices.Autorest/exports/Get-AzLabServicesUser.ps1 b/generated/LabServices/LabServices.Autorest/exports/Get-AzLabServicesUser.ps1 index 8d583e5bf4a9..1fddb888c304 100644 --- a/generated/LabServices/LabServices.Autorest/exports/Get-AzLabServicesUser.ps1 +++ b/generated/LabServices/LabServices.Autorest/exports/Get-AzLabServicesUser.ps1 @@ -238,8 +238,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/LabServices/LabServices.Autorest/exports/Get-AzLabServicesUserVM.ps1 b/generated/LabServices/LabServices.Autorest/exports/Get-AzLabServicesUserVM.ps1 index 57c5b3a8eef6..76cb3eb9f82e 100644 --- a/generated/LabServices/LabServices.Autorest/exports/Get-AzLabServicesUserVM.ps1 +++ b/generated/LabServices/LabServices.Autorest/exports/Get-AzLabServicesUserVM.ps1 @@ -192,8 +192,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/LabServices/LabServices.Autorest/exports/Get-AzLabServicesVM.ps1 b/generated/LabServices/LabServices.Autorest/exports/Get-AzLabServicesVM.ps1 index a43532573c14..9cbf8a106dd6 100644 --- a/generated/LabServices/LabServices.Autorest/exports/Get-AzLabServicesVM.ps1 +++ b/generated/LabServices/LabServices.Autorest/exports/Get-AzLabServicesVM.ps1 @@ -231,8 +231,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/LabServices/LabServices.Autorest/exports/New-AzLabServicesLab.ps1 b/generated/LabServices/LabServices.Autorest/exports/New-AzLabServicesLab.ps1 index 610034b602e6..a475bbddf533 100644 --- a/generated/LabServices/LabServices.Autorest/exports/New-AzLabServicesLab.ps1 +++ b/generated/LabServices/LabServices.Autorest/exports/New-AzLabServicesLab.ps1 @@ -438,8 +438,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/LabServices/LabServices.Autorest/exports/New-AzLabServicesLabPlan.ps1 b/generated/LabServices/LabServices.Autorest/exports/New-AzLabServicesLabPlan.ps1 index 64cac8221d0f..829aa43bdbcb 100644 --- a/generated/LabServices/LabServices.Autorest/exports/New-AzLabServicesLabPlan.ps1 +++ b/generated/LabServices/LabServices.Autorest/exports/New-AzLabServicesLabPlan.ps1 @@ -285,8 +285,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/LabServices/LabServices.Autorest/exports/New-AzLabServicesSchedule.ps1 b/generated/LabServices/LabServices.Autorest/exports/New-AzLabServicesSchedule.ps1 index 55565e9baf66..932c2a0b4046 100644 --- a/generated/LabServices/LabServices.Autorest/exports/New-AzLabServicesSchedule.ps1 +++ b/generated/LabServices/LabServices.Autorest/exports/New-AzLabServicesSchedule.ps1 @@ -301,8 +301,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/LabServices/LabServices.Autorest/exports/New-AzLabServicesUser.ps1 b/generated/LabServices/LabServices.Autorest/exports/New-AzLabServicesUser.ps1 index bff15b3ac2e5..5d9f86ea7d75 100644 --- a/generated/LabServices/LabServices.Autorest/exports/New-AzLabServicesUser.ps1 +++ b/generated/LabServices/LabServices.Autorest/exports/New-AzLabServicesUser.ps1 @@ -246,8 +246,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/LabServices/LabServices.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/LabServices/LabServices.Autorest/exports/ProxyCmdletDefinitions.ps1 index 4ab571095a11..1ec1a07c210f 100644 --- a/generated/LabServices/LabServices.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/LabServices/LabServices.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -159,8 +159,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -462,8 +461,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -774,8 +772,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1087,8 +1084,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1393,8 +1389,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1752,8 +1747,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2262,8 +2256,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2635,8 +2628,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2955,8 +2947,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3252,8 +3243,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3516,8 +3506,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3837,8 +3826,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4120,8 +4108,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4452,8 +4439,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4767,8 +4753,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5031,8 +5016,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5342,8 +5326,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5611,8 +5594,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5887,8 +5869,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6164,8 +6145,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6451,8 +6431,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6895,8 +6874,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -7363,8 +7341,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -7683,8 +7660,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -8093,8 +8069,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -8438,8 +8413,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -8719,8 +8693,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -8942,8 +8915,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -9118,8 +9090,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -9351,8 +9322,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -9594,8 +9564,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -9857,8 +9826,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -10076,8 +10044,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -10293,8 +10260,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -10552,8 +10518,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/LabServices/LabServices.Autorest/exports/Publish-AzLabServicesLab.ps1 b/generated/LabServices/LabServices.Autorest/exports/Publish-AzLabServicesLab.ps1 index dc8d25d2f8af..b8326927f5fa 100644 --- a/generated/LabServices/LabServices.Autorest/exports/Publish-AzLabServicesLab.ps1 +++ b/generated/LabServices/LabServices.Autorest/exports/Publish-AzLabServicesLab.ps1 @@ -223,8 +223,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/LabServices/LabServices.Autorest/exports/Remove-AzLabServicesLab.ps1 b/generated/LabServices/LabServices.Autorest/exports/Remove-AzLabServicesLab.ps1 index 699b802655df..319a86f39071 100644 --- a/generated/LabServices/LabServices.Autorest/exports/Remove-AzLabServicesLab.ps1 +++ b/generated/LabServices/LabServices.Autorest/exports/Remove-AzLabServicesLab.ps1 @@ -249,8 +249,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/LabServices/LabServices.Autorest/exports/Remove-AzLabServicesLabPlan.ps1 b/generated/LabServices/LabServices.Autorest/exports/Remove-AzLabServicesLabPlan.ps1 index 8a754f80d557..d672f3062759 100644 --- a/generated/LabServices/LabServices.Autorest/exports/Remove-AzLabServicesLabPlan.ps1 +++ b/generated/LabServices/LabServices.Autorest/exports/Remove-AzLabServicesLabPlan.ps1 @@ -191,8 +191,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/LabServices/LabServices.Autorest/exports/Remove-AzLabServicesSchedule.ps1 b/generated/LabServices/LabServices.Autorest/exports/Remove-AzLabServicesSchedule.ps1 index d3c7e76b6135..9ed2165fec5f 100644 --- a/generated/LabServices/LabServices.Autorest/exports/Remove-AzLabServicesSchedule.ps1 +++ b/generated/LabServices/LabServices.Autorest/exports/Remove-AzLabServicesSchedule.ps1 @@ -209,8 +209,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/LabServices/LabServices.Autorest/exports/Remove-AzLabServicesUser.ps1 b/generated/LabServices/LabServices.Autorest/exports/Remove-AzLabServicesUser.ps1 index 174ee9645efc..06788b27d63c 100644 --- a/generated/LabServices/LabServices.Autorest/exports/Remove-AzLabServicesUser.ps1 +++ b/generated/LabServices/LabServices.Autorest/exports/Remove-AzLabServicesUser.ps1 @@ -258,8 +258,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/LabServices/LabServices.Autorest/exports/Reset-AzLabServicesVMPassword.ps1 b/generated/LabServices/LabServices.Autorest/exports/Reset-AzLabServicesVMPassword.ps1 index 5af170d5e26d..7fec11d41eda 100644 --- a/generated/LabServices/LabServices.Autorest/exports/Reset-AzLabServicesVMPassword.ps1 +++ b/generated/LabServices/LabServices.Autorest/exports/Reset-AzLabServicesVMPassword.ps1 @@ -240,8 +240,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/LabServices/LabServices.Autorest/exports/Save-AzLabServicesLabPlanImage.ps1 b/generated/LabServices/LabServices.Autorest/exports/Save-AzLabServicesLabPlanImage.ps1 index 226f221f48b2..806daca8e5c4 100644 --- a/generated/LabServices/LabServices.Autorest/exports/Save-AzLabServicesLabPlanImage.ps1 +++ b/generated/LabServices/LabServices.Autorest/exports/Save-AzLabServicesLabPlanImage.ps1 @@ -188,8 +188,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/LabServices/LabServices.Autorest/exports/Send-AzLabServicesUserInvite.ps1 b/generated/LabServices/LabServices.Autorest/exports/Send-AzLabServicesUserInvite.ps1 index d271477561f1..d5bcb12ac60f 100644 --- a/generated/LabServices/LabServices.Autorest/exports/Send-AzLabServicesUserInvite.ps1 +++ b/generated/LabServices/LabServices.Autorest/exports/Send-AzLabServicesUserInvite.ps1 @@ -238,8 +238,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/LabServices/LabServices.Autorest/exports/Start-AzLabServicesUserVM.ps1 b/generated/LabServices/LabServices.Autorest/exports/Start-AzLabServicesUserVM.ps1 index 5b1f0eb13967..c252939ff0fe 100644 --- a/generated/LabServices/LabServices.Autorest/exports/Start-AzLabServicesUserVM.ps1 +++ b/generated/LabServices/LabServices.Autorest/exports/Start-AzLabServicesUserVM.ps1 @@ -146,8 +146,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/LabServices/LabServices.Autorest/exports/Start-AzLabServicesVM.ps1 b/generated/LabServices/LabServices.Autorest/exports/Start-AzLabServicesVM.ps1 index 892cd83c4b7a..75a2e2541a7a 100644 --- a/generated/LabServices/LabServices.Autorest/exports/Start-AzLabServicesVM.ps1 +++ b/generated/LabServices/LabServices.Autorest/exports/Start-AzLabServicesVM.ps1 @@ -203,8 +203,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/LabServices/LabServices.Autorest/exports/Start-AzLabServicesVMRedeployment.ps1 b/generated/LabServices/LabServices.Autorest/exports/Start-AzLabServicesVMRedeployment.ps1 index e69958dfe1a5..a2173ef4a93a 100644 --- a/generated/LabServices/LabServices.Autorest/exports/Start-AzLabServicesVMRedeployment.ps1 +++ b/generated/LabServices/LabServices.Autorest/exports/Start-AzLabServicesVMRedeployment.ps1 @@ -193,8 +193,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/LabServices/LabServices.Autorest/exports/Stop-AzLabServicesUserVM.ps1 b/generated/LabServices/LabServices.Autorest/exports/Stop-AzLabServicesUserVM.ps1 index 1b458247da60..f3900dd1535a 100644 --- a/generated/LabServices/LabServices.Autorest/exports/Stop-AzLabServicesUserVM.ps1 +++ b/generated/LabServices/LabServices.Autorest/exports/Stop-AzLabServicesUserVM.ps1 @@ -146,8 +146,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/LabServices/LabServices.Autorest/exports/Stop-AzLabServicesVM.ps1 b/generated/LabServices/LabServices.Autorest/exports/Stop-AzLabServicesVM.ps1 index b5404a478a41..d1e15520d7da 100644 --- a/generated/LabServices/LabServices.Autorest/exports/Stop-AzLabServicesVM.ps1 +++ b/generated/LabServices/LabServices.Autorest/exports/Stop-AzLabServicesVM.ps1 @@ -203,8 +203,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/LabServices/LabServices.Autorest/exports/Sync-AzLabServicesLabUser.ps1 b/generated/LabServices/LabServices.Autorest/exports/Sync-AzLabServicesLabUser.ps1 index ef081b2934c2..4b05e97da93c 100644 --- a/generated/LabServices/LabServices.Autorest/exports/Sync-AzLabServicesLabUser.ps1 +++ b/generated/LabServices/LabServices.Autorest/exports/Sync-AzLabServicesLabUser.ps1 @@ -213,8 +213,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/LabServices/LabServices.Autorest/exports/Update-AzLabServicesLab.ps1 b/generated/LabServices/LabServices.Autorest/exports/Update-AzLabServicesLab.ps1 index 3f32df2b4890..f9a9bdafb74b 100644 --- a/generated/LabServices/LabServices.Autorest/exports/Update-AzLabServicesLab.ps1 +++ b/generated/LabServices/LabServices.Autorest/exports/Update-AzLabServicesLab.ps1 @@ -394,8 +394,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/LabServices/LabServices.Autorest/exports/Update-AzLabServicesLabPlan.ps1 b/generated/LabServices/LabServices.Autorest/exports/Update-AzLabServicesLabPlan.ps1 index 5b84fa5044c0..5b0e4b8dcaa5 100644 --- a/generated/LabServices/LabServices.Autorest/exports/Update-AzLabServicesLabPlan.ps1 +++ b/generated/LabServices/LabServices.Autorest/exports/Update-AzLabServicesLabPlan.ps1 @@ -372,8 +372,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/LabServices/LabServices.Autorest/exports/Update-AzLabServicesPlanImage.ps1 b/generated/LabServices/LabServices.Autorest/exports/Update-AzLabServicesPlanImage.ps1 index a13ed380f38d..87bda69219cb 100644 --- a/generated/LabServices/LabServices.Autorest/exports/Update-AzLabServicesPlanImage.ps1 +++ b/generated/LabServices/LabServices.Autorest/exports/Update-AzLabServicesPlanImage.ps1 @@ -247,8 +247,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/LabServices/LabServices.Autorest/exports/Update-AzLabServicesQuota.ps1 b/generated/LabServices/LabServices.Autorest/exports/Update-AzLabServicesQuota.ps1 index e8f1ecec397e..3ba7b9175c1f 100644 --- a/generated/LabServices/LabServices.Autorest/exports/Update-AzLabServicesQuota.ps1 +++ b/generated/LabServices/LabServices.Autorest/exports/Update-AzLabServicesQuota.ps1 @@ -188,8 +188,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/LabServices/LabServices.Autorest/exports/Update-AzLabServicesSchedule.ps1 b/generated/LabServices/LabServices.Autorest/exports/Update-AzLabServicesSchedule.ps1 index 5bab5fe3a176..2f6dcc34165a 100644 --- a/generated/LabServices/LabServices.Autorest/exports/Update-AzLabServicesSchedule.ps1 +++ b/generated/LabServices/LabServices.Autorest/exports/Update-AzLabServicesSchedule.ps1 @@ -334,8 +334,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/LabServices/LabServices.Autorest/exports/Update-AzLabServicesUser.ps1 b/generated/LabServices/LabServices.Autorest/exports/Update-AzLabServicesUser.ps1 index 7ca9f3f7509a..1f01b57d9f33 100644 --- a/generated/LabServices/LabServices.Autorest/exports/Update-AzLabServicesUser.ps1 +++ b/generated/LabServices/LabServices.Autorest/exports/Update-AzLabServicesUser.ps1 @@ -269,8 +269,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/LabServices/LabServices.Autorest/exports/Update-AzLabServicesVMReimage.ps1 b/generated/LabServices/LabServices.Autorest/exports/Update-AzLabServicesVMReimage.ps1 index bbb8c611f490..4959f5b61f27 100644 --- a/generated/LabServices/LabServices.Autorest/exports/Update-AzLabServicesVMReimage.ps1 +++ b/generated/LabServices/LabServices.Autorest/exports/Update-AzLabServicesVMReimage.ps1 @@ -205,8 +205,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesLabPlan_Get.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesLabPlan_Get.cs index 8312d125bbcb..0ad2c1241278 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesLabPlan_Get.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesLabPlan_Get.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labPlans/{labPlanName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzLabServicesLabPlan_Get")] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabPlan))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Retrieves the properties of a Lab Plan.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesLabPlan_GetViaIdentity.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesLabPlan_GetViaIdentity.cs index 1d8f96c792f3..5e98bf1c2fbf 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesLabPlan_GetViaIdentity.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesLabPlan_GetViaIdentity.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labPlans/{labPlanName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzLabServicesLabPlan_GetViaIdentity")] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabPlan))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Retrieves the properties of a Lab Plan.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesLabPlan_List.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesLabPlan_List.cs index 0f879063cef0..7fd8db871f47 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesLabPlan_List.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesLabPlan_List.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] ListBySubscription=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.LabServices/labPlans" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzLabServicesLabPlan_List")] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabPlan))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Returns a list of all lab plans within a subscription")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesLabPlan_List1.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesLabPlan_List1.cs index b0c6afbb8309..8eb0b27ce3c8 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesLabPlan_List1.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesLabPlan_List1.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] ListByResourceGroup=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labPlans" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzLabServicesLabPlan_List1")] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabPlan))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Returns a list of all lab plans for a subscription and resource group.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesLab_Get.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesLab_Get.cs index b5ae70787f35..11c30adc68df 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesLab_Get.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesLab_Get.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzLabServicesLab_Get")] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILab))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Returns the properties of a lab resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesLab_GetViaIdentity.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesLab_GetViaIdentity.cs index 3cf9a5732c79..9557ac5b554e 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesLab_GetViaIdentity.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesLab_GetViaIdentity.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzLabServicesLab_GetViaIdentity")] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILab))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Returns the properties of a lab resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesLab_List.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesLab_List.cs index a60ebe662fd8..a1cf5bbc6d24 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesLab_List.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesLab_List.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzLabServicesLab_List")] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILab))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Returns a list of all labs for a subscription.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesLab_List1.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesLab_List1.cs index 17beff17c74d..75794c2dcf62 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesLab_List1.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesLab_List1.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzLabServicesLab_List1")] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILab))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Returns a list of all labs in a resource group.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesPlanImage_Get.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesPlanImage_Get.cs index 20b6c6bd3017..eb6c4dc723d2 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesPlanImage_Get.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesPlanImage_Get.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labPlans/{labPlanName}/images/{imageName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzLabServicesPlanImage_Get")] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IImage))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Gets an image resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesPlanImage_GetViaIdentity.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesPlanImage_GetViaIdentity.cs index 10dbde8db482..89b185767896 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesPlanImage_GetViaIdentity.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesPlanImage_GetViaIdentity.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labPlans/{labPlanName}/images/{imageName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzLabServicesPlanImage_GetViaIdentity")] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IImage))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Gets an image resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesPlanImage_GetViaIdentityLabPlan.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesPlanImage_GetViaIdentityLabPlan.cs index 62d69505155d..a1946a8fd8fe 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesPlanImage_GetViaIdentityLabPlan.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesPlanImage_GetViaIdentityLabPlan.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labPlans/{labPlanName}/images/{imageName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzLabServicesPlanImage_GetViaIdentityLabPlan")] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IImage))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Gets an image resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesPlanImage_List.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesPlanImage_List.cs index 893713a7e1f9..35c26b4fc906 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesPlanImage_List.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesPlanImage_List.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] ListByLabPlan=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labPlans/{labPlanName}/images" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzLabServicesPlanImage_List")] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IImage))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Gets all images from galleries attached to a lab plan.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesSchedule_Get.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesSchedule_Get.cs index b9f11c5674f5..3b43bff2b287 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesSchedule_Get.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesSchedule_Get.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/schedules/{scheduleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzLabServicesSchedule_Get")] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ISchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Returns the properties of a lab Schedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesSchedule_GetViaIdentity.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesSchedule_GetViaIdentity.cs index c5d11e51229e..fc3b12a59271 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesSchedule_GetViaIdentity.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesSchedule_GetViaIdentity.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/schedules/{scheduleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzLabServicesSchedule_GetViaIdentity")] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ISchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Returns the properties of a lab Schedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesSchedule_GetViaIdentityLab.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesSchedule_GetViaIdentityLab.cs index c62882c2be5e..39f743b725fa 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesSchedule_GetViaIdentityLab.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesSchedule_GetViaIdentityLab.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/schedules/{scheduleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzLabServicesSchedule_GetViaIdentityLab")] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ISchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Returns the properties of a lab Schedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesSchedule_List.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesSchedule_List.cs index e135d033125b..54dbba55f36c 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesSchedule_List.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesSchedule_List.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] ListByLab=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/schedules" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzLabServicesSchedule_List")] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ISchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Returns a list of all schedules for a lab.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesUser_Get.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesUser_Get.cs index bfae308f61fa..7f620d59959b 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesUser_Get.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesUser_Get.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/users/{userName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzLabServicesUser_Get")] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IUser))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Returns the properties of a lab user.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesUser_GetViaIdentity.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesUser_GetViaIdentity.cs index 3e6076255987..a0e67de9268e 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesUser_GetViaIdentity.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesUser_GetViaIdentity.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/users/{userName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzLabServicesUser_GetViaIdentity")] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IUser))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Returns the properties of a lab user.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesUser_GetViaIdentityLab.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesUser_GetViaIdentityLab.cs index 8bf313ccfdbf..07717f047fc7 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesUser_GetViaIdentityLab.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesUser_GetViaIdentityLab.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/users/{userName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzLabServicesUser_GetViaIdentityLab")] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IUser))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Returns the properties of a lab user.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesUser_List.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesUser_List.cs index 0f25e7d8d88e..9cba6421caa1 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesUser_List.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesUser_List.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] ListByLab=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/users" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzLabServicesUser_List")] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IUser))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Returns a list of all users for a lab.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesVM_Get.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesVM_Get.cs index 6c161e43ca32..699ce6f5792b 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesVM_Get.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesVM_Get.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/virtualMachines/{virtualMachineName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzLabServicesVM_Get")] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Returns the properties for a lab virtual machine.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesVM_GetViaIdentity.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesVM_GetViaIdentity.cs index cf895b5c7bbe..8440a49d67df 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesVM_GetViaIdentity.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesVM_GetViaIdentity.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/virtualMachines/{virtualMachineName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzLabServicesVM_GetViaIdentity")] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Returns the properties for a lab virtual machine.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesVM_GetViaIdentityLab.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesVM_GetViaIdentityLab.cs index 9e1350df2f35..3f1b1bac48ff 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesVM_GetViaIdentityLab.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesVM_GetViaIdentityLab.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/virtualMachines/{virtualMachineName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzLabServicesVM_GetViaIdentityLab")] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Returns the properties for a lab virtual machine.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesVM_List.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesVM_List.cs index 3952054956d6..8152ccdad28d 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesVM_List.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/GetAzLabServicesVM_List.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] ListByLab=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/virtualMachines" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzLabServicesVM_List")] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IVirtualMachine))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Returns a list of all virtual machines for a lab.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/NewAzLabServicesLabPlan_CreateExpanded.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/NewAzLabServicesLabPlan_CreateExpanded.cs index bb551c6a9fea..4fab75498253 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/NewAzLabServicesLabPlan_CreateExpanded.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/NewAzLabServicesLabPlan_CreateExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labPlans/{labPlanName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzLabServicesLabPlan_CreateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabPlan))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Operation to create a Lab Plan resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -47,15 +47,6 @@ public partial class NewAzLabServicesLabPlan_CreateExpanded : global::System.Man /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// /// The allowed regions for the lab creator to use when creating labs using this lab plan. /// @@ -498,11 +489,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.NewAzLabServicesLa /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -818,24 +804,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabPlan var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/NewAzLabServicesLabPlan_CreateViaJsonFilePath.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/NewAzLabServicesLabPlan_CreateViaJsonFilePath.cs index 098cba3a077f..43d02730d3b5 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/NewAzLabServicesLabPlan_CreateViaJsonFilePath.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/NewAzLabServicesLabPlan_CreateViaJsonFilePath.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labPlans/{labPlanName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzLabServicesLabPlan_CreateViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabPlan))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Operation to create a Lab Plan resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -42,17 +42,8 @@ public partial class NewAzLabServicesLabPlan_CreateViaJsonFilePath : global::Sys /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LabServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.ParameterCategory.Runtime)] @@ -266,11 +257,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.NewAzLabServicesLa /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -586,24 +572,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabPlan var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/NewAzLabServicesLabPlan_CreateViaJsonString.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/NewAzLabServicesLabPlan_CreateViaJsonString.cs index 513a7edcf22b..73b00a9cb74e 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/NewAzLabServicesLabPlan_CreateViaJsonString.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/NewAzLabServicesLabPlan_CreateViaJsonString.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labPlans/{labPlanName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzLabServicesLabPlan_CreateViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabPlan))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Operation to create a Lab Plan resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -42,15 +42,6 @@ public partial class NewAzLabServicesLabPlan_CreateViaJsonString : global::Syste /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LabServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.ParameterCategory.Runtime)] @@ -264,11 +255,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.NewAzLabServicesLa /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -584,24 +570,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabPlan var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/NewAzLabServicesLab_CreateExpanded.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/NewAzLabServicesLab_CreateExpanded.cs index abe44246e76c..a401ab0ffcc2 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/NewAzLabServicesLab_CreateExpanded.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/NewAzLabServicesLab_CreateExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzLabServicesLab_CreateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILab))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Operation to create a lab resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -44,15 +44,6 @@ public partial class NewAzLabServicesLab_CreateExpanded : global::System.Managem /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Flag to pre-install dedicated GPU drivers. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Flag to pre-install dedicated GPU drivers.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.ParameterCategory.Body)] @@ -755,11 +746,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.NewAzLabServicesLa /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -1075,24 +1061,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILab var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/NewAzLabServicesLab_CreateViaJsonFilePath.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/NewAzLabServicesLab_CreateViaJsonFilePath.cs index 8f1687a2c834..13dd839f56da 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/NewAzLabServicesLab_CreateViaJsonFilePath.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/NewAzLabServicesLab_CreateViaJsonFilePath.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzLabServicesLab_CreateViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILab))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Operation to create a lab resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -42,17 +42,8 @@ public partial class NewAzLabServicesLab_CreateViaJsonFilePath : global::System. /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LabServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.ParameterCategory.Runtime)] @@ -266,11 +257,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.NewAzLabServicesLa /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -586,24 +572,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILab var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/NewAzLabServicesLab_CreateViaJsonString.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/NewAzLabServicesLab_CreateViaJsonString.cs index b32cbb70c8ff..5c62fcb279bd 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/NewAzLabServicesLab_CreateViaJsonString.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/NewAzLabServicesLab_CreateViaJsonString.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzLabServicesLab_CreateViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILab))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Operation to create a lab resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -42,15 +42,6 @@ public partial class NewAzLabServicesLab_CreateViaJsonString : global::System.Ma /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LabServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.ParameterCategory.Runtime)] @@ -264,11 +255,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.NewAzLabServicesLa /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -584,24 +570,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILab var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/NewAzLabServicesSchedule_CreateExpanded.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/NewAzLabServicesSchedule_CreateExpanded.cs index 5c523a23e218..7939613df822 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/NewAzLabServicesSchedule_CreateExpanded.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/NewAzLabServicesSchedule_CreateExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/schedules/{scheduleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzLabServicesSchedule_CreateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ISchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Operation to create a lab schedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/NewAzLabServicesSchedule_CreateViaIdentityLabExpanded.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/NewAzLabServicesSchedule_CreateViaIdentityLabExpanded.cs index 48f941ae9e83..62b139e355c3 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/NewAzLabServicesSchedule_CreateViaIdentityLabExpanded.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/NewAzLabServicesSchedule_CreateViaIdentityLabExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/schedules/{scheduleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzLabServicesSchedule_CreateViaIdentityLabExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ISchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Operation to create a lab schedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/NewAzLabServicesSchedule_CreateViaJsonFilePath.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/NewAzLabServicesSchedule_CreateViaJsonFilePath.cs index 9f3b97ae9a4d..49911c3d0d97 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/NewAzLabServicesSchedule_CreateViaJsonFilePath.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/NewAzLabServicesSchedule_CreateViaJsonFilePath.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/schedules/{scheduleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzLabServicesSchedule_CreateViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ISchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Operation to create a lab schedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/NewAzLabServicesSchedule_CreateViaJsonString.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/NewAzLabServicesSchedule_CreateViaJsonString.cs index b168d80e9c4b..d80e55d190fd 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/NewAzLabServicesSchedule_CreateViaJsonString.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/NewAzLabServicesSchedule_CreateViaJsonString.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/schedules/{scheduleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzLabServicesSchedule_CreateViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ISchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Operation to create a lab schedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/NewAzLabServicesUser_CreateExpanded.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/NewAzLabServicesUser_CreateExpanded.cs index be871cd339eb..1c018e7485ed 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/NewAzLabServicesUser_CreateExpanded.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/NewAzLabServicesUser_CreateExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/users/{userName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzLabServicesUser_CreateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IUser))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Operation to create a lab user.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -44,15 +44,6 @@ public partial class NewAzLabServicesUser_CreateExpanded : global::System.Manage /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// /// The amount of usage quota time the user gets in addition to the lab usage quota. /// @@ -294,11 +285,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.NewAzLabServicesUs /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -614,24 +600,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IUser var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/NewAzLabServicesUser_CreateViaIdentityLabExpanded.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/NewAzLabServicesUser_CreateViaIdentityLabExpanded.cs index dec5260f02f7..8add8c3d0627 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/NewAzLabServicesUser_CreateViaIdentityLabExpanded.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/NewAzLabServicesUser_CreateViaIdentityLabExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/users/{userName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzLabServicesUser_CreateViaIdentityLabExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IUser))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Operation to create a lab user.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -44,15 +44,6 @@ public partial class NewAzLabServicesUser_CreateViaIdentityLabExpanded : global: /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// /// The amount of usage quota time the user gets in addition to the lab usage quota. /// @@ -250,11 +241,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.NewAzLabServicesUs /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -591,24 +577,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IUser var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/NewAzLabServicesUser_CreateViaJsonFilePath.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/NewAzLabServicesUser_CreateViaJsonFilePath.cs index 9a84c8522c66..fe3ba5113cda 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/NewAzLabServicesUser_CreateViaJsonFilePath.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/NewAzLabServicesUser_CreateViaJsonFilePath.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/users/{userName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzLabServicesUser_CreateViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IUser))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Operation to create a lab user.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -42,17 +42,8 @@ public partial class NewAzLabServicesUser_CreateViaJsonFilePath : global::System /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LabServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.ParameterCategory.Runtime)] @@ -283,11 +274,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.NewAzLabServicesUs /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -603,24 +589,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IUser var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/NewAzLabServicesUser_CreateViaJsonString.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/NewAzLabServicesUser_CreateViaJsonString.cs index c858fea63be6..ce65c06be1ca 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/NewAzLabServicesUser_CreateViaJsonString.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/NewAzLabServicesUser_CreateViaJsonString.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/users/{userName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzLabServicesUser_CreateViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IUser))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Operation to create a lab user.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -42,15 +42,6 @@ public partial class NewAzLabServicesUser_CreateViaJsonString : global::System.M /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LabServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.ParameterCategory.Runtime)] @@ -281,11 +272,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.NewAzLabServicesUs /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -601,24 +587,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IUser var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/PublishAzLabServicesLab_Publish.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/PublishAzLabServicesLab_Publish.cs index 1320b0c8e201..7d430e9191e7 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/PublishAzLabServicesLab_Publish.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/PublishAzLabServicesLab_Publish.cs @@ -17,7 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Publish=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/publish" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Publish, @"AzLabServicesLab_Publish", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Publish or re-publish a lab. This will create or update all lab resources, such as virtual machines.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -43,15 +43,6 @@ public partial class PublishAzLabServicesLab_Publish : global::System.Management /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LabServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.ParameterCategory.Runtime)] @@ -256,11 +247,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.PublishAzLabServic /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -572,7 +558,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/PublishAzLabServicesLab_PublishViaIdentity.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/PublishAzLabServicesLab_PublishViaIdentity.cs index 6c9ec949967c..13098818643a 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/PublishAzLabServicesLab_PublishViaIdentity.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/PublishAzLabServicesLab_PublishViaIdentity.cs @@ -17,7 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Publish=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/publish" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Publish, @"AzLabServicesLab_PublishViaIdentity", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Publish or re-publish a lab. This will create or update all lab resources, such as virtual machines.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -43,15 +43,6 @@ public partial class PublishAzLabServicesLab_PublishViaIdentity : global::System /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LabServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.ParameterCategory.Runtime)] @@ -211,11 +202,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.PublishAzLabServic /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -547,7 +533,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/RemoveAzLabServicesLabPlan_Delete.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/RemoveAzLabServicesLabPlan_Delete.cs index 157566018e92..f5093ef55ac6 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/RemoveAzLabServicesLabPlan_Delete.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/RemoveAzLabServicesLabPlan_Delete.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labPlans/{labPlanName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzLabServicesLabPlan_Delete", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Operation to delete a Lab Plan resource. Deleting a lab plan does not delete labs associated with a lab plan, nor does it delete shared images added to a gallery via the lab plan permission container.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -44,15 +44,6 @@ public partial class RemoveAzLabServicesLabPlan_Delete : global::System.Manageme /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LabServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.ParameterCategory.Runtime)] @@ -267,11 +258,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.RemoveAzLabService /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -583,7 +569,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -607,7 +593,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/RemoveAzLabServicesLabPlan_DeleteViaIdentity.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/RemoveAzLabServicesLabPlan_DeleteViaIdentity.cs index d8f0a48fcc8e..06e85210cce8 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/RemoveAzLabServicesLabPlan_DeleteViaIdentity.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/RemoveAzLabServicesLabPlan_DeleteViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labPlans/{labPlanName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzLabServicesLabPlan_DeleteViaIdentity", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Operation to delete a Lab Plan resource. Deleting a lab plan does not delete labs associated with a lab plan, nor does it delete shared images added to a gallery via the lab plan permission container.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -44,15 +44,6 @@ public partial class RemoveAzLabServicesLabPlan_DeleteViaIdentity : global::Syst /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LabServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.ParameterCategory.Runtime)] @@ -222,11 +213,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.RemoveAzLabService /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -558,7 +544,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -582,7 +568,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/RemoveAzLabServicesLab_Delete.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/RemoveAzLabServicesLab_Delete.cs index 6d225a605214..1b8c8f9ecf4a 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/RemoveAzLabServicesLab_Delete.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/RemoveAzLabServicesLab_Delete.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzLabServicesLab_Delete", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Operation to delete a lab resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -41,15 +41,6 @@ public partial class RemoveAzLabServicesLab_Delete : global::System.Management.A /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LabServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.ParameterCategory.Runtime)] @@ -264,11 +255,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.RemoveAzLabService /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -580,7 +566,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -604,7 +590,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/RemoveAzLabServicesLab_DeleteViaIdentity.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/RemoveAzLabServicesLab_DeleteViaIdentity.cs index fbc680191f14..9b940b0e8b18 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/RemoveAzLabServicesLab_DeleteViaIdentity.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/RemoveAzLabServicesLab_DeleteViaIdentity.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzLabServicesLab_DeleteViaIdentity", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Operation to delete a lab resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -41,15 +41,6 @@ public partial class RemoveAzLabServicesLab_DeleteViaIdentity : global::System.M /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LabServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.ParameterCategory.Runtime)] @@ -219,11 +210,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.RemoveAzLabService /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -555,7 +541,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -579,7 +565,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/RemoveAzLabServicesSchedule_Delete.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/RemoveAzLabServicesSchedule_Delete.cs index 91496d46f943..6e36188de5f9 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/RemoveAzLabServicesSchedule_Delete.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/RemoveAzLabServicesSchedule_Delete.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/schedules/{scheduleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzLabServicesSchedule_Delete", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Operation to delete a schedule resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -41,15 +41,6 @@ public partial class RemoveAzLabServicesSchedule_Delete : global::System.Managem /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LabServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.ParameterCategory.Runtime)] @@ -281,11 +272,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.RemoveAzLabService /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -597,7 +583,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -621,7 +607,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/RemoveAzLabServicesSchedule_DeleteViaIdentity.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/RemoveAzLabServicesSchedule_DeleteViaIdentity.cs index 1e7e4058eeec..0ec40fd8d975 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/RemoveAzLabServicesSchedule_DeleteViaIdentity.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/RemoveAzLabServicesSchedule_DeleteViaIdentity.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/schedules/{scheduleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzLabServicesSchedule_DeleteViaIdentity", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Operation to delete a schedule resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -41,15 +41,6 @@ public partial class RemoveAzLabServicesSchedule_DeleteViaIdentity : global::Sys /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LabServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.ParameterCategory.Runtime)] @@ -219,11 +210,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.RemoveAzLabService /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -559,7 +545,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -583,7 +569,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/RemoveAzLabServicesSchedule_DeleteViaIdentityLab.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/RemoveAzLabServicesSchedule_DeleteViaIdentityLab.cs index ba6461093d0d..2dfec51076af 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/RemoveAzLabServicesSchedule_DeleteViaIdentityLab.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/RemoveAzLabServicesSchedule_DeleteViaIdentityLab.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/schedules/{scheduleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzLabServicesSchedule_DeleteViaIdentityLab", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Operation to delete a schedule resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -41,15 +41,6 @@ public partial class RemoveAzLabServicesSchedule_DeleteViaIdentityLab : global:: /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LabServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.ParameterCategory.Runtime)] @@ -237,11 +228,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.RemoveAzLabService /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -574,7 +560,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -598,7 +584,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/RemoveAzLabServicesUser_Delete.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/RemoveAzLabServicesUser_Delete.cs index 088d9ae7ffe7..701c017d7512 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/RemoveAzLabServicesUser_Delete.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/RemoveAzLabServicesUser_Delete.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/users/{userName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzLabServicesUser_Delete", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Operation to delete a user resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -41,15 +41,6 @@ public partial class RemoveAzLabServicesUser_Delete : global::System.Management. /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LabServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.ParameterCategory.Runtime)] @@ -281,11 +272,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.RemoveAzLabService /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -597,7 +583,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -621,7 +607,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/RemoveAzLabServicesUser_DeleteViaIdentity.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/RemoveAzLabServicesUser_DeleteViaIdentity.cs index a0ac75aaf943..670d3fb7fe8c 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/RemoveAzLabServicesUser_DeleteViaIdentity.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/RemoveAzLabServicesUser_DeleteViaIdentity.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/users/{userName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzLabServicesUser_DeleteViaIdentity", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Operation to delete a user resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -41,15 +41,6 @@ public partial class RemoveAzLabServicesUser_DeleteViaIdentity : global::System. /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LabServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.ParameterCategory.Runtime)] @@ -219,11 +210,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.RemoveAzLabService /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -559,7 +545,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -583,7 +569,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/RemoveAzLabServicesUser_DeleteViaIdentityLab.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/RemoveAzLabServicesUser_DeleteViaIdentityLab.cs index b1849299f5eb..cb668264d281 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/RemoveAzLabServicesUser_DeleteViaIdentityLab.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/RemoveAzLabServicesUser_DeleteViaIdentityLab.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/users/{userName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzLabServicesUser_DeleteViaIdentityLab", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Operation to delete a user resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -41,15 +41,6 @@ public partial class RemoveAzLabServicesUser_DeleteViaIdentityLab : global::Syst /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LabServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.ParameterCategory.Runtime)] @@ -237,11 +228,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.RemoveAzLabService /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -574,7 +560,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -598,7 +584,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/ResetAzLabServicesVMPassword_ResetExpanded.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/ResetAzLabServicesVMPassword_ResetExpanded.cs index bd03093d7f25..a3acc2ee0d5f 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/ResetAzLabServicesVMPassword_ResetExpanded.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/ResetAzLabServicesVMPassword_ResetExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] ResetPassword=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/virtualMachines/{virtualMachineName}/resetPassword" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Reset, @"AzLabServicesVMPassword_ResetExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Resets a lab virtual machine password.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -44,15 +44,6 @@ public partial class ResetAzLabServicesVMPassword_ResetExpanded : global::System /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LabServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.ParameterCategory.Runtime)] @@ -296,11 +287,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.ResetAzLabServices /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -612,7 +598,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/ResetAzLabServicesVMPassword_ResetViaIdentityExpanded.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/ResetAzLabServicesVMPassword_ResetViaIdentityExpanded.cs index 290fd069c3f5..9fa1e2b7fb51 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/ResetAzLabServicesVMPassword_ResetViaIdentityExpanded.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/ResetAzLabServicesVMPassword_ResetViaIdentityExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] ResetPassword=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/virtualMachines/{virtualMachineName}/resetPassword" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Reset, @"AzLabServicesVMPassword_ResetViaIdentityExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Resets a lab virtual machine password.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -44,15 +44,6 @@ public partial class ResetAzLabServicesVMPassword_ResetViaIdentityExpanded : glo /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LabServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.ParameterCategory.Runtime)] @@ -235,11 +226,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.ResetAzLabServices /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -575,7 +561,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/ResetAzLabServicesVMPassword_ResetViaIdentityLabExpanded.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/ResetAzLabServicesVMPassword_ResetViaIdentityLabExpanded.cs index 56310d95fb15..b2c0fc077ffd 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/ResetAzLabServicesVMPassword_ResetViaIdentityLabExpanded.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/ResetAzLabServicesVMPassword_ResetViaIdentityLabExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] ResetPassword=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/virtualMachines/{virtualMachineName}/resetPassword" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Reset, @"AzLabServicesVMPassword_ResetViaIdentityLabExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Resets a lab virtual machine password.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -44,15 +44,6 @@ public partial class ResetAzLabServicesVMPassword_ResetViaIdentityLabExpanded : /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LabServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.ParameterCategory.Runtime)] @@ -254,11 +245,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.ResetAzLabServices /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -591,7 +577,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/ResetAzLabServicesVMPassword_ResetViaJsonFilePath.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/ResetAzLabServicesVMPassword_ResetViaJsonFilePath.cs index 4d2b30978cf6..909c8f4be401 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/ResetAzLabServicesVMPassword_ResetViaJsonFilePath.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/ResetAzLabServicesVMPassword_ResetViaJsonFilePath.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] ResetPassword=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/virtualMachines/{virtualMachineName}/resetPassword" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Reset, @"AzLabServicesVMPassword_ResetViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Resets a lab virtual machine password.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -42,17 +42,8 @@ public partial class ResetAzLabServicesVMPassword_ResetViaJsonFilePath : global: /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LabServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.ParameterCategory.Runtime)] @@ -287,11 +278,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.ResetAzLabServices /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -603,7 +589,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/ResetAzLabServicesVMPassword_ResetViaJsonString.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/ResetAzLabServicesVMPassword_ResetViaJsonString.cs index 6ba89d00ac69..2accad38e79a 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/ResetAzLabServicesVMPassword_ResetViaJsonString.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/ResetAzLabServicesVMPassword_ResetViaJsonString.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] ResetPassword=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/virtualMachines/{virtualMachineName}/resetPassword" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Reset, @"AzLabServicesVMPassword_ResetViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Resets a lab virtual machine password.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -42,15 +42,6 @@ public partial class ResetAzLabServicesVMPassword_ResetViaJsonString : global::S /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LabServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.ParameterCategory.Runtime)] @@ -285,11 +276,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.ResetAzLabServices /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -601,7 +587,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/SaveAzLabServicesLabPlanImage_SaveExpanded.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/SaveAzLabServicesLabPlanImage_SaveExpanded.cs index 8bebe87e4a2f..6a02ce98761f 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/SaveAzLabServicesLabPlanImage_SaveExpanded.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/SaveAzLabServicesLabPlanImage_SaveExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] SaveImage=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labPlans/{labPlanName}/saveImage" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Save, @"AzLabServicesLabPlanImage_SaveExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Saves an image from a lab VM to the attached shared image gallery.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -44,15 +44,6 @@ public partial class SaveAzLabServicesLabPlanImage_SaveExpanded : global::System /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LabServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.ParameterCategory.Runtime)] @@ -279,11 +270,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.SaveAzLabServicesL /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -595,7 +581,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/SaveAzLabServicesLabPlanImage_SaveViaIdentityExpanded.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/SaveAzLabServicesLabPlanImage_SaveViaIdentityExpanded.cs index cb6272672baa..bbd6ee0d4576 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/SaveAzLabServicesLabPlanImage_SaveViaIdentityExpanded.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/SaveAzLabServicesLabPlanImage_SaveViaIdentityExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] SaveImage=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labPlans/{labPlanName}/saveImage" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Save, @"AzLabServicesLabPlanImage_SaveViaIdentityExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Saves an image from a lab VM to the attached shared image gallery.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -44,15 +44,6 @@ public partial class SaveAzLabServicesLabPlanImage_SaveViaIdentityExpanded : glo /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LabServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.ParameterCategory.Runtime)] @@ -235,11 +226,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.SaveAzLabServicesL /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -571,7 +557,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/SaveAzLabServicesLabPlanImage_SaveViaJsonFilePath.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/SaveAzLabServicesLabPlanImage_SaveViaJsonFilePath.cs index 005a7548228e..fcb390f17f98 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/SaveAzLabServicesLabPlanImage_SaveViaJsonFilePath.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/SaveAzLabServicesLabPlanImage_SaveViaJsonFilePath.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] SaveImage=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labPlans/{labPlanName}/saveImage" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Save, @"AzLabServicesLabPlanImage_SaveViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Saves an image from a lab VM to the attached shared image gallery.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -42,17 +42,8 @@ public partial class SaveAzLabServicesLabPlanImage_SaveViaJsonFilePath : global: /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LabServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.ParameterCategory.Runtime)] @@ -270,11 +261,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.SaveAzLabServicesL /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -586,7 +572,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/SaveAzLabServicesLabPlanImage_SaveViaJsonString.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/SaveAzLabServicesLabPlanImage_SaveViaJsonString.cs index 83a63832562c..d83e3b3575d7 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/SaveAzLabServicesLabPlanImage_SaveViaJsonString.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/SaveAzLabServicesLabPlanImage_SaveViaJsonString.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] SaveImage=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labPlans/{labPlanName}/saveImage" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Save, @"AzLabServicesLabPlanImage_SaveViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Saves an image from a lab VM to the attached shared image gallery.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -42,15 +42,6 @@ public partial class SaveAzLabServicesLabPlanImage_SaveViaJsonString : global::S /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LabServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.ParameterCategory.Runtime)] @@ -268,11 +259,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.SaveAzLabServicesL /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -584,7 +570,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/SendAzLabServicesUserInvite_InviteExpanded.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/SendAzLabServicesUserInvite_InviteExpanded.cs index 5d4f65401622..2050187dcee4 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/SendAzLabServicesUserInvite_InviteExpanded.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/SendAzLabServicesUserInvite_InviteExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Invite=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/users/{userName}/invite" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommunications.Send, @"AzLabServicesUserInvite_InviteExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Operation to invite a user to a lab.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -44,15 +44,6 @@ public partial class SendAzLabServicesUserInvite_InviteExpanded : global::System /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LabServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.ParameterCategory.Runtime)] @@ -285,11 +276,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.SendAzLabServicesU /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -601,7 +587,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/SendAzLabServicesUserInvite_InviteViaIdentityExpanded.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/SendAzLabServicesUserInvite_InviteViaIdentityExpanded.cs index 2b74e0c54312..21fe9f284bce 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/SendAzLabServicesUserInvite_InviteViaIdentityExpanded.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/SendAzLabServicesUserInvite_InviteViaIdentityExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Invite=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/users/{userName}/invite" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommunications.Send, @"AzLabServicesUserInvite_InviteViaIdentityExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Operation to invite a user to a lab.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -44,15 +44,6 @@ public partial class SendAzLabServicesUserInvite_InviteViaIdentityExpanded : glo /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LabServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.ParameterCategory.Runtime)] @@ -224,11 +215,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.SendAzLabServicesU /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -564,7 +550,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/SendAzLabServicesUserInvite_InviteViaIdentityLabExpanded.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/SendAzLabServicesUserInvite_InviteViaIdentityLabExpanded.cs index 7ae88e74f9d1..5d0fe7213d62 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/SendAzLabServicesUserInvite_InviteViaIdentityLabExpanded.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/SendAzLabServicesUserInvite_InviteViaIdentityLabExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Invite=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/users/{userName}/invite" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommunications.Send, @"AzLabServicesUserInvite_InviteViaIdentityLabExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Operation to invite a user to a lab.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -44,15 +44,6 @@ public partial class SendAzLabServicesUserInvite_InviteViaIdentityLabExpanded : /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LabServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.ParameterCategory.Runtime)] @@ -243,11 +234,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.SendAzLabServicesU /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -580,7 +566,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/SendAzLabServicesUserInvite_InviteViaJsonFilePath.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/SendAzLabServicesUserInvite_InviteViaJsonFilePath.cs index b0404707daa3..81a650afb178 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/SendAzLabServicesUserInvite_InviteViaJsonFilePath.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/SendAzLabServicesUserInvite_InviteViaJsonFilePath.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Invite=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/users/{userName}/invite" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommunications.Send, @"AzLabServicesUserInvite_InviteViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Operation to invite a user to a lab.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -42,17 +42,8 @@ public partial class SendAzLabServicesUserInvite_InviteViaJsonFilePath : global: /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LabServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.ParameterCategory.Runtime)] @@ -287,11 +278,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.SendAzLabServicesU /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -603,7 +589,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/SendAzLabServicesUserInvite_InviteViaJsonString.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/SendAzLabServicesUserInvite_InviteViaJsonString.cs index 3e1386b07560..ccbf32c9d22e 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/SendAzLabServicesUserInvite_InviteViaJsonString.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/SendAzLabServicesUserInvite_InviteViaJsonString.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Invite=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/users/{userName}/invite" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommunications.Send, @"AzLabServicesUserInvite_InviteViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Operation to invite a user to a lab.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -42,15 +42,6 @@ public partial class SendAzLabServicesUserInvite_InviteViaJsonString : global::S /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LabServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.ParameterCategory.Runtime)] @@ -285,11 +276,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.SendAzLabServicesU /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -601,7 +587,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/StartAzLabServicesVMRedeployment_Redeploy.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/StartAzLabServicesVMRedeployment_Redeploy.cs index eb60de95ab5c..c2b9cf080bba 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/StartAzLabServicesVMRedeployment_Redeploy.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/StartAzLabServicesVMRedeployment_Redeploy.cs @@ -17,7 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Redeploy=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/virtualMachines/{virtualMachineName}/redeploy" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Start, @"AzLabServicesVMRedeployment_Redeploy", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Action to redeploy a lab virtual machine to a different compute node. For troubleshooting connectivity.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -43,15 +43,6 @@ public partial class StartAzLabServicesVMRedeployment_Redeploy : global::System. /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LabServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.ParameterCategory.Runtime)] @@ -272,11 +263,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.StartAzLabServices /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -588,7 +574,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/StartAzLabServicesVMRedeployment_RedeployViaIdentity.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/StartAzLabServicesVMRedeployment_RedeployViaIdentity.cs index 66147a4d9c45..b0439c7d7385 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/StartAzLabServicesVMRedeployment_RedeployViaIdentity.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/StartAzLabServicesVMRedeployment_RedeployViaIdentity.cs @@ -17,7 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Redeploy=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/virtualMachines/{virtualMachineName}/redeploy" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Start, @"AzLabServicesVMRedeployment_RedeployViaIdentity", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Action to redeploy a lab virtual machine to a different compute node. For troubleshooting connectivity.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -43,15 +43,6 @@ public partial class StartAzLabServicesVMRedeployment_RedeployViaIdentity : glob /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LabServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.ParameterCategory.Runtime)] @@ -211,11 +202,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.StartAzLabServices /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -551,7 +537,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/StartAzLabServicesVMRedeployment_RedeployViaIdentityLab.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/StartAzLabServicesVMRedeployment_RedeployViaIdentityLab.cs index f03757d31dc4..b0cbfaf13c47 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/StartAzLabServicesVMRedeployment_RedeployViaIdentityLab.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/StartAzLabServicesVMRedeployment_RedeployViaIdentityLab.cs @@ -17,7 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Redeploy=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/virtualMachines/{virtualMachineName}/redeploy" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Start, @"AzLabServicesVMRedeployment_RedeployViaIdentityLab", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Action to redeploy a lab virtual machine to a different compute node. For troubleshooting connectivity.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -43,15 +43,6 @@ public partial class StartAzLabServicesVMRedeployment_RedeployViaIdentityLab : g /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LabServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.ParameterCategory.Runtime)] @@ -228,11 +219,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.StartAzLabServices /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -565,7 +551,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/StartAzLabServicesVM_Start.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/StartAzLabServicesVM_Start.cs index 62d5e9d5846a..07355d11386e 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/StartAzLabServicesVM_Start.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/StartAzLabServicesVM_Start.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Start=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/virtualMachines/{virtualMachineName}/start" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Start, @"AzLabServicesVM_Start", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Action to start a lab virtual machine.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -41,15 +41,6 @@ public partial class StartAzLabServicesVM_Start : global::System.Management.Auto /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LabServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.ParameterCategory.Runtime)] @@ -271,11 +262,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.StartAzLabServices /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -587,7 +573,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/StartAzLabServicesVM_StartViaIdentity.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/StartAzLabServicesVM_StartViaIdentity.cs index e8d66ce5f93b..1e6edf414f04 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/StartAzLabServicesVM_StartViaIdentity.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/StartAzLabServicesVM_StartViaIdentity.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Start=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/virtualMachines/{virtualMachineName}/start" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Start, @"AzLabServicesVM_StartViaIdentity", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Action to start a lab virtual machine.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -41,15 +41,6 @@ public partial class StartAzLabServicesVM_StartViaIdentity : global::System.Mana /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LabServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.ParameterCategory.Runtime)] @@ -209,11 +200,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.StartAzLabServices /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -549,7 +535,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/StartAzLabServicesVM_StartViaIdentityLab.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/StartAzLabServicesVM_StartViaIdentityLab.cs index 2174636d625b..f8dd3e2dd9f6 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/StartAzLabServicesVM_StartViaIdentityLab.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/StartAzLabServicesVM_StartViaIdentityLab.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Start=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/virtualMachines/{virtualMachineName}/start" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Start, @"AzLabServicesVM_StartViaIdentityLab", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Action to start a lab virtual machine.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -41,15 +41,6 @@ public partial class StartAzLabServicesVM_StartViaIdentityLab : global::System.M /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LabServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.ParameterCategory.Runtime)] @@ -227,11 +218,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.StartAzLabServices /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -564,7 +550,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/StopAzLabServicesVM_Stop.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/StopAzLabServicesVM_Stop.cs index 091f44fa0027..eacbb78e747e 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/StopAzLabServicesVM_Stop.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/StopAzLabServicesVM_Stop.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Stop=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/virtualMachines/{virtualMachineName}/stop" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Stop, @"AzLabServicesVM_Stop", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Action to stop a lab virtual machine.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -41,15 +41,6 @@ public partial class StopAzLabServicesVM_Stop : global::System.Management.Automa /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LabServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.ParameterCategory.Runtime)] @@ -271,11 +262,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.StopAzLabServicesV /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -587,7 +573,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/StopAzLabServicesVM_StopViaIdentity.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/StopAzLabServicesVM_StopViaIdentity.cs index 3f14a522fbdb..1d8c5908d043 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/StopAzLabServicesVM_StopViaIdentity.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/StopAzLabServicesVM_StopViaIdentity.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Stop=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/virtualMachines/{virtualMachineName}/stop" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Stop, @"AzLabServicesVM_StopViaIdentity", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Action to stop a lab virtual machine.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -41,15 +41,6 @@ public partial class StopAzLabServicesVM_StopViaIdentity : global::System.Manage /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LabServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.ParameterCategory.Runtime)] @@ -209,11 +200,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.StopAzLabServicesV /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -549,7 +535,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/StopAzLabServicesVM_StopViaIdentityLab.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/StopAzLabServicesVM_StopViaIdentityLab.cs index 813c29f8715a..99f7efe25f5f 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/StopAzLabServicesVM_StopViaIdentityLab.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/StopAzLabServicesVM_StopViaIdentityLab.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Stop=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/virtualMachines/{virtualMachineName}/stop" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Stop, @"AzLabServicesVM_StopViaIdentityLab", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Action to stop a lab virtual machine.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -41,15 +41,6 @@ public partial class StopAzLabServicesVM_StopViaIdentityLab : global::System.Man /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LabServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.ParameterCategory.Runtime)] @@ -227,11 +218,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.StopAzLabServicesV /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -564,7 +550,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/SyncAzLabServicesLabUser_Sync.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/SyncAzLabServicesLabUser_Sync.cs index dee2ee7dc220..0e47f504e6bd 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/SyncAzLabServicesLabUser_Sync.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/SyncAzLabServicesLabUser_Sync.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] SyncGroup=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/syncGroup" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Sync, @"AzLabServicesLabUser_Sync", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Action used to manually kick off an AAD group sync job.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -41,15 +41,6 @@ public partial class SyncAzLabServicesLabUser_Sync : global::System.Management.A /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LabServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.ParameterCategory.Runtime)] @@ -253,11 +244,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.SyncAzLabServicesL /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -569,7 +555,7 @@ public SyncAzLabServicesLabUser_Sync() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/SyncAzLabServicesLabUser_SyncViaIdentity.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/SyncAzLabServicesLabUser_SyncViaIdentity.cs index ca43ed2e9b4b..20874ff50804 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/SyncAzLabServicesLabUser_SyncViaIdentity.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/SyncAzLabServicesLabUser_SyncViaIdentity.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] SyncGroup=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/syncGroup" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Sync, @"AzLabServicesLabUser_SyncViaIdentity", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Action used to manually kick off an AAD group sync job.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -41,15 +41,6 @@ public partial class SyncAzLabServicesLabUser_SyncViaIdentity : global::System.M /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LabServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.ParameterCategory.Runtime)] @@ -209,11 +200,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.SyncAzLabServicesL /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -545,7 +531,7 @@ public SyncAzLabServicesLabUser_SyncViaIdentity() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesLabPlan_UpdateExpanded.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesLabPlan_UpdateExpanded.cs index 6597ee4bd6e8..869c5f5e145c 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesLabPlan_UpdateExpanded.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesLabPlan_UpdateExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labPlans/{labPlanName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzLabServicesLabPlan_UpdateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabPlan))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Operation to update a Lab Plan resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -46,15 +46,6 @@ public partial class UpdateAzLabServicesLabPlan_UpdateExpanded : global::System. /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// /// The allowed regions for the lab creator to use when creating labs using this lab plan. /// @@ -486,11 +477,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.UpdateAzLabService /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -806,24 +792,7 @@ public UpdateAzLabServicesLabPlan_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabPlan var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesLabPlan_UpdateViaIdentityExpanded.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesLabPlan_UpdateViaIdentityExpanded.cs index 6cef6989c666..03b48ab32d61 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesLabPlan_UpdateViaIdentityExpanded.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesLabPlan_UpdateViaIdentityExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labPlans/{labPlanName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzLabServicesLabPlan_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabPlan))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Operation to update a Lab Plan resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -46,15 +46,6 @@ public partial class UpdateAzLabServicesLabPlan_UpdateViaIdentityExpanded : glob /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// /// The allowed regions for the lab creator to use when creating labs using this lab plan. /// @@ -441,11 +432,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.UpdateAzLabService /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -781,24 +767,7 @@ public UpdateAzLabServicesLabPlan_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabPlan var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesLabPlan_UpdateViaJsonFilePath.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesLabPlan_UpdateViaJsonFilePath.cs index 459c518315ac..038640aa407b 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesLabPlan_UpdateViaJsonFilePath.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesLabPlan_UpdateViaJsonFilePath.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labPlans/{labPlanName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzLabServicesLabPlan_UpdateViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabPlan))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Operation to update a Lab Plan resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -42,17 +42,8 @@ public partial class UpdateAzLabServicesLabPlan_UpdateViaJsonFilePath : global:: /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LabServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.ParameterCategory.Runtime)] @@ -266,11 +257,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.UpdateAzLabService /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -586,24 +572,7 @@ public UpdateAzLabServicesLabPlan_UpdateViaJsonFilePath() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabPlan var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesLabPlan_UpdateViaJsonString.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesLabPlan_UpdateViaJsonString.cs index 06d7d79ab0f5..e0bf54f337a0 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesLabPlan_UpdateViaJsonString.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesLabPlan_UpdateViaJsonString.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labPlans/{labPlanName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzLabServicesLabPlan_UpdateViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabPlan))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Operation to update a Lab Plan resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -42,15 +42,6 @@ public partial class UpdateAzLabServicesLabPlan_UpdateViaJsonString : global::Sy /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LabServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.ParameterCategory.Runtime)] @@ -264,11 +255,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.UpdateAzLabService /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -584,24 +570,7 @@ public UpdateAzLabServicesLabPlan_UpdateViaJsonString() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILabPlan var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesLab_UpdateExpanded.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesLab_UpdateExpanded.cs index 7d53934b7d43..3273877f3671 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesLab_UpdateExpanded.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesLab_UpdateExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzLabServicesLab_UpdateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILab))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Operation to update a lab resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -44,15 +44,6 @@ public partial class UpdateAzLabServicesLab_UpdateExpanded : global::System.Mana /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// The password for the user. This is required for the TemplateVM createOption. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The password for the user. This is required for the TemplateVM createOption.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.ParameterCategory.Body)] @@ -609,11 +600,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.UpdateAzLabService /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -929,24 +915,7 @@ public UpdateAzLabServicesLab_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILab var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesLab_UpdateViaIdentityExpanded.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesLab_UpdateViaIdentityExpanded.cs index ea52b0139bb8..3aa2b7e714f7 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesLab_UpdateViaIdentityExpanded.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesLab_UpdateViaIdentityExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzLabServicesLab_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILab))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Operation to update a lab resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -44,15 +44,6 @@ public partial class UpdateAzLabServicesLab_UpdateViaIdentityExpanded : global:: /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// The password for the user. This is required for the TemplateVM createOption. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The password for the user. This is required for the TemplateVM createOption.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.ParameterCategory.Body)] @@ -564,11 +555,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.UpdateAzLabService /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -904,24 +890,7 @@ public UpdateAzLabServicesLab_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILab var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesLab_UpdateViaJsonFilePath.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesLab_UpdateViaJsonFilePath.cs index 1b6b8e1cf358..3c9cb905a31a 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesLab_UpdateViaJsonFilePath.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesLab_UpdateViaJsonFilePath.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzLabServicesLab_UpdateViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILab))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Operation to update a lab resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -42,17 +42,8 @@ public partial class UpdateAzLabServicesLab_UpdateViaJsonFilePath : global::Syst /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LabServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.ParameterCategory.Runtime)] @@ -266,11 +257,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.UpdateAzLabService /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -586,24 +572,7 @@ public UpdateAzLabServicesLab_UpdateViaJsonFilePath() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILab var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesLab_UpdateViaJsonString.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesLab_UpdateViaJsonString.cs index 8e23e5f0502a..6a958d129851 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesLab_UpdateViaJsonString.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesLab_UpdateViaJsonString.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzLabServicesLab_UpdateViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILab))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Operation to update a lab resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -42,15 +42,6 @@ public partial class UpdateAzLabServicesLab_UpdateViaJsonString : global::System /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LabServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.ParameterCategory.Runtime)] @@ -264,11 +255,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.UpdateAzLabService /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -584,24 +570,7 @@ public UpdateAzLabServicesLab_UpdateViaJsonString() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ILab var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesPlanImage_UpdateExpanded.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesPlanImage_UpdateExpanded.cs index 9eeff6b8fd87..5d39fa63a036 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesPlanImage_UpdateExpanded.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesPlanImage_UpdateExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labPlans/{labPlanName}/images/{imageName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzLabServicesPlanImage_UpdateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IImage))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"update an image resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesPlanImage_UpdateViaIdentityExpanded.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesPlanImage_UpdateViaIdentityExpanded.cs index 2bd5dd8b23fc..78ae6986d329 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesPlanImage_UpdateViaIdentityExpanded.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesPlanImage_UpdateViaIdentityExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labPlans/{labPlanName}/images/{imageName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzLabServicesPlanImage_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IImage))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"update an image resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesPlanImage_UpdateViaIdentityLabPlanExpanded.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesPlanImage_UpdateViaIdentityLabPlanExpanded.cs index 6de95d35b7d1..5917ffd91b49 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesPlanImage_UpdateViaIdentityLabPlanExpanded.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesPlanImage_UpdateViaIdentityLabPlanExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labPlans/{labPlanName}/images/{imageName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzLabServicesPlanImage_UpdateViaIdentityLabPlanExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IImage))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"update an image resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesPlanImage_UpdateViaJsonFilePath.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesPlanImage_UpdateViaJsonFilePath.cs index 8d87bade97e0..a74ea43f45f2 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesPlanImage_UpdateViaJsonFilePath.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesPlanImage_UpdateViaJsonFilePath.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labPlans/{labPlanName}/images/{imageName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzLabServicesPlanImage_UpdateViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IImage))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"update an image resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesPlanImage_UpdateViaJsonString.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesPlanImage_UpdateViaJsonString.cs index 919fa4cab2a7..21ed9ccaaa53 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesPlanImage_UpdateViaJsonString.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesPlanImage_UpdateViaJsonString.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labPlans/{labPlanName}/images/{imageName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzLabServicesPlanImage_UpdateViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IImage))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"update an image resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesSchedule_UpdateExpanded.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesSchedule_UpdateExpanded.cs index 562fc78c769a..9d409a8d5ce4 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesSchedule_UpdateExpanded.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesSchedule_UpdateExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/schedules/{scheduleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzLabServicesSchedule_UpdateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ISchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Operation to update a lab schedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesSchedule_UpdateViaIdentityExpanded.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesSchedule_UpdateViaIdentityExpanded.cs index 7d1e585df59e..93070a8fba15 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesSchedule_UpdateViaIdentityExpanded.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesSchedule_UpdateViaIdentityExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/schedules/{scheduleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzLabServicesSchedule_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ISchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Operation to update a lab schedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesSchedule_UpdateViaIdentityLabExpanded.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesSchedule_UpdateViaIdentityLabExpanded.cs index 8ed08c1b5ee8..146c14e738c4 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesSchedule_UpdateViaIdentityLabExpanded.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesSchedule_UpdateViaIdentityLabExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/schedules/{scheduleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzLabServicesSchedule_UpdateViaIdentityLabExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ISchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Operation to update a lab schedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesSchedule_UpdateViaJsonFilePath.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesSchedule_UpdateViaJsonFilePath.cs index 8ef8bda015fb..149780c57b4b 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesSchedule_UpdateViaJsonFilePath.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesSchedule_UpdateViaJsonFilePath.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/schedules/{scheduleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzLabServicesSchedule_UpdateViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ISchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Operation to update a lab schedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesSchedule_UpdateViaJsonString.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesSchedule_UpdateViaJsonString.cs index 142aabd7c29f..d6e606829957 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesSchedule_UpdateViaJsonString.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesSchedule_UpdateViaJsonString.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/schedules/{scheduleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzLabServicesSchedule_UpdateViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.ISchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Operation to update a lab schedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesUser_UpdateExpanded.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesUser_UpdateExpanded.cs index 3952f389a65d..2d08d02af8c6 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesUser_UpdateExpanded.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesUser_UpdateExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/users/{userName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzLabServicesUser_UpdateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IUser))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Operation to update a lab user.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -46,15 +46,6 @@ public partial class UpdateAzLabServicesUser_UpdateExpanded : global::System.Man /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// /// The amount of usage quota time the user gets in addition to the lab usage quota. /// @@ -285,11 +276,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.UpdateAzLabService /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -605,24 +591,7 @@ public UpdateAzLabServicesUser_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IUser var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesUser_UpdateViaIdentityExpanded.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesUser_UpdateViaIdentityExpanded.cs index a5b0ad73ab3d..9c84182ab822 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesUser_UpdateViaIdentityExpanded.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesUser_UpdateViaIdentityExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/users/{userName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzLabServicesUser_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IUser))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Operation to update a lab user.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -46,15 +46,6 @@ public partial class UpdateAzLabServicesUser_UpdateViaIdentityExpanded : global: /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// /// The amount of usage quota time the user gets in addition to the lab usage quota. /// @@ -223,11 +214,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.UpdateAzLabService /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -567,24 +553,7 @@ public UpdateAzLabServicesUser_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IUser var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesUser_UpdateViaIdentityLabExpanded.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesUser_UpdateViaIdentityLabExpanded.cs index 22c036711629..aa03feb8f4f1 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesUser_UpdateViaIdentityLabExpanded.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesUser_UpdateViaIdentityLabExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/users/{userName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzLabServicesUser_UpdateViaIdentityLabExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IUser))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Operation to update a lab user.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -46,15 +46,6 @@ public partial class UpdateAzLabServicesUser_UpdateViaIdentityLabExpanded : glob /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// /// The amount of usage quota time the user gets in addition to the lab usage quota. /// @@ -241,11 +232,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.UpdateAzLabService /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -582,24 +568,7 @@ public UpdateAzLabServicesUser_UpdateViaIdentityLabExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IUser var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesUser_UpdateViaJsonFilePath.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesUser_UpdateViaJsonFilePath.cs index d85d0162aa0e..a94de8af6f28 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesUser_UpdateViaJsonFilePath.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesUser_UpdateViaJsonFilePath.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/users/{userName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzLabServicesUser_UpdateViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IUser))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Operation to update a lab user.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -42,17 +42,8 @@ public partial class UpdateAzLabServicesUser_UpdateViaJsonFilePath : global::Sys /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LabServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.ParameterCategory.Runtime)] @@ -283,11 +274,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.UpdateAzLabService /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -603,24 +589,7 @@ public UpdateAzLabServicesUser_UpdateViaJsonFilePath() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IUser var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesUser_UpdateViaJsonString.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesUser_UpdateViaJsonString.cs index 2c363e692be6..513d44ca0a4d 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesUser_UpdateViaJsonString.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesUser_UpdateViaJsonString.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/users/{userName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzLabServicesUser_UpdateViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IUser))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Operation to update a lab user.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -42,15 +42,6 @@ public partial class UpdateAzLabServicesUser_UpdateViaJsonString : global::Syste /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LabServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.ParameterCategory.Runtime)] @@ -281,11 +272,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.UpdateAzLabService /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -601,24 +587,7 @@ public UpdateAzLabServicesUser_UpdateViaJsonString() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.LabServices.Models.IUser var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesVMReimage_Reimage.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesVMReimage_Reimage.cs index 0bf0e2c04875..b8d477858b0a 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesVMReimage_Reimage.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesVMReimage_Reimage.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Reimage=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/virtualMachines/{virtualMachineName}/reimage" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzLabServicesVMReimage_Reimage", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Re-image a lab virtual machine. The virtual machine will be deleted and recreated using the latest published snapshot of the reference environment of the lab.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -44,15 +44,6 @@ public partial class UpdateAzLabServicesVMReimage_Reimage : global::System.Manag /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LabServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.ParameterCategory.Runtime)] @@ -274,11 +265,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.UpdateAzLabService /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -590,7 +576,7 @@ public UpdateAzLabServicesVMReimage_Reimage() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesVMReimage_ReimageViaIdentity.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesVMReimage_ReimageViaIdentity.cs index c916a97b0b4f..7ee970f9f8b1 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesVMReimage_ReimageViaIdentity.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesVMReimage_ReimageViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Reimage=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/virtualMachines/{virtualMachineName}/reimage" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzLabServicesVMReimage_ReimageViaIdentity", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Re-image a lab virtual machine. The virtual machine will be deleted and recreated using the latest published snapshot of the reference environment of the lab.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -44,15 +44,6 @@ public partial class UpdateAzLabServicesVMReimage_ReimageViaIdentity : global::S /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LabServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.ParameterCategory.Runtime)] @@ -212,11 +203,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.UpdateAzLabService /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -552,7 +538,7 @@ public UpdateAzLabServicesVMReimage_ReimageViaIdentity() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesVMReimage_ReimageViaIdentityLab.cs b/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesVMReimage_ReimageViaIdentityLab.cs index e9c663d4a288..fa928713126c 100644 --- a/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesVMReimage_ReimageViaIdentityLab.cs +++ b/generated/LabServices/LabServices.Autorest/generated/cmdlets/UpdateAzLabServicesVMReimage_ReimageViaIdentityLab.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets /// [OpenAPI] Reimage=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/virtualMachines/{virtualMachineName}/reimage" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzLabServicesVMReimage_ReimageViaIdentityLab", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.CmdletBreakingChange("18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] + [Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime.GenericBreakingChange("", "18.2.0", "-", "2027/06/28", ChangeDescription = "Azure Lab Services will be retired on June 28, 2027, please see details on https://azure.microsoft.com/en-us/updates?id=azure-lab-services-is-being-retired.")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Description(@"Re-image a lab virtual machine. The virtual machine will be deleted and recreated using the latest published snapshot of the reference environment of the lab.")] [global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.Generated] @@ -44,15 +44,6 @@ public partial class UpdateAzLabServicesVMReimage_ReimageViaIdentityLab : global /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LabServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LabServices.ParameterCategory.Runtime)] @@ -230,11 +221,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LabServices.Cmdlets.UpdateAzLabService /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LabServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -567,7 +553,7 @@ public UpdateAzLabServicesVMReimage_ReimageViaIdentityLab() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/LabServices/LabServices.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/LabServices/LabServices.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 5bfed6a3ebe0..5876017b3cc4 100644 --- a/generated/LabServices/LabServices.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/LabServices/LabServices.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -218,13 +218,12 @@ public string GetProcessCustomAttributesAtRuntime() private string GetLoginVerification() { - if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) + if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) { return $@" {Indent}{Indent}$context = Get-AzContext {Indent}{Indent}if (-not $context -and -not $testPlayback) {{ -{Indent}{Indent}{Indent}Write-Error ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" -{Indent}{Indent}{Indent}exit +{Indent}{Indent}{Indent}throw ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" {Indent}{Indent}}} "; } diff --git a/generated/LabServices/LabServices.Autorest/generated/runtime/Context.cs b/generated/LabServices/LabServices.Autorest/generated/runtime/Context.cs index d240904fb673..ac7674094002 100644 --- a/generated/LabServices/LabServices.Autorest/generated/runtime/Context.cs +++ b/generated/LabServices/LabServices.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LabServices.Runtime /// The IContext Interface defines the communication mechanism for input customization. /// /// - /// In the context, we will have client, pipeline, PSBoundParamters, default EventListener, Cancellation. + /// In the context, we will have client, pipeline, PSBoundParameters, default EventListener, Cancellation. /// public interface IContext { diff --git a/generated/LambdaTest/LambdaTest.Autorest/exports/Get-AzLambdaTestOrganization.ps1 b/generated/LambdaTest/LambdaTest.Autorest/exports/Get-AzLambdaTestOrganization.ps1 index 3a9a58c65b02..99f69085b731 100644 --- a/generated/LambdaTest/LambdaTest.Autorest/exports/Get-AzLambdaTestOrganization.ps1 +++ b/generated/LambdaTest/LambdaTest.Autorest/exports/Get-AzLambdaTestOrganization.ps1 @@ -138,8 +138,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/LambdaTest/LambdaTest.Autorest/exports/New-AzLambdaTestOrganization.ps1 b/generated/LambdaTest/LambdaTest.Autorest/exports/New-AzLambdaTestOrganization.ps1 index d2996c5dae69..ae6c79dc96d2 100644 --- a/generated/LambdaTest/LambdaTest.Autorest/exports/New-AzLambdaTestOrganization.ps1 +++ b/generated/LambdaTest/LambdaTest.Autorest/exports/New-AzLambdaTestOrganization.ps1 @@ -279,8 +279,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/LambdaTest/LambdaTest.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/LambdaTest/LambdaTest.Autorest/exports/ProxyCmdletDefinitions.ps1 index de5730b3f7f0..119e38192ff9 100644 --- a/generated/LambdaTest/LambdaTest.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/LambdaTest/LambdaTest.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -138,8 +138,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -490,8 +489,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -713,8 +711,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1061,8 +1058,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/LambdaTest/LambdaTest.Autorest/exports/Remove-AzLambdaTestOrganization.ps1 b/generated/LambdaTest/LambdaTest.Autorest/exports/Remove-AzLambdaTestOrganization.ps1 index ffb7626e1588..0bf1009ee2df 100644 --- a/generated/LambdaTest/LambdaTest.Autorest/exports/Remove-AzLambdaTestOrganization.ps1 +++ b/generated/LambdaTest/LambdaTest.Autorest/exports/Remove-AzLambdaTestOrganization.ps1 @@ -151,8 +151,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/LambdaTest/LambdaTest.Autorest/exports/Update-AzLambdaTestOrganization.ps1 b/generated/LambdaTest/LambdaTest.Autorest/exports/Update-AzLambdaTestOrganization.ps1 index dcac6ba5fa37..d285c44b89be 100644 --- a/generated/LambdaTest/LambdaTest.Autorest/exports/Update-AzLambdaTestOrganization.ps1 +++ b/generated/LambdaTest/LambdaTest.Autorest/exports/Update-AzLambdaTestOrganization.ps1 @@ -277,8 +277,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/LambdaTest/LambdaTest.Autorest/generated/cmdlets/NewAzLambdaTestOrganization_CreateExpanded.cs b/generated/LambdaTest/LambdaTest.Autorest/generated/cmdlets/NewAzLambdaTestOrganization_CreateExpanded.cs index 85aeb256c2b0..8180081e3ba8 100644 --- a/generated/LambdaTest/LambdaTest.Autorest/generated/cmdlets/NewAzLambdaTestOrganization_CreateExpanded.cs +++ b/generated/LambdaTest/LambdaTest.Autorest/generated/cmdlets/NewAzLambdaTestOrganization_CreateExpanded.cs @@ -40,20 +40,11 @@ public partial class NewAzLambdaTestOrganization_CreateExpanded : global::System /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// /// Concrete tracked resource types can be created by aliasing this type using a specific property type. /// private Microsoft.Azure.PowerShell.Cmdlets.LambdaTest.Models.IOrganizationResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.LambdaTest.Models.OrganizationResource(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LambdaTest.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LambdaTest.ParameterCategory.Runtime)] @@ -488,11 +479,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LambdaTest.Cmdlets.NewAzLambdaTestOrga /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LambdaTest.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -834,24 +820,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.LambdaTest.Models.IOrganizationResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/LambdaTest/LambdaTest.Autorest/generated/cmdlets/NewAzLambdaTestOrganization_CreateViaJsonFilePath.cs b/generated/LambdaTest/LambdaTest.Autorest/generated/cmdlets/NewAzLambdaTestOrganization_CreateViaJsonFilePath.cs index 214340c788e1..44ff8316b1d0 100644 --- a/generated/LambdaTest/LambdaTest.Autorest/generated/cmdlets/NewAzLambdaTestOrganization_CreateViaJsonFilePath.cs +++ b/generated/LambdaTest/LambdaTest.Autorest/generated/cmdlets/NewAzLambdaTestOrganization_CreateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class NewAzLambdaTestOrganization_CreateViaJsonFilePath : global: /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LambdaTest.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LambdaTest.ParameterCategory.Runtime)] @@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LambdaTest.Cmdlets.NewAzLambdaTestOrga /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LambdaTest.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -583,24 +569,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.LambdaTest.Models.IOrganizationResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/LambdaTest/LambdaTest.Autorest/generated/cmdlets/NewAzLambdaTestOrganization_CreateViaJsonString.cs b/generated/LambdaTest/LambdaTest.Autorest/generated/cmdlets/NewAzLambdaTestOrganization_CreateViaJsonString.cs index c1a6fee685b8..b6cfcac05c70 100644 --- a/generated/LambdaTest/LambdaTest.Autorest/generated/cmdlets/NewAzLambdaTestOrganization_CreateViaJsonString.cs +++ b/generated/LambdaTest/LambdaTest.Autorest/generated/cmdlets/NewAzLambdaTestOrganization_CreateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class NewAzLambdaTestOrganization_CreateViaJsonString : global::S /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LambdaTest.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LambdaTest.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LambdaTest.Cmdlets.NewAzLambdaTestOrga /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LambdaTest.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -581,24 +567,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.LambdaTest.Models.IOrganizationResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/LambdaTest/LambdaTest.Autorest/generated/cmdlets/RemoveAzLambdaTestOrganization_Delete.cs b/generated/LambdaTest/LambdaTest.Autorest/generated/cmdlets/RemoveAzLambdaTestOrganization_Delete.cs index 4224a523497a..a9eda48ddb6f 100644 --- a/generated/LambdaTest/LambdaTest.Autorest/generated/cmdlets/RemoveAzLambdaTestOrganization_Delete.cs +++ b/generated/LambdaTest/LambdaTest.Autorest/generated/cmdlets/RemoveAzLambdaTestOrganization_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzLambdaTestOrganization_Delete : global::System.Mana /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LambdaTest.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LambdaTest.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LambdaTest.Cmdlets.RemoveAzLambdaTestO /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LambdaTest.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -577,7 +563,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -601,7 +587,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/LambdaTest/LambdaTest.Autorest/generated/cmdlets/RemoveAzLambdaTestOrganization_DeleteViaIdentity.cs b/generated/LambdaTest/LambdaTest.Autorest/generated/cmdlets/RemoveAzLambdaTestOrganization_DeleteViaIdentity.cs index 6b5fb24ffdd5..cedd50203133 100644 --- a/generated/LambdaTest/LambdaTest.Autorest/generated/cmdlets/RemoveAzLambdaTestOrganization_DeleteViaIdentity.cs +++ b/generated/LambdaTest/LambdaTest.Autorest/generated/cmdlets/RemoveAzLambdaTestOrganization_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzLambdaTestOrganization_DeleteViaIdentity : global:: /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LambdaTest.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LambdaTest.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LambdaTest.Cmdlets.RemoveAzLambdaTestO /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LambdaTest.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -554,7 +540,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -578,7 +564,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/LambdaTest/LambdaTest.Autorest/generated/cmdlets/UpdateAzLambdaTestOrganization_UpdateExpanded.cs b/generated/LambdaTest/LambdaTest.Autorest/generated/cmdlets/UpdateAzLambdaTestOrganization_UpdateExpanded.cs index 13a0bdc54af1..78e01af5b276 100644 --- a/generated/LambdaTest/LambdaTest.Autorest/generated/cmdlets/UpdateAzLambdaTestOrganization_UpdateExpanded.cs +++ b/generated/LambdaTest/LambdaTest.Autorest/generated/cmdlets/UpdateAzLambdaTestOrganization_UpdateExpanded.cs @@ -40,20 +40,11 @@ public partial class UpdateAzLambdaTestOrganization_UpdateExpanded : global::Sys /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// /// Concrete tracked resource types can be created by aliasing this type using a specific property type. /// private Microsoft.Azure.PowerShell.Cmdlets.LambdaTest.Models.IOrganizationResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.LambdaTest.Models.OrganizationResource(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LambdaTest.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LambdaTest.ParameterCategory.Runtime)] @@ -477,11 +468,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LambdaTest.Cmdlets.UpdateAzLambdaTestO /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LambdaTest.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -918,24 +904,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.LambdaTest.Models.IOrganizationResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/LambdaTest/LambdaTest.Autorest/generated/cmdlets/UpdateAzLambdaTestOrganization_UpdateViaIdentityExpanded.cs b/generated/LambdaTest/LambdaTest.Autorest/generated/cmdlets/UpdateAzLambdaTestOrganization_UpdateViaIdentityExpanded.cs index 36d9c9c5e197..7bc57ed27896 100644 --- a/generated/LambdaTest/LambdaTest.Autorest/generated/cmdlets/UpdateAzLambdaTestOrganization_UpdateViaIdentityExpanded.cs +++ b/generated/LambdaTest/LambdaTest.Autorest/generated/cmdlets/UpdateAzLambdaTestOrganization_UpdateViaIdentityExpanded.cs @@ -40,20 +40,11 @@ public partial class UpdateAzLambdaTestOrganization_UpdateViaIdentityExpanded : /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// /// Concrete tracked resource types can be created by aliasing this type using a specific property type. /// private Microsoft.Azure.PowerShell.Cmdlets.LambdaTest.Models.IOrganizationResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.LambdaTest.Models.OrganizationResource(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.LambdaTest.Category(global::Microsoft.Azure.PowerShell.Cmdlets.LambdaTest.ParameterCategory.Runtime)] @@ -436,11 +427,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.LambdaTest.Cmdlets.UpdateAzLambdaTestO /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.LambdaTest.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -900,24 +886,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.LambdaTest.Models.IOrganizationResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/LambdaTest/LambdaTest.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/LambdaTest/LambdaTest.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 27dca2dd0dd3..80323decb8ae 100644 --- a/generated/LambdaTest/LambdaTest.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/LambdaTest/LambdaTest.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -218,13 +218,12 @@ public string GetProcessCustomAttributesAtRuntime() private string GetLoginVerification() { - if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) + if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) { return $@" {Indent}{Indent}$context = Get-AzContext {Indent}{Indent}if (-not $context -and -not $testPlayback) {{ -{Indent}{Indent}{Indent}Write-Error ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" -{Indent}{Indent}{Indent}exit +{Indent}{Indent}{Indent}throw ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" {Indent}{Indent}}} "; } diff --git a/generated/LambdaTest/LambdaTest.Autorest/generated/runtime/Context.cs b/generated/LambdaTest/LambdaTest.Autorest/generated/runtime/Context.cs index c500c9a103b4..d19bf9636c11 100644 --- a/generated/LambdaTest/LambdaTest.Autorest/generated/runtime/Context.cs +++ b/generated/LambdaTest/LambdaTest.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.LambdaTest.Runtime /// The IContext Interface defines the communication mechanism for input customization. /// /// - /// In the context, we will have client, pipeline, PSBoundParamters, default EventListener, Cancellation. + /// In the context, we will have client, pipeline, PSBoundParameters, default EventListener, Cancellation. /// public interface IContext { diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/Properties/AssemblyInfo.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/Properties/AssemblyInfo.cs deleted file mode 100644 index 1ffc727f6df5..000000000000 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,28 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// 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. -// ---------------------------------------------------------------------------------- - -using System; -using System.Reflection; -using System.Runtime.InteropServices; - -[assembly: AssemblyTitle("Microsoft Azure Powershell - ManagedNetworkFabric")] -[assembly: AssemblyCompany(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCompany)] -[assembly: AssemblyProduct(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyProduct)] -[assembly: AssemblyCopyright(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCopyright)] - -[assembly: ComVisible(false)] -[assembly: CLSCompliant(false)] -[assembly: Guid("c75552aa-1ac7-44be-9204-f42d21cc158d")] -[assembly: AssemblyVersion("0.1.3")] -[assembly: AssemblyFileVersion("0.1.3")] diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabric.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabric.ps1 index ea78a5c6ee51..1301e7450f40 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabric.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabric.ps1 @@ -157,6 +157,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -181,8 +189,6 @@ begin { List1 = 'Az.ManagedNetworkFabric.private\Get-AzNetworkFabric_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -196,6 +202,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricAcl.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricAcl.ps1 index 311a197f05cf..1d77ae92e468 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricAcl.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricAcl.ps1 @@ -157,6 +157,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -181,8 +189,6 @@ begin { List1 = 'Az.ManagedNetworkFabric.private\Get-AzNetworkFabricAcl_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -196,6 +202,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricController.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricController.ps1 index a36896d049a5..450f415bea13 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricController.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricController.ps1 @@ -157,6 +157,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -181,8 +189,6 @@ begin { List1 = 'Az.ManagedNetworkFabric.private\Get-AzNetworkFabricController_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -196,6 +202,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricDevice.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricDevice.ps1 index 6855ca84980c..9605cbc95b1d 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricDevice.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricDevice.ps1 @@ -157,6 +157,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -181,8 +189,6 @@ begin { List1 = 'Az.ManagedNetworkFabric.private\Get-AzNetworkFabricDevice_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -196,6 +202,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricExternalNetwork.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricExternalNetwork.ps1 index e497737a2350..c855e02547d1 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricExternalNetwork.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricExternalNetwork.ps1 @@ -196,6 +196,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -220,8 +228,6 @@ begin { List = 'Az.ManagedNetworkFabric.private\Get-AzNetworkFabricExternalNetwork_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -235,6 +241,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricIPCommunity.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricIPCommunity.ps1 index f20a5e91ec10..29bd2fcee0d3 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricIPCommunity.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricIPCommunity.ps1 @@ -157,6 +157,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -181,8 +189,6 @@ begin { List1 = 'Az.ManagedNetworkFabric.private\Get-AzNetworkFabricIPCommunity_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -196,6 +202,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricIPExtendedCommunity.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricIPExtendedCommunity.ps1 index de1c63af20df..db0c6523eacc 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricIPExtendedCommunity.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricIPExtendedCommunity.ps1 @@ -157,6 +157,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -181,8 +189,6 @@ begin { List1 = 'Az.ManagedNetworkFabric.private\Get-AzNetworkFabricIPExtendedCommunity_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -196,6 +202,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricIPPrefix.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricIPPrefix.ps1 index c3aea2a412f4..f547298e2965 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricIPPrefix.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricIPPrefix.ps1 @@ -157,6 +157,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -181,8 +189,6 @@ begin { List1 = 'Az.ManagedNetworkFabric.private\Get-AzNetworkFabricIPPrefix_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -196,6 +202,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricInterface.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricInterface.ps1 index 264e3e471d4d..aceb1e6048d1 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricInterface.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricInterface.ps1 @@ -196,6 +196,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -220,8 +228,6 @@ begin { List = 'Az.ManagedNetworkFabric.private\Get-AzNetworkFabricInterface_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -235,6 +241,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricInternalNetwork.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricInternalNetwork.ps1 index c4f0311f025b..f7bc58a92225 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricInternalNetwork.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricInternalNetwork.ps1 @@ -196,6 +196,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -220,8 +228,6 @@ begin { List = 'Az.ManagedNetworkFabric.private\Get-AzNetworkFabricInternalNetwork_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -235,6 +241,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricInternetGateway.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricInternetGateway.ps1 index 69a0aadc35ef..ead1006c3cca 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricInternetGateway.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricInternetGateway.ps1 @@ -157,6 +157,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -181,8 +189,6 @@ begin { List1 = 'Az.ManagedNetworkFabric.private\Get-AzNetworkFabricInternetGateway_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -196,6 +202,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricInternetGatewayRule.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricInternetGatewayRule.ps1 index 48c54b6ceccc..ec90427d1b33 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricInternetGatewayRule.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricInternetGatewayRule.ps1 @@ -157,6 +157,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -181,8 +189,6 @@ begin { List1 = 'Az.ManagedNetworkFabric.private\Get-AzNetworkFabricInternetGatewayRule_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -196,6 +202,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricL2Domain.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricL2Domain.ps1 index 7a70da87011d..465d891d4bef 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricL2Domain.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricL2Domain.ps1 @@ -157,6 +157,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -181,8 +189,6 @@ begin { List1 = 'Az.ManagedNetworkFabric.private\Get-AzNetworkFabricL2Domain_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -196,6 +202,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricL3Domain.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricL3Domain.ps1 index 462ad322d436..42712c9070ca 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricL3Domain.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricL3Domain.ps1 @@ -157,6 +157,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -181,8 +189,6 @@ begin { List1 = 'Az.ManagedNetworkFabric.private\Get-AzNetworkFabricL3Domain_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -196,6 +202,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricNeighborGroup.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricNeighborGroup.ps1 index ffb548b80563..e2aaa2e62dd2 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricNeighborGroup.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricNeighborGroup.ps1 @@ -157,6 +157,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -181,8 +189,6 @@ begin { List1 = 'Az.ManagedNetworkFabric.private\Get-AzNetworkFabricNeighborGroup_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -196,6 +202,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricNni.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricNni.ps1 index 9c9c80fc9c29..b35d806210ac 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricNni.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricNni.ps1 @@ -196,6 +196,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -220,8 +228,6 @@ begin { List = 'Az.ManagedNetworkFabric.private\Get-AzNetworkFabricNni_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -235,6 +241,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricNpb.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricNpb.ps1 index 4ff8284976bb..df09b5530ac0 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricNpb.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricNpb.ps1 @@ -157,6 +157,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -181,8 +189,6 @@ begin { List1 = 'Az.ManagedNetworkFabric.private\Get-AzNetworkFabricNpb_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -196,6 +202,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricRack.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricRack.ps1 index ab8c719a5c87..c043f3d7ab58 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricRack.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricRack.ps1 @@ -157,6 +157,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -181,8 +189,6 @@ begin { List1 = 'Az.ManagedNetworkFabric.private\Get-AzNetworkFabricRack_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -196,6 +202,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricRoutePolicy.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricRoutePolicy.ps1 index 88497e4a2e8d..5a67221bc247 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricRoutePolicy.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricRoutePolicy.ps1 @@ -157,6 +157,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -181,8 +189,6 @@ begin { List1 = 'Az.ManagedNetworkFabric.private\Get-AzNetworkFabricRoutePolicy_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -196,6 +202,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricTap.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricTap.ps1 index 3c92f526e305..614f66fe4d1a 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricTap.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricTap.ps1 @@ -157,6 +157,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -181,8 +189,6 @@ begin { List1 = 'Az.ManagedNetworkFabric.private\Get-AzNetworkFabricTap_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -196,6 +202,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricTapRule.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricTapRule.ps1 index f072bcee3ae9..7e42577edb50 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricTapRule.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Get-AzNetworkFabricTapRule.ps1 @@ -157,6 +157,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -181,8 +189,6 @@ begin { List1 = 'Az.ManagedNetworkFabric.private\Get-AzNetworkFabricTapRule_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -196,6 +202,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Invoke-AzNetworkFabricDeprovision.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Invoke-AzNetworkFabricDeprovision.ps1 index 693dcaeaed2e..10ebaa810f80 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Invoke-AzNetworkFabricDeprovision.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Invoke-AzNetworkFabricDeprovision.ps1 @@ -161,6 +161,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -183,8 +191,6 @@ begin { DeprovisionViaIdentity = 'Az.ManagedNetworkFabric.private\Invoke-AzNetworkFabricDeprovision_DeprovisionViaIdentity'; } if (('Deprovision') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -198,6 +204,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Invoke-AzNetworkFabricInterfaceUpdateAdminState.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Invoke-AzNetworkFabricInterfaceUpdateAdminState.ps1 index 28b7d7153118..c2c28349a3b7 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Invoke-AzNetworkFabricInterfaceUpdateAdminState.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Invoke-AzNetworkFabricInterfaceUpdateAdminState.ps1 @@ -255,6 +255,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -281,8 +289,6 @@ begin { UpdateViaJsonString = 'Az.ManagedNetworkFabric.private\Invoke-AzNetworkFabricInterfaceUpdateAdminState_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -296,6 +302,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Invoke-AzNetworkFabricL2DomainUpdateAdminState.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Invoke-AzNetworkFabricL2DomainUpdateAdminState.ps1 index cd65abc2515f..32680d131ef0 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Invoke-AzNetworkFabricL2DomainUpdateAdminState.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Invoke-AzNetworkFabricL2DomainUpdateAdminState.ps1 @@ -196,6 +196,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -220,8 +228,6 @@ begin { UpdateViaJsonString = 'Az.ManagedNetworkFabric.private\Invoke-AzNetworkFabricL2DomainUpdateAdminState_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -235,6 +241,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Invoke-AzNetworkFabricL3DomainUpdateAdminState.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Invoke-AzNetworkFabricL3DomainUpdateAdminState.ps1 index d4f5d9d8453b..f8313ecc04f6 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Invoke-AzNetworkFabricL3DomainUpdateAdminState.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Invoke-AzNetworkFabricL3DomainUpdateAdminState.ps1 @@ -196,6 +196,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -220,8 +228,6 @@ begin { UpdateViaJsonString = 'Az.ManagedNetworkFabric.private\Invoke-AzNetworkFabricL3DomainUpdateAdminState_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -235,6 +241,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Invoke-AzNetworkFabricProvision.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Invoke-AzNetworkFabricProvision.ps1 index bda17232eade..739ecfedbe5d 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Invoke-AzNetworkFabricProvision.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Invoke-AzNetworkFabricProvision.ps1 @@ -162,6 +162,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -184,8 +192,6 @@ begin { ProvisionViaIdentity = 'Az.ManagedNetworkFabric.private\Invoke-AzNetworkFabricProvision_ProvisionViaIdentity'; } if (('Provision') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -199,6 +205,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Invoke-AzNetworkFabricTapUpdateAdminState.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Invoke-AzNetworkFabricTapUpdateAdminState.ps1 index 6f5af1ab37c6..8eb43fbff2a0 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Invoke-AzNetworkFabricTapUpdateAdminState.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Invoke-AzNetworkFabricTapUpdateAdminState.ps1 @@ -196,6 +196,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -220,8 +228,6 @@ begin { UpdateViaJsonString = 'Az.ManagedNetworkFabric.private\Invoke-AzNetworkFabricTapUpdateAdminState_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -235,6 +241,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabric.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabric.ps1 index 5af4fe44b267..6eb35ade295f 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabric.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabric.ps1 @@ -310,6 +310,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -333,8 +341,6 @@ begin { CreateViaJsonString = 'Az.ManagedNetworkFabric.private\New-AzNetworkFabric_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -348,6 +354,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricAcl.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricAcl.ps1 index f32fd3c3767c..966577d53099 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricAcl.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricAcl.ps1 @@ -268,6 +268,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -291,8 +299,6 @@ begin { CreateViaJsonString = 'Az.ManagedNetworkFabric.private\New-AzNetworkFabricAcl_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -306,6 +312,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricController.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricController.ps1 index a1742eb2b993..b385e0e8e1b5 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricController.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricController.ps1 @@ -231,6 +231,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -254,8 +262,6 @@ begin { CreateViaJsonString = 'Az.ManagedNetworkFabric.private\New-AzNetworkFabricController_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -269,6 +275,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricExternalNetwork.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricExternalNetwork.ps1 index a2069a46f774..f826d43b24f5 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricExternalNetwork.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricExternalNetwork.ps1 @@ -398,6 +398,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -423,8 +431,6 @@ begin { CreateViaJsonString = 'Az.ManagedNetworkFabric.private\New-AzNetworkFabricExternalNetwork_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -438,6 +444,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricIPCommunity.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricIPCommunity.ps1 index 170e46d4c590..551016c464c8 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricIPCommunity.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricIPCommunity.ps1 @@ -177,6 +177,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -200,8 +208,6 @@ begin { CreateViaJsonString = 'Az.ManagedNetworkFabric.private\New-AzNetworkFabricIPCommunity_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -215,6 +221,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricIPExtendedCommunity.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricIPExtendedCommunity.ps1 index 22cf168ad25c..38c5716f18b1 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricIPExtendedCommunity.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricIPExtendedCommunity.ps1 @@ -175,6 +175,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -198,8 +206,6 @@ begin { CreateViaJsonString = 'Az.ManagedNetworkFabric.private\New-AzNetworkFabricIPExtendedCommunity_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -213,6 +219,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricIPPrefix.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricIPPrefix.ps1 index f8b820886a1f..52a622e5fdbe 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricIPPrefix.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricIPPrefix.ps1 @@ -179,6 +179,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -202,8 +210,6 @@ begin { CreateViaJsonString = 'Az.ManagedNetworkFabric.private\New-AzNetworkFabricIPPrefix_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -217,6 +223,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricInternalNetwork.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricInternalNetwork.ps1 index 6570c1a73567..b6f75ce6d493 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricInternalNetwork.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricInternalNetwork.ps1 @@ -453,6 +453,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -478,8 +486,6 @@ begin { CreateViaJsonString = 'Az.ManagedNetworkFabric.private\New-AzNetworkFabricInternalNetwork_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -493,6 +499,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricInternetGatewayRule.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricInternetGatewayRule.ps1 index 265308b9c551..dab332447413 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricInternetGatewayRule.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricInternetGatewayRule.ps1 @@ -174,6 +174,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -197,8 +205,6 @@ begin { CreateViaJsonString = 'Az.ManagedNetworkFabric.private\New-AzNetworkFabricInternetGatewayRule_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -212,6 +218,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricL2Domain.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricL2Domain.ps1 index 5a2aebbde4f3..faa5e9f70b38 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricL2Domain.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricL2Domain.ps1 @@ -175,6 +175,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -198,8 +206,6 @@ begin { CreateViaJsonString = 'Az.ManagedNetworkFabric.private\New-AzNetworkFabricL2Domain_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -213,6 +219,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricL3Domain.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricL3Domain.ps1 index 3cc72f454a76..4650b1298ef8 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricL3Domain.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricL3Domain.ps1 @@ -217,6 +217,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -240,8 +248,6 @@ begin { CreateViaJsonString = 'Az.ManagedNetworkFabric.private\New-AzNetworkFabricL3Domain_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -255,6 +261,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricNeighborGroup.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricNeighborGroup.ps1 index 946b2529bb87..f0592175f1bc 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricNeighborGroup.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricNeighborGroup.ps1 @@ -176,6 +176,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -199,8 +207,6 @@ begin { CreateViaJsonString = 'Az.ManagedNetworkFabric.private\New-AzNetworkFabricNeighborGroup_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -214,6 +220,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricNni.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricNni.ps1 index 3bba96c62fa8..083bcf68f9d0 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricNni.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricNni.ps1 @@ -352,6 +352,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -377,8 +385,6 @@ begin { CreateViaJsonString = 'Az.ManagedNetworkFabric.private\New-AzNetworkFabricNni_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -392,6 +398,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricRoutePolicy.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricRoutePolicy.ps1 index 9b426d514665..678f07110997 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricRoutePolicy.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricRoutePolicy.ps1 @@ -224,6 +224,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -247,8 +255,6 @@ begin { CreateViaJsonString = 'Az.ManagedNetworkFabric.private\New-AzNetworkFabricRoutePolicy_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -262,6 +268,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricTap.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricTap.ps1 index f3be2685482b..fea682557d5e 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricTap.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricTap.ps1 @@ -194,6 +194,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -217,8 +225,6 @@ begin { CreateViaJsonString = 'Az.ManagedNetworkFabric.private\New-AzNetworkFabricTap_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -232,6 +238,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricTapRule.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricTapRule.ps1 index 02b36c18f37f..d9d4104640cb 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricTapRule.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/New-AzNetworkFabricTapRule.ps1 @@ -247,6 +247,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -270,8 +278,6 @@ begin { CreateViaJsonString = 'Az.ManagedNetworkFabric.private\New-AzNetworkFabricTapRule_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -285,6 +291,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/ProxyCmdletDefinitions.ps1 index f6c26e922983..6f5fca22088b 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -157,6 +157,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -181,8 +189,6 @@ begin { List1 = 'Az.ManagedNetworkFabric.private\Get-AzNetworkFabricAcl_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -196,6 +202,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -382,6 +391,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -406,8 +423,6 @@ begin { List1 = 'Az.ManagedNetworkFabric.private\Get-AzNetworkFabricController_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -421,6 +436,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -607,6 +625,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -631,8 +657,6 @@ begin { List1 = 'Az.ManagedNetworkFabric.private\Get-AzNetworkFabricDevice_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -646,6 +670,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -871,6 +898,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -895,8 +930,6 @@ begin { List = 'Az.ManagedNetworkFabric.private\Get-AzNetworkFabricExternalNetwork_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -910,6 +943,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -1135,6 +1171,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -1159,8 +1203,6 @@ begin { List = 'Az.ManagedNetworkFabric.private\Get-AzNetworkFabricInterface_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -1174,6 +1216,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -1399,6 +1444,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -1423,8 +1476,6 @@ begin { List = 'Az.ManagedNetworkFabric.private\Get-AzNetworkFabricInternalNetwork_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -1438,6 +1489,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -1624,6 +1678,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -1648,8 +1710,6 @@ begin { List1 = 'Az.ManagedNetworkFabric.private\Get-AzNetworkFabricInternetGatewayRule_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -1663,6 +1723,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -1849,6 +1912,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -1873,8 +1944,6 @@ begin { List1 = 'Az.ManagedNetworkFabric.private\Get-AzNetworkFabricInternetGateway_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -1888,6 +1957,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -2074,6 +2146,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -2098,8 +2178,6 @@ begin { List1 = 'Az.ManagedNetworkFabric.private\Get-AzNetworkFabricIPCommunity_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -2113,6 +2191,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -2299,6 +2380,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -2323,8 +2412,6 @@ begin { List1 = 'Az.ManagedNetworkFabric.private\Get-AzNetworkFabricIPExtendedCommunity_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -2338,6 +2425,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -2524,6 +2614,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -2548,8 +2646,6 @@ begin { List1 = 'Az.ManagedNetworkFabric.private\Get-AzNetworkFabricIPPrefix_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -2563,6 +2659,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -2749,6 +2848,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -2773,8 +2880,6 @@ begin { List1 = 'Az.ManagedNetworkFabric.private\Get-AzNetworkFabricL2Domain_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -2788,6 +2893,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -2974,6 +3082,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -2998,8 +3114,6 @@ begin { List1 = 'Az.ManagedNetworkFabric.private\Get-AzNetworkFabricL3Domain_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -3013,6 +3127,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -3199,6 +3316,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -3223,8 +3348,6 @@ begin { List1 = 'Az.ManagedNetworkFabric.private\Get-AzNetworkFabricNeighborGroup_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -3238,6 +3361,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -3463,6 +3589,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -3487,8 +3621,6 @@ begin { List = 'Az.ManagedNetworkFabric.private\Get-AzNetworkFabricNni_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -3502,6 +3634,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -3688,6 +3823,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -3712,8 +3855,6 @@ begin { List1 = 'Az.ManagedNetworkFabric.private\Get-AzNetworkFabricNpb_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -3727,6 +3868,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -3913,6 +4057,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -3937,8 +4089,6 @@ begin { List1 = 'Az.ManagedNetworkFabric.private\Get-AzNetworkFabricRack_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -3952,6 +4102,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -4138,6 +4291,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -4162,8 +4323,6 @@ begin { List1 = 'Az.ManagedNetworkFabric.private\Get-AzNetworkFabricRoutePolicy_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -4177,6 +4336,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -4363,6 +4525,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -4387,8 +4557,6 @@ begin { List1 = 'Az.ManagedNetworkFabric.private\Get-AzNetworkFabricTapRule_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -4402,6 +4570,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -4588,6 +4759,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -4612,8 +4791,6 @@ begin { List1 = 'Az.ManagedNetworkFabric.private\Get-AzNetworkFabricTap_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -4627,6 +4804,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -4813,6 +4993,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -4837,8 +5025,6 @@ begin { List1 = 'Az.ManagedNetworkFabric.private\Get-AzNetworkFabric_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -4852,6 +5038,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -5042,6 +5231,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -5064,8 +5261,6 @@ begin { DeprovisionViaIdentity = 'Az.ManagedNetworkFabric.private\Invoke-AzNetworkFabricDeprovision_DeprovisionViaIdentity'; } if (('Deprovision') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -5079,6 +5274,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -5363,6 +5561,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -5389,8 +5595,6 @@ begin { UpdateViaJsonString = 'Az.ManagedNetworkFabric.private\Invoke-AzNetworkFabricInterfaceUpdateAdminState_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -5404,6 +5608,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -5629,6 +5836,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -5653,8 +5868,6 @@ begin { UpdateViaJsonString = 'Az.ManagedNetworkFabric.private\Invoke-AzNetworkFabricL2DomainUpdateAdminState_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -5668,6 +5881,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -5893,6 +6109,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -5917,8 +6141,6 @@ begin { UpdateViaJsonString = 'Az.ManagedNetworkFabric.private\Invoke-AzNetworkFabricL3DomainUpdateAdminState_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -5932,6 +6154,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -6123,6 +6348,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -6145,8 +6378,6 @@ begin { ProvisionViaIdentity = 'Az.ManagedNetworkFabric.private\Invoke-AzNetworkFabricProvision_ProvisionViaIdentity'; } if (('Provision') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -6160,6 +6391,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -6385,6 +6619,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -6409,8 +6651,6 @@ begin { UpdateViaJsonString = 'Az.ManagedNetworkFabric.private\Invoke-AzNetworkFabricTapUpdateAdminState_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -6424,6 +6664,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -6721,6 +6964,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -6744,8 +6995,6 @@ begin { CreateViaJsonString = 'Az.ManagedNetworkFabric.private\New-AzNetworkFabricAcl_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -6759,6 +7008,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -7019,6 +7271,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -7042,8 +7302,6 @@ begin { CreateViaJsonString = 'Az.ManagedNetworkFabric.private\New-AzNetworkFabricController_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -7057,6 +7315,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -7484,6 +7745,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -7509,8 +7778,6 @@ begin { CreateViaJsonString = 'Az.ManagedNetworkFabric.private\New-AzNetworkFabricExternalNetwork_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -7524,6 +7791,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -8006,6 +8276,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -8031,8 +8309,6 @@ begin { CreateViaJsonString = 'Az.ManagedNetworkFabric.private\New-AzNetworkFabricInternalNetwork_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -8046,6 +8322,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -8249,6 +8528,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -8272,8 +8559,6 @@ begin { CreateViaJsonString = 'Az.ManagedNetworkFabric.private\New-AzNetworkFabricInternetGatewayRule_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -8287,6 +8572,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -8493,6 +8781,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -8516,8 +8812,6 @@ begin { CreateViaJsonString = 'Az.ManagedNetworkFabric.private\New-AzNetworkFabricIPCommunity_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -8531,6 +8825,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -8735,6 +9032,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -8758,8 +9063,6 @@ begin { CreateViaJsonString = 'Az.ManagedNetworkFabric.private\New-AzNetworkFabricIPExtendedCommunity_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -8773,6 +9076,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -8981,6 +9287,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -9004,8 +9318,6 @@ begin { CreateViaJsonString = 'Az.ManagedNetworkFabric.private\New-AzNetworkFabricIPPrefix_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -9019,6 +9331,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -9223,6 +9538,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -9246,8 +9569,6 @@ begin { CreateViaJsonString = 'Az.ManagedNetworkFabric.private\New-AzNetworkFabricL2Domain_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -9261,6 +9582,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -9507,6 +9831,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -9530,8 +9862,6 @@ begin { CreateViaJsonString = 'Az.ManagedNetworkFabric.private\New-AzNetworkFabricL3Domain_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -9545,6 +9875,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -9750,6 +10083,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -9773,8 +10114,6 @@ begin { CreateViaJsonString = 'Az.ManagedNetworkFabric.private\New-AzNetworkFabricNeighborGroup_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -9788,6 +10127,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -10169,6 +10511,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -10194,8 +10544,6 @@ begin { CreateViaJsonString = 'Az.ManagedNetworkFabric.private\New-AzNetworkFabricNni_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -10209,6 +10557,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -10462,6 +10813,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -10485,8 +10844,6 @@ begin { CreateViaJsonString = 'Az.ManagedNetworkFabric.private\New-AzNetworkFabricRoutePolicy_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -10500,6 +10857,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -10776,6 +11136,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -10799,8 +11167,6 @@ begin { CreateViaJsonString = 'Az.ManagedNetworkFabric.private\New-AzNetworkFabricTapRule_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -10814,6 +11180,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -11037,6 +11406,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -11060,8 +11437,6 @@ begin { CreateViaJsonString = 'Az.ManagedNetworkFabric.private\New-AzNetworkFabricTap_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -11075,6 +11450,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -11414,6 +11792,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -11437,8 +11823,6 @@ begin { CreateViaJsonString = 'Az.ManagedNetworkFabric.private\New-AzNetworkFabric_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -11452,6 +11836,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -11649,6 +12036,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -11671,8 +12066,6 @@ begin { DeleteViaIdentity = 'Az.ManagedNetworkFabric.private\Remove-AzNetworkFabricAcl_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -11686,6 +12079,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -11883,6 +12279,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -11905,8 +12309,6 @@ begin { DeleteViaIdentity = 'Az.ManagedNetworkFabric.private\Remove-AzNetworkFabricController_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -11920,6 +12322,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -12158,6 +12563,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -12181,8 +12594,6 @@ begin { DeleteViaIdentityL3IsolationDomain = 'Az.ManagedNetworkFabric.private\Remove-AzNetworkFabricExternalNetwork_DeleteViaIdentityL3IsolationDomain'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -12196,6 +12607,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -12434,6 +12848,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -12457,8 +12879,6 @@ begin { DeleteViaIdentityL3IsolationDomain = 'Az.ManagedNetworkFabric.private\Remove-AzNetworkFabricInternalNetwork_DeleteViaIdentityL3IsolationDomain'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -12472,6 +12892,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -12669,6 +13092,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -12691,8 +13122,6 @@ begin { DeleteViaIdentity = 'Az.ManagedNetworkFabric.private\Remove-AzNetworkFabricInternetGatewayRule_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -12706,6 +13135,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -12903,6 +13335,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -12925,8 +13365,6 @@ begin { DeleteViaIdentity = 'Az.ManagedNetworkFabric.private\Remove-AzNetworkFabricIPCommunity_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -12940,6 +13378,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -13137,6 +13578,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -13159,8 +13608,6 @@ begin { DeleteViaIdentity = 'Az.ManagedNetworkFabric.private\Remove-AzNetworkFabricIPExtendedCommunity_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -13174,6 +13621,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -13371,6 +13821,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -13393,8 +13851,6 @@ begin { DeleteViaIdentity = 'Az.ManagedNetworkFabric.private\Remove-AzNetworkFabricIPPrefix_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -13408,6 +13864,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -13605,6 +14064,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -13627,8 +14094,6 @@ begin { DeleteViaIdentity = 'Az.ManagedNetworkFabric.private\Remove-AzNetworkFabricL2Domain_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -13642,6 +14107,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -13839,6 +14307,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -13861,8 +14337,6 @@ begin { DeleteViaIdentity = 'Az.ManagedNetworkFabric.private\Remove-AzNetworkFabricL3Domain_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -13876,6 +14350,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -14073,6 +14550,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -14095,8 +14580,6 @@ begin { DeleteViaIdentity = 'Az.ManagedNetworkFabric.private\Remove-AzNetworkFabricNeighborGroup_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -14110,6 +14593,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -14348,6 +14834,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -14371,8 +14865,6 @@ begin { DeleteViaIdentityNetworkFabric = 'Az.ManagedNetworkFabric.private\Remove-AzNetworkFabricNni_DeleteViaIdentityNetworkFabric'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -14386,6 +14878,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -14583,6 +15078,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -14605,8 +15108,6 @@ begin { DeleteViaIdentity = 'Az.ManagedNetworkFabric.private\Remove-AzNetworkFabricRoutePolicy_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -14620,6 +15121,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -14817,6 +15321,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -14839,8 +15351,6 @@ begin { DeleteViaIdentity = 'Az.ManagedNetworkFabric.private\Remove-AzNetworkFabricTapRule_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -14854,6 +15364,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -15051,6 +15564,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -15073,8 +15594,6 @@ begin { DeleteViaIdentity = 'Az.ManagedNetworkFabric.private\Remove-AzNetworkFabricTap_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -15088,6 +15607,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -15285,6 +15807,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -15307,8 +15837,6 @@ begin { DeleteViaIdentity = 'Az.ManagedNetworkFabric.private\Remove-AzNetworkFabric_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -15322,6 +15850,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -15561,6 +16092,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -15585,8 +16124,6 @@ begin { UpdateViaJsonString = 'Az.ManagedNetworkFabric.private\Update-AzNetworkFabricDevice_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -15600,6 +16137,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -15826,6 +16366,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -15850,8 +16398,6 @@ begin { UpdateViaJsonString = 'Az.ManagedNetworkFabric.private\Update-AzNetworkFabricInternetGateway_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -15865,6 +16411,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -16109,6 +16658,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -16133,8 +16690,6 @@ begin { UpdateViaJsonString = 'Az.ManagedNetworkFabric.private\Update-AzNetworkFabricNeighborGroup_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -16148,6 +16703,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabric.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabric.ps1 index d1d30093b230..3eba35ac30bb 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabric.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabric.ps1 @@ -168,6 +168,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -190,8 +198,6 @@ begin { DeleteViaIdentity = 'Az.ManagedNetworkFabric.private\Remove-AzNetworkFabric_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -205,6 +211,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricAcl.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricAcl.ps1 index 309b32ca5d46..0cdaf61625d3 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricAcl.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricAcl.ps1 @@ -168,6 +168,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -190,8 +198,6 @@ begin { DeleteViaIdentity = 'Az.ManagedNetworkFabric.private\Remove-AzNetworkFabricAcl_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -205,6 +211,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricController.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricController.ps1 index 006adbb5e6ba..7d500c61827c 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricController.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricController.ps1 @@ -168,6 +168,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -190,8 +198,6 @@ begin { DeleteViaIdentity = 'Az.ManagedNetworkFabric.private\Remove-AzNetworkFabricController_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -205,6 +211,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricExternalNetwork.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricExternalNetwork.ps1 index fbbd940781bf..3999a0e72ed5 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricExternalNetwork.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricExternalNetwork.ps1 @@ -209,6 +209,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -232,8 +240,6 @@ begin { DeleteViaIdentityL3IsolationDomain = 'Az.ManagedNetworkFabric.private\Remove-AzNetworkFabricExternalNetwork_DeleteViaIdentityL3IsolationDomain'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -247,6 +253,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricIPCommunity.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricIPCommunity.ps1 index 4d330ad5e193..8a444f3f7988 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricIPCommunity.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricIPCommunity.ps1 @@ -168,6 +168,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -190,8 +198,6 @@ begin { DeleteViaIdentity = 'Az.ManagedNetworkFabric.private\Remove-AzNetworkFabricIPCommunity_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -205,6 +211,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricIPExtendedCommunity.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricIPExtendedCommunity.ps1 index a1241c4d398a..1ab06c704d9d 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricIPExtendedCommunity.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricIPExtendedCommunity.ps1 @@ -168,6 +168,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -190,8 +198,6 @@ begin { DeleteViaIdentity = 'Az.ManagedNetworkFabric.private\Remove-AzNetworkFabricIPExtendedCommunity_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -205,6 +211,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricIPPrefix.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricIPPrefix.ps1 index 85bf5a1b74b2..962fdb1937b6 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricIPPrefix.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricIPPrefix.ps1 @@ -168,6 +168,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -190,8 +198,6 @@ begin { DeleteViaIdentity = 'Az.ManagedNetworkFabric.private\Remove-AzNetworkFabricIPPrefix_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -205,6 +211,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricInternalNetwork.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricInternalNetwork.ps1 index 3e1feb5668b5..56ea2612b7a4 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricInternalNetwork.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricInternalNetwork.ps1 @@ -209,6 +209,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -232,8 +240,6 @@ begin { DeleteViaIdentityL3IsolationDomain = 'Az.ManagedNetworkFabric.private\Remove-AzNetworkFabricInternalNetwork_DeleteViaIdentityL3IsolationDomain'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -247,6 +253,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricInternetGatewayRule.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricInternetGatewayRule.ps1 index 1fd4656fcb68..6f69e0c1c3ff 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricInternetGatewayRule.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricInternetGatewayRule.ps1 @@ -168,6 +168,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -190,8 +198,6 @@ begin { DeleteViaIdentity = 'Az.ManagedNetworkFabric.private\Remove-AzNetworkFabricInternetGatewayRule_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -205,6 +211,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricL2Domain.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricL2Domain.ps1 index 543a60a069c5..a4348fb48291 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricL2Domain.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricL2Domain.ps1 @@ -168,6 +168,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -190,8 +198,6 @@ begin { DeleteViaIdentity = 'Az.ManagedNetworkFabric.private\Remove-AzNetworkFabricL2Domain_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -205,6 +211,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricL3Domain.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricL3Domain.ps1 index 2b403db453af..27cd91971cbc 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricL3Domain.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricL3Domain.ps1 @@ -168,6 +168,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -190,8 +198,6 @@ begin { DeleteViaIdentity = 'Az.ManagedNetworkFabric.private\Remove-AzNetworkFabricL3Domain_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -205,6 +211,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricNeighborGroup.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricNeighborGroup.ps1 index aa6df7326664..dc7e8beec465 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricNeighborGroup.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricNeighborGroup.ps1 @@ -168,6 +168,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -190,8 +198,6 @@ begin { DeleteViaIdentity = 'Az.ManagedNetworkFabric.private\Remove-AzNetworkFabricNeighborGroup_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -205,6 +211,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricNni.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricNni.ps1 index 13553e0f2fe2..1a2fea8dcac7 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricNni.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricNni.ps1 @@ -209,6 +209,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -232,8 +240,6 @@ begin { DeleteViaIdentityNetworkFabric = 'Az.ManagedNetworkFabric.private\Remove-AzNetworkFabricNni_DeleteViaIdentityNetworkFabric'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -247,6 +253,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricRoutePolicy.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricRoutePolicy.ps1 index a915089e6a2e..6c00a3b4b696 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricRoutePolicy.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricRoutePolicy.ps1 @@ -168,6 +168,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -190,8 +198,6 @@ begin { DeleteViaIdentity = 'Az.ManagedNetworkFabric.private\Remove-AzNetworkFabricRoutePolicy_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -205,6 +211,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricTap.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricTap.ps1 index 6b1ca35f6914..0371a0369fff 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricTap.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricTap.ps1 @@ -168,6 +168,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -190,8 +198,6 @@ begin { DeleteViaIdentity = 'Az.ManagedNetworkFabric.private\Remove-AzNetworkFabricTap_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -205,6 +211,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricTapRule.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricTapRule.ps1 index c923004ee45e..fb8ff2faed39 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricTapRule.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Remove-AzNetworkFabricTapRule.ps1 @@ -168,6 +168,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -190,8 +198,6 @@ begin { DeleteViaIdentity = 'Az.ManagedNetworkFabric.private\Remove-AzNetworkFabricTapRule_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -205,6 +211,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Update-AzNetworkFabricDevice.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Update-AzNetworkFabricDevice.ps1 index 0b2d998d2a2a..4107bb7a80c4 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Update-AzNetworkFabricDevice.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Update-AzNetworkFabricDevice.ps1 @@ -210,6 +210,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -234,8 +242,6 @@ begin { UpdateViaJsonString = 'Az.ManagedNetworkFabric.private\Update-AzNetworkFabricDevice_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -249,6 +255,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Update-AzNetworkFabricInternetGateway.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Update-AzNetworkFabricInternetGateway.ps1 index ba5c1482c584..4b9a3b71a4a2 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Update-AzNetworkFabricInternetGateway.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Update-AzNetworkFabricInternetGateway.ps1 @@ -197,6 +197,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -221,8 +229,6 @@ begin { UpdateViaJsonString = 'Az.ManagedNetworkFabric.private\Update-AzNetworkFabricInternetGateway_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -236,6 +242,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Update-AzNetworkFabricNeighborGroup.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Update-AzNetworkFabricNeighborGroup.ps1 index d1db5669a8cb..72aa3d75743f 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Update-AzNetworkFabricNeighborGroup.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/exports/Update-AzNetworkFabricNeighborGroup.ps1 @@ -215,6 +215,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -239,8 +247,6 @@ begin { UpdateViaJsonString = 'Az.ManagedNetworkFabric.private\Update-AzNetworkFabricNeighborGroup_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -254,6 +260,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/ManagedNetworkFabric.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/ManagedNetworkFabric.cs index f172fdcc25b5..8c69778d9b8c 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/ManagedNetworkFabric.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/ManagedNetworkFabric.cs @@ -335,16 +335,17 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -357,7 +358,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -485,16 +489,17 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -507,7 +512,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -749,17 +757,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var _finalUri = _response.GetFirstHeader(@"Azure-AsyncOperation"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -772,7 +781,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -2046,17 +2058,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -2069,7 +2082,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -2197,17 +2213,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -2220,7 +2237,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -2343,7 +2363,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the Access Control List resource. + /// API to update certain properties of the Access Control List resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Access Control List. @@ -2721,17 +2741,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -2744,7 +2765,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -2874,17 +2898,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -2897,7 +2922,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -3023,7 +3051,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the Access Control List resource. + /// API to update certain properties of the Access Control List resource. /// /// Access Control List properties to update. /// a delegate that is called when the remote service returns 200 (OK). @@ -3082,7 +3110,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the Access Control List resource. + /// API to update certain properties of the Access Control List resource. /// /// Access Control List properties to update. /// an instance that will receive events. @@ -3139,7 +3167,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the Access Control List resource. + /// API to update certain properties of the Access Control List resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Access Control List. @@ -3187,7 +3215,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the Access Control List resource. + /// API to update certain properties of the Access Control List resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Access Control List. @@ -3233,7 +3261,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the Access Control List resource. + /// API to update certain properties of the Access Control List resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Access Control List. @@ -3295,17 +3323,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -3318,7 +3347,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -3446,17 +3478,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -3469,7 +3502,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -3804,17 +3840,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -3827,7 +3864,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -3957,17 +3997,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -3980,7 +4021,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -4103,7 +4147,7 @@ public partial class ManagedNetworkFabric } } - /// Create ExternalNetwork PUT method. + /// create ExternalNetwork PUT method. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the L3 Isolation Domain. @@ -4155,7 +4199,7 @@ public partial class ManagedNetworkFabric } } - /// Create ExternalNetwork PUT method. + /// create ExternalNetwork PUT method. /// /// Request payload. /// a delegate that is called when the remote service returns 200 (OK). @@ -4217,7 +4261,7 @@ public partial class ManagedNetworkFabric } } - /// Create ExternalNetwork PUT method. + /// create ExternalNetwork PUT method. /// /// Request payload. /// an instance that will receive events. @@ -4277,7 +4321,7 @@ public partial class ManagedNetworkFabric } } - /// Create ExternalNetwork PUT method. + /// create ExternalNetwork PUT method. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the L3 Isolation Domain. @@ -4328,7 +4372,7 @@ public partial class ManagedNetworkFabric } } - /// Create ExternalNetwork PUT method. + /// create ExternalNetwork PUT method. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the L3 Isolation Domain. @@ -4377,7 +4421,7 @@ public partial class ManagedNetworkFabric } } - /// Create ExternalNetwork PUT method. + /// create ExternalNetwork PUT method. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the L3 Isolation Domain. @@ -4442,16 +4486,17 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -4464,7 +4509,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -4592,16 +4640,17 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -4614,7 +4663,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -4864,17 +4916,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -4887,7 +4940,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -5684,7 +5740,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the ExternalNetworks resource. + /// API to update certain properties of the ExternalNetworks resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the L3 Isolation Domain. @@ -5737,7 +5793,7 @@ public partial class ManagedNetworkFabric } /// - /// Executes Update operation to enable or disable administrative State for externalNetwork. + /// Executes update operation to enable or disable administrative State for externalNetwork. /// /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. @@ -5792,7 +5848,7 @@ public partial class ManagedNetworkFabric } /// - /// Executes Update operation to enable or disable administrative State for externalNetwork. + /// Executes update operation to enable or disable administrative State for externalNetwork. /// /// /// Request payload. @@ -5857,7 +5913,7 @@ public partial class ManagedNetworkFabric } /// - /// Executes Update operation to enable or disable administrative State for externalNetwork. + /// Executes update operation to enable or disable administrative State for externalNetwork. /// /// /// Request payload. @@ -5920,7 +5976,7 @@ public partial class ManagedNetworkFabric } /// - /// Executes Update operation to enable or disable administrative State for externalNetwork. + /// Executes update operation to enable or disable administrative State for externalNetwork. /// /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. @@ -5974,7 +6030,7 @@ public partial class ManagedNetworkFabric } /// - /// Executes Update operation to enable or disable administrative State for externalNetwork. + /// Executes update operation to enable or disable administrative State for externalNetwork. /// /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. @@ -6026,7 +6082,7 @@ public partial class ManagedNetworkFabric } /// - /// Executes Update operation to enable or disable administrative State for externalNetwork. + /// Executes update operation to enable or disable administrative State for externalNetwork. /// /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. @@ -6095,17 +6151,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -6118,7 +6175,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -6248,17 +6308,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -6271,7 +6332,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -6399,7 +6463,7 @@ public partial class ManagedNetworkFabric } } - /// Update Static Route BFD for external Network. + /// update Static Route BFD for external Network. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the L3 Isolation Domain. @@ -6452,7 +6516,7 @@ public partial class ManagedNetworkFabric } } - /// Update Static Route BFD for external Network. + /// update Static Route BFD for external Network. /// /// Request payload. /// a delegate that is called when the remote service returns 200 (OK). @@ -6515,7 +6579,7 @@ public partial class ManagedNetworkFabric } } - /// Update Static Route BFD for external Network. + /// update Static Route BFD for external Network. /// /// Request payload. /// an instance that will receive events. @@ -6576,7 +6640,7 @@ public partial class ManagedNetworkFabric } } - /// Update Static Route BFD for external Network. + /// update Static Route BFD for external Network. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the L3 Isolation Domain. @@ -6628,7 +6692,7 @@ public partial class ManagedNetworkFabric } } - /// Update Static Route BFD for external Network. + /// update Static Route BFD for external Network. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the L3 Isolation Domain. @@ -6678,7 +6742,7 @@ public partial class ManagedNetworkFabric } } - /// Update Static Route BFD for external Network. + /// update Static Route BFD for external Network. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the L3 Isolation Domain. @@ -6746,17 +6810,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -6769,7 +6834,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -6899,17 +6967,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -6922,7 +6991,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -7050,7 +7122,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the ExternalNetworks resource. + /// API to update certain properties of the ExternalNetworks resource. /// /// ExternalNetwork properties to update. Only annotations are supported. /// a delegate that is called when the remote service returns 200 (OK). @@ -7112,7 +7184,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the ExternalNetworks resource. + /// API to update certain properties of the ExternalNetworks resource. /// /// ExternalNetwork properties to update. Only annotations are supported. /// an instance that will receive events. @@ -7172,7 +7244,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the ExternalNetworks resource. + /// API to update certain properties of the ExternalNetworks resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the L3 Isolation Domain. @@ -7223,7 +7295,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the ExternalNetworks resource. + /// API to update certain properties of the ExternalNetworks resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the L3 Isolation Domain. @@ -7272,7 +7344,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the ExternalNetworks resource. + /// API to update certain properties of the ExternalNetworks resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the L3 Isolation Domain. @@ -7337,17 +7409,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -7360,7 +7433,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -7488,17 +7564,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -7511,7 +7588,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -7960,16 +8040,17 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -7982,7 +8063,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -8110,16 +8194,17 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -8132,7 +8217,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -8374,17 +8462,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -8397,7 +8486,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -9460,7 +9552,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the IP Community resource. + /// API to update certain properties of the IP Community resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the IP Community. @@ -9509,7 +9601,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the IP Community resource. + /// API to update certain properties of the IP Community resource. /// /// IP Community properties to update. /// a delegate that is called when the remote service returns 200 (OK). @@ -9568,7 +9660,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the IP Community resource. + /// API to update certain properties of the IP Community resource. /// /// IP Community properties to update. /// an instance that will receive events. @@ -9625,7 +9717,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the IP Community resource. + /// API to update certain properties of the IP Community resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the IP Community. @@ -9673,7 +9765,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the IP Community resource. + /// API to update certain properties of the IP Community resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the IP Community. @@ -9719,7 +9811,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the IP Community resource. + /// API to update certain properties of the IP Community resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the IP Community. @@ -9781,17 +9873,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -9804,7 +9897,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -9932,17 +10028,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -9955,7 +10052,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -10404,16 +10504,17 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -10426,7 +10527,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -10554,16 +10658,17 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -10576,7 +10681,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -10818,17 +10926,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -10841,7 +10950,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -11908,7 +12020,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the IP Extended Community resource. + /// API to update certain properties of the IP Extended Community resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the IP Extended Community. @@ -11957,7 +12069,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the IP Extended Community resource. + /// API to update certain properties of the IP Extended Community resource. /// /// IP Extended Community properties to update. /// a delegate that is called when the remote service returns 200 (OK). @@ -12016,7 +12128,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the IP Extended Community resource. + /// API to update certain properties of the IP Extended Community resource. /// /// IP Extended Community properties to update. /// an instance that will receive events. @@ -12073,7 +12185,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the IP Extended Community resource. + /// API to update certain properties of the IP Extended Community resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the IP Extended Community. @@ -12121,7 +12233,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the IP Extended Community resource. + /// API to update certain properties of the IP Extended Community resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the IP Extended Community. @@ -12167,7 +12279,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the IP Extended Community resource. + /// API to update certain properties of the IP Extended Community resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the IP Extended Community. @@ -12231,17 +12343,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -12254,7 +12367,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -12382,17 +12498,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -12405,7 +12522,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -12852,16 +12972,17 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -12874,7 +12995,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -13002,16 +13126,17 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -13024,7 +13149,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -13266,17 +13394,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -13289,7 +13418,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -14352,7 +14484,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the IP Prefix resource. + /// API to update certain properties of the IP Prefix resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the IP Prefix. @@ -14401,7 +14533,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the IP Prefix resource. + /// API to update certain properties of the IP Prefix resource. /// /// IP Prefix properties to update. /// a delegate that is called when the remote service returns 200 (OK). @@ -14460,7 +14592,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the IP Prefix resource. + /// API to update certain properties of the IP Prefix resource. /// /// IP Prefix properties to update. /// an instance that will receive events. @@ -14517,7 +14649,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the IP Prefix resource. + /// API to update certain properties of the IP Prefix resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the IP Prefix. @@ -14565,7 +14697,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the IP Prefix resource. + /// API to update certain properties of the IP Prefix resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the IP Prefix. @@ -14611,7 +14743,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the IP Prefix resource. + /// API to update certain properties of the IP Prefix resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the IP Prefix. @@ -14673,17 +14805,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -14696,7 +14829,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -14824,17 +14960,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -14847,7 +14984,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -14973,7 +15113,7 @@ public partial class ManagedNetworkFabric } } - /// Create InternalNetwork PUT method. + /// create InternalNetwork PUT method. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the L3 Isolation Domain. @@ -15025,7 +15165,7 @@ public partial class ManagedNetworkFabric } } - /// Create InternalNetwork PUT method. + /// create InternalNetwork PUT method. /// /// Request payload. /// a delegate that is called when the remote service returns 200 (OK). @@ -15087,7 +15227,7 @@ public partial class ManagedNetworkFabric } } - /// Create InternalNetwork PUT method. + /// create InternalNetwork PUT method. /// /// Request payload. /// an instance that will receive events. @@ -15147,7 +15287,7 @@ public partial class ManagedNetworkFabric } } - /// Create InternalNetwork PUT method. + /// create InternalNetwork PUT method. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the L3 Isolation Domain. @@ -15198,7 +15338,7 @@ public partial class ManagedNetworkFabric } } - /// Create InternalNetwork PUT method. + /// create InternalNetwork PUT method. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the L3 Isolation Domain. @@ -15247,7 +15387,7 @@ public partial class ManagedNetworkFabric } } - /// Create InternalNetwork PUT method. + /// create InternalNetwork PUT method. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the L3 Isolation Domain. @@ -15312,16 +15452,17 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -15334,7 +15475,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -15462,16 +15606,17 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -15484,7 +15629,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -15734,17 +15882,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -15757,7 +15906,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -16554,7 +16706,7 @@ public partial class ManagedNetworkFabric } } - /// Update a InternalNetworks. + /// update a InternalNetworks. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the L3 Isolation Domain. @@ -16607,7 +16759,7 @@ public partial class ManagedNetworkFabric } /// - /// Update Administrative state of InternalNetworks on resources referred by their resource ids. + /// update Administrative state of InternalNetworks on resources referred by their resource ids. /// /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. @@ -16662,7 +16814,7 @@ public partial class ManagedNetworkFabric } /// - /// Update Administrative state of InternalNetworks on resources referred by their resource ids. + /// update Administrative state of InternalNetworks on resources referred by their resource ids. /// /// /// Request payload. @@ -16727,7 +16879,7 @@ public partial class ManagedNetworkFabric } /// - /// Update Administrative state of InternalNetworks on resources referred by their resource ids. + /// update Administrative state of InternalNetworks on resources referred by their resource ids. /// /// /// Request payload. @@ -16790,7 +16942,7 @@ public partial class ManagedNetworkFabric } /// - /// Update Administrative state of InternalNetworks on resources referred by their resource ids. + /// update Administrative state of InternalNetworks on resources referred by their resource ids. /// /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. @@ -16844,7 +16996,7 @@ public partial class ManagedNetworkFabric } /// - /// Update Administrative state of InternalNetworks on resources referred by their resource ids. + /// update Administrative state of InternalNetworks on resources referred by their resource ids. /// /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. @@ -16896,7 +17048,7 @@ public partial class ManagedNetworkFabric } /// - /// Update Administrative state of InternalNetworks on resources referred by their resource ids. + /// update Administrative state of InternalNetworks on resources referred by their resource ids. /// /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. @@ -16965,17 +17117,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -16988,7 +17141,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -17118,17 +17274,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -17141,7 +17298,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -17269,7 +17429,7 @@ public partial class ManagedNetworkFabric } } - /// Update BGP state for internalNetwork. Allowed only on edge devices. + /// update BGP state for internalNetwork. Allowed only on edge devices. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the L3 Isolation Domain. @@ -17322,7 +17482,7 @@ public partial class ManagedNetworkFabric } } - /// Update BGP state for internalNetwork. Allowed only on edge devices. + /// update BGP state for internalNetwork. Allowed only on edge devices. /// /// Request payload. /// a delegate that is called when the remote service returns 200 (OK). @@ -17385,7 +17545,7 @@ public partial class ManagedNetworkFabric } } - /// Update BGP state for internalNetwork. Allowed only on edge devices. + /// update BGP state for internalNetwork. Allowed only on edge devices. /// /// Request payload. /// an instance that will receive events. @@ -17446,7 +17606,7 @@ public partial class ManagedNetworkFabric } } - /// Update BGP state for internalNetwork. Allowed only on edge devices. + /// update BGP state for internalNetwork. Allowed only on edge devices. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the L3 Isolation Domain. @@ -17498,7 +17658,7 @@ public partial class ManagedNetworkFabric } } - /// Update BGP state for internalNetwork. Allowed only on edge devices. + /// update BGP state for internalNetwork. Allowed only on edge devices. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the L3 Isolation Domain. @@ -17548,7 +17708,7 @@ public partial class ManagedNetworkFabric } } - /// Update BGP state for internalNetwork. Allowed only on edge devices. + /// update BGP state for internalNetwork. Allowed only on edge devices. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the L3 Isolation Domain. @@ -17616,17 +17776,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -17639,7 +17800,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -17769,17 +17933,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -17792,7 +17957,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -17920,7 +18088,7 @@ public partial class ManagedNetworkFabric } } - /// Update Static Route BFD administrative state for internalNetwork. + /// update Static Route BFD administrative state for internalNetwork. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the L3 Isolation Domain. @@ -17973,7 +18141,7 @@ public partial class ManagedNetworkFabric } } - /// Update Static Route BFD administrative state for internalNetwork. + /// update Static Route BFD administrative state for internalNetwork. /// /// Request payload. /// a delegate that is called when the remote service returns 200 (OK). @@ -18036,7 +18204,7 @@ public partial class ManagedNetworkFabric } } - /// Update Static Route BFD administrative state for internalNetwork. + /// update Static Route BFD administrative state for internalNetwork. /// /// Request payload. /// an instance that will receive events. @@ -18097,7 +18265,7 @@ public partial class ManagedNetworkFabric } } - /// Update Static Route BFD administrative state for internalNetwork. + /// update Static Route BFD administrative state for internalNetwork. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the L3 Isolation Domain. @@ -18149,7 +18317,7 @@ public partial class ManagedNetworkFabric } } - /// Update Static Route BFD administrative state for internalNetwork. + /// update Static Route BFD administrative state for internalNetwork. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the L3 Isolation Domain. @@ -18199,7 +18367,7 @@ public partial class ManagedNetworkFabric } } - /// Update Static Route BFD administrative state for internalNetwork. + /// update Static Route BFD administrative state for internalNetwork. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the L3 Isolation Domain. @@ -18267,17 +18435,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -18290,7 +18459,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -18420,17 +18592,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -18443,7 +18616,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -18571,7 +18747,7 @@ public partial class ManagedNetworkFabric } } - /// Update a InternalNetworks. + /// update a InternalNetworks. /// /// InternalNetwork properties to update. Only annotations are supported. /// a delegate that is called when the remote service returns 200 (OK). @@ -18633,7 +18809,7 @@ public partial class ManagedNetworkFabric } } - /// Update a InternalNetworks. + /// update a InternalNetworks. /// /// InternalNetwork properties to update. Only annotations are supported. /// an instance that will receive events. @@ -18693,7 +18869,7 @@ public partial class ManagedNetworkFabric } } - /// Update a InternalNetworks. + /// update a InternalNetworks. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the L3 Isolation Domain. @@ -18744,7 +18920,7 @@ public partial class ManagedNetworkFabric } } - /// Update a InternalNetworks. + /// update a InternalNetworks. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the L3 Isolation Domain. @@ -18793,7 +18969,7 @@ public partial class ManagedNetworkFabric } } - /// Update a InternalNetworks. + /// update a InternalNetworks. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the L3 Isolation Domain. @@ -18858,17 +19034,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -18881,7 +19058,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -19009,17 +19189,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -19032,7 +19213,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -19160,7 +19344,7 @@ public partial class ManagedNetworkFabric } } - /// Create an Internet Gateway rule resource. + /// create an Internet Gateway rule resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Internet Gateway rule. @@ -19209,7 +19393,7 @@ public partial class ManagedNetworkFabric } } - /// Create an Internet Gateway rule resource. + /// create an Internet Gateway rule resource. /// /// Request payload. /// a delegate that is called when the remote service returns 200 (OK). @@ -19268,7 +19452,7 @@ public partial class ManagedNetworkFabric } } - /// Create an Internet Gateway rule resource. + /// create an Internet Gateway rule resource. /// /// Request payload. /// an instance that will receive events. @@ -19325,7 +19509,7 @@ public partial class ManagedNetworkFabric } } - /// Create an Internet Gateway rule resource. + /// create an Internet Gateway rule resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Internet Gateway rule. @@ -19373,7 +19557,7 @@ public partial class ManagedNetworkFabric } } - /// Create an Internet Gateway rule resource. + /// create an Internet Gateway rule resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Internet Gateway rule. @@ -19419,7 +19603,7 @@ public partial class ManagedNetworkFabric } } - /// Create an Internet Gateway rule resource. + /// create an Internet Gateway rule resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Internet Gateway rule. @@ -19483,16 +19667,17 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -19505,7 +19690,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -19633,16 +19821,17 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -19655,7 +19844,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -19897,17 +20089,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -19920,7 +20113,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -20987,7 +21183,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the Internet Gateway Rule resource. + /// API to update certain properties of the Internet Gateway Rule resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Internet Gateway rule. @@ -21036,7 +21232,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the Internet Gateway Rule resource. + /// API to update certain properties of the Internet Gateway Rule resource. /// /// Internet Gateway Rule properties to update. /// a delegate that is called when the remote service returns 200 (OK). @@ -21095,7 +21291,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the Internet Gateway Rule resource. + /// API to update certain properties of the Internet Gateway Rule resource. /// /// Internet Gateway Rule properties to update. /// an instance that will receive events. @@ -21152,7 +21348,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the Internet Gateway Rule resource. + /// API to update certain properties of the Internet Gateway Rule resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Internet Gateway rule. @@ -21200,7 +21396,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the Internet Gateway Rule resource. + /// API to update certain properties of the Internet Gateway Rule resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Internet Gateway rule. @@ -21246,7 +21442,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the Internet Gateway Rule resource. + /// API to update certain properties of the Internet Gateway Rule resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Internet Gateway rule. @@ -21310,17 +21506,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -21333,7 +21530,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -21461,17 +21661,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -21484,7 +21685,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -21610,7 +21814,7 @@ public partial class ManagedNetworkFabric } } - /// Create a Network Fabric Service Internet Gateway resource instance. + /// create a Network Fabric Service Internet Gateway resource instance. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Internet Gateway. @@ -21659,7 +21863,7 @@ public partial class ManagedNetworkFabric } } - /// Create a Network Fabric Service Internet Gateway resource instance. + /// create a Network Fabric Service Internet Gateway resource instance. /// /// Request payload. /// a delegate that is called when the remote service returns 200 (OK). @@ -21718,7 +21922,7 @@ public partial class ManagedNetworkFabric } } - /// Create a Network Fabric Service Internet Gateway resource instance. + /// create a Network Fabric Service Internet Gateway resource instance. /// /// Request payload. /// an instance that will receive events. @@ -21775,7 +21979,7 @@ public partial class ManagedNetworkFabric } } - /// Create a Network Fabric Service Internet Gateway resource instance. + /// create a Network Fabric Service Internet Gateway resource instance. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Internet Gateway. @@ -21823,7 +22027,7 @@ public partial class ManagedNetworkFabric } } - /// Create a Network Fabric Service Internet Gateway resource instance. + /// create a Network Fabric Service Internet Gateway resource instance. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Internet Gateway. @@ -21869,7 +22073,7 @@ public partial class ManagedNetworkFabric } } - /// Create a Network Fabric Service Internet Gateway resource instance. + /// create a Network Fabric Service Internet Gateway resource instance. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Internet Gateway. @@ -21931,16 +22135,17 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -21953,7 +22158,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -22081,16 +22289,17 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -22103,7 +22312,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -22345,17 +22557,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -22368,7 +22581,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -23754,17 +23970,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -23777,7 +23994,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -23905,17 +24125,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -23928,7 +24149,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -24263,17 +24487,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -24286,7 +24511,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -24416,17 +24644,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -24439,7 +24668,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -24563,7 +24795,7 @@ public partial class ManagedNetworkFabric } /// - /// Create layer 2 network connectivity between compute nodes within a rack and across racks.The configuration is applied + /// create layer 2 network connectivity between compute nodes within a rack and across racks.The configuration is applied /// on the devices only after the isolation domain is enabled. /// /// The ID of the target subscription. The value must be an UUID. @@ -24615,7 +24847,7 @@ public partial class ManagedNetworkFabric } /// - /// Create layer 2 network connectivity between compute nodes within a rack and across racks.The configuration is applied + /// create layer 2 network connectivity between compute nodes within a rack and across racks.The configuration is applied /// on the devices only after the isolation domain is enabled. /// /// @@ -24677,7 +24909,7 @@ public partial class ManagedNetworkFabric } /// - /// Create layer 2 network connectivity between compute nodes within a rack and across racks.The configuration is applied + /// create layer 2 network connectivity between compute nodes within a rack and across racks.The configuration is applied /// on the devices only after the isolation domain is enabled. /// /// @@ -24737,7 +24969,7 @@ public partial class ManagedNetworkFabric } /// - /// Create layer 2 network connectivity between compute nodes within a rack and across racks.The configuration is applied + /// create layer 2 network connectivity between compute nodes within a rack and across racks.The configuration is applied /// on the devices only after the isolation domain is enabled. /// /// The ID of the target subscription. The value must be an UUID. @@ -24788,7 +25020,7 @@ public partial class ManagedNetworkFabric } /// - /// Create layer 2 network connectivity between compute nodes within a rack and across racks.The configuration is applied + /// create layer 2 network connectivity between compute nodes within a rack and across racks.The configuration is applied /// on the devices only after the isolation domain is enabled. /// /// The ID of the target subscription. The value must be an UUID. @@ -24837,7 +25069,7 @@ public partial class ManagedNetworkFabric } /// - /// Create layer 2 network connectivity between compute nodes within a rack and across racks.The configuration is applied + /// create layer 2 network connectivity between compute nodes within a rack and across racks.The configuration is applied /// on the devices only after the isolation domain is enabled. /// /// The ID of the target subscription. The value must be an UUID. @@ -24901,16 +25133,17 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -24923,7 +25156,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -25051,16 +25287,17 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -25073,7 +25310,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -25319,17 +25559,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -25342,7 +25583,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -26409,7 +26653,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the L2 Isolation Domain resource. + /// API to update certain properties of the L2 Isolation Domain resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the L2 Isolation Domain. @@ -26787,17 +27031,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -26810,7 +27055,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -26940,17 +27188,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -26963,7 +27212,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -27089,7 +27341,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the L2 Isolation Domain resource. + /// API to update certain properties of the L2 Isolation Domain resource. /// /// API to update certain properties of the L2 Isolation Domain resource.. /// a delegate that is called when the remote service returns 200 (OK). @@ -27148,7 +27400,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the L2 Isolation Domain resource. + /// API to update certain properties of the L2 Isolation Domain resource. /// /// API to update certain properties of the L2 Isolation Domain resource.. /// an instance that will receive events. @@ -27205,7 +27457,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the L2 Isolation Domain resource. + /// API to update certain properties of the L2 Isolation Domain resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the L2 Isolation Domain. @@ -27253,7 +27505,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the L2 Isolation Domain resource. + /// API to update certain properties of the L2 Isolation Domain resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the L2 Isolation Domain. @@ -27299,7 +27551,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the L2 Isolation Domain resource. + /// API to update certain properties of the L2 Isolation Domain resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the L2 Isolation Domain. @@ -27361,17 +27613,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -27384,7 +27637,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -27512,17 +27768,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -27535,7 +27792,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -27870,17 +28130,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -27893,7 +28154,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -28023,17 +28287,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -28046,7 +28311,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -28378,17 +28646,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -28401,7 +28670,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -28531,17 +28803,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -28554,7 +28827,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -28678,7 +28954,7 @@ public partial class ManagedNetworkFabric } /// - /// Create isolation domain resources for layer 3 connectivity between compute nodes and for communication with external services + /// create isolation domain resources for layer 3 connectivity between compute nodes and for communication with external services /// .This configuration is applied on the devices only after the creation of networks is completed and isolation domain is /// enabled. /// @@ -28731,7 +29007,7 @@ public partial class ManagedNetworkFabric } /// - /// Create isolation domain resources for layer 3 connectivity between compute nodes and for communication with external services + /// create isolation domain resources for layer 3 connectivity between compute nodes and for communication with external services /// .This configuration is applied on the devices only after the creation of networks is completed and isolation domain is /// enabled. /// @@ -28794,7 +29070,7 @@ public partial class ManagedNetworkFabric } /// - /// Create isolation domain resources for layer 3 connectivity between compute nodes and for communication with external services + /// create isolation domain resources for layer 3 connectivity between compute nodes and for communication with external services /// .This configuration is applied on the devices only after the creation of networks is completed and isolation domain is /// enabled. /// @@ -28855,7 +29131,7 @@ public partial class ManagedNetworkFabric } /// - /// Create isolation domain resources for layer 3 connectivity between compute nodes and for communication with external services + /// create isolation domain resources for layer 3 connectivity between compute nodes and for communication with external services /// .This configuration is applied on the devices only after the creation of networks is completed and isolation domain is /// enabled. /// @@ -28907,7 +29183,7 @@ public partial class ManagedNetworkFabric } /// - /// Create isolation domain resources for layer 3 connectivity between compute nodes and for communication with external services + /// create isolation domain resources for layer 3 connectivity between compute nodes and for communication with external services /// .This configuration is applied on the devices only after the creation of networks is completed and isolation domain is /// enabled. /// @@ -28957,7 +29233,7 @@ public partial class ManagedNetworkFabric } /// - /// Create isolation domain resources for layer 3 connectivity between compute nodes and for communication with external services + /// create isolation domain resources for layer 3 connectivity between compute nodes and for communication with external services /// .This configuration is applied on the devices only after the creation of networks is completed and isolation domain is /// enabled. /// @@ -29022,16 +29298,17 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -29044,7 +29321,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -29172,16 +29452,17 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -29194,7 +29475,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -29440,17 +29724,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -29463,7 +29748,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -30530,7 +30818,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the L3 Isolation Domain resource. + /// API to update certain properties of the L3 Isolation Domain resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the L3 Isolation Domain. @@ -30908,17 +31196,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -30931,7 +31220,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -31061,17 +31353,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -31084,7 +31377,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -31210,7 +31506,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the L3 Isolation Domain resource. + /// API to update certain properties of the L3 Isolation Domain resource. /// /// API to update certain properties of the L3 Isolation Domain resource. /// a delegate that is called when the remote service returns 200 (OK). @@ -31269,7 +31565,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the L3 Isolation Domain resource. + /// API to update certain properties of the L3 Isolation Domain resource. /// /// API to update certain properties of the L3 Isolation Domain resource. /// an instance that will receive events. @@ -31326,7 +31622,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the L3 Isolation Domain resource. + /// API to update certain properties of the L3 Isolation Domain resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the L3 Isolation Domain. @@ -31374,7 +31670,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the L3 Isolation Domain resource. + /// API to update certain properties of the L3 Isolation Domain resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the L3 Isolation Domain. @@ -31420,7 +31716,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the L3 Isolation Domain resource. + /// API to update certain properties of the L3 Isolation Domain resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the L3 Isolation Domain. @@ -31482,17 +31778,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -31505,7 +31802,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -31633,17 +31933,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -31656,7 +31957,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -31991,17 +32295,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -32014,7 +32319,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -32144,17 +32452,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -32167,7 +32476,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -32611,16 +32923,17 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -32633,7 +32946,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -32761,16 +33077,17 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -32783,7 +33100,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -33025,17 +33345,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -33048,7 +33369,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -34111,7 +34435,7 @@ public partial class ManagedNetworkFabric } } - /// Update the Neighbor Group. + /// update the Neighbor Group. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Neighbor Group. @@ -34160,7 +34484,7 @@ public partial class ManagedNetworkFabric } } - /// Update the Neighbor Group. + /// update the Neighbor Group. /// /// Neighbor Group properties to update. Only annotations are supported. /// a delegate that is called when the remote service returns 200 (OK). @@ -34219,7 +34543,7 @@ public partial class ManagedNetworkFabric } } - /// Update the Neighbor Group. + /// update the Neighbor Group. /// /// Neighbor Group properties to update. Only annotations are supported. /// an instance that will receive events. @@ -34276,7 +34600,7 @@ public partial class ManagedNetworkFabric } } - /// Update the Neighbor Group. + /// update the Neighbor Group. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Neighbor Group. @@ -34324,7 +34648,7 @@ public partial class ManagedNetworkFabric } } - /// Update the Neighbor Group. + /// update the Neighbor Group. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Neighbor Group. @@ -34370,7 +34694,7 @@ public partial class ManagedNetworkFabric } } - /// Update the Neighbor Group. + /// update the Neighbor Group. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Neighbor Group. @@ -34432,17 +34756,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -34455,7 +34780,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -34583,17 +34911,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -34606,7 +34935,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -35338,7 +35670,7 @@ public partial class ManagedNetworkFabric } } - /// Create a Network Device resource + /// create a Network Device resource /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Device. @@ -35387,7 +35719,7 @@ public partial class ManagedNetworkFabric } } - /// Create a Network Device resource + /// create a Network Device resource /// /// Request payload. /// a delegate that is called when the remote service returns 200 (OK). @@ -35446,7 +35778,7 @@ public partial class ManagedNetworkFabric } } - /// Create a Network Device resource + /// create a Network Device resource /// /// Request payload. /// an instance that will receive events. @@ -35503,7 +35835,7 @@ public partial class ManagedNetworkFabric } } - /// Create a Network Device resource + /// create a Network Device resource /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Device. @@ -35551,7 +35883,7 @@ public partial class ManagedNetworkFabric } } - /// Create a Network Device resource + /// create a Network Device resource /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Device. @@ -35597,7 +35929,7 @@ public partial class ManagedNetworkFabric } } - /// Create a Network Device resource + /// create a Network Device resource /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Device. @@ -35659,16 +35991,17 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -35681,7 +36014,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -35809,16 +36145,17 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -35831,7 +36168,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -36073,17 +36413,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -36096,7 +36437,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -37486,17 +37830,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -37509,7 +37854,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -37637,17 +37985,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -37660,7 +38009,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -37995,17 +38347,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -38018,7 +38371,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -38146,17 +38502,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -38169,7 +38526,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -38292,7 +38652,7 @@ public partial class ManagedNetworkFabric } } - /// Update certain properties of the Network Device resource. + /// update certain properties of the Network Device resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Device. @@ -38341,7 +38701,7 @@ public partial class ManagedNetworkFabric } } - /// Update the Administrative state of the Network Device. + /// update the Administrative state of the Network Device. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Device. @@ -38391,7 +38751,7 @@ public partial class ManagedNetworkFabric } } - /// Update the Administrative state of the Network Device. + /// update the Administrative state of the Network Device. /// /// Request payload. /// a delegate that is called when the remote service returns 200 (OK). @@ -38451,7 +38811,7 @@ public partial class ManagedNetworkFabric } } - /// Update the Administrative state of the Network Device. + /// update the Administrative state of the Network Device. /// /// Request payload. /// an instance that will receive events. @@ -38509,7 +38869,7 @@ public partial class ManagedNetworkFabric } } - /// Update the Administrative state of the Network Device. + /// update the Administrative state of the Network Device. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Device. @@ -38558,7 +38918,7 @@ public partial class ManagedNetworkFabric } } - /// Update the Administrative state of the Network Device. + /// update the Administrative state of the Network Device. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Device. @@ -38605,7 +38965,7 @@ public partial class ManagedNetworkFabric } } - /// Update the Administrative state of the Network Device. + /// update the Administrative state of the Network Device. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Device. @@ -38670,17 +39030,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -38693,7 +39054,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -38823,17 +39187,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -38846,7 +39211,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -38972,7 +39340,7 @@ public partial class ManagedNetworkFabric } } - /// Update certain properties of the Network Device resource. + /// update certain properties of the Network Device resource. /// /// Network Device properties to update. /// a delegate that is called when the remote service returns 200 (OK). @@ -39031,7 +39399,7 @@ public partial class ManagedNetworkFabric } } - /// Update certain properties of the Network Device resource. + /// update certain properties of the Network Device resource. /// /// Network Device properties to update. /// an instance that will receive events. @@ -39088,7 +39456,7 @@ public partial class ManagedNetworkFabric } } - /// Update certain properties of the Network Device resource. + /// update certain properties of the Network Device resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Device. @@ -39136,7 +39504,7 @@ public partial class ManagedNetworkFabric } } - /// Update certain properties of the Network Device resource. + /// update certain properties of the Network Device resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Device. @@ -39182,7 +39550,7 @@ public partial class ManagedNetworkFabric } } - /// Update certain properties of the Network Device resource. + /// update certain properties of the Network Device resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Device. @@ -39244,17 +39612,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -39267,7 +39636,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -39395,17 +39767,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -39418,7 +39791,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -39871,17 +40247,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -39894,7 +40271,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -40022,17 +40402,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -40045,7 +40426,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -40171,7 +40555,7 @@ public partial class ManagedNetworkFabric } } - /// Create a Network Fabric Controller. + /// create a Network Fabric Controller. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Fabric Controller. @@ -40220,7 +40604,7 @@ public partial class ManagedNetworkFabric } } - /// Create a Network Fabric Controller. + /// create a Network Fabric Controller. /// /// Request payload. /// a delegate that is called when the remote service returns 200 (OK). @@ -40279,7 +40663,7 @@ public partial class ManagedNetworkFabric } } - /// Create a Network Fabric Controller. + /// create a Network Fabric Controller. /// /// Request payload. /// an instance that will receive events. @@ -40336,7 +40720,7 @@ public partial class ManagedNetworkFabric } } - /// Create a Network Fabric Controller. + /// create a Network Fabric Controller. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Fabric Controller. @@ -40384,7 +40768,7 @@ public partial class ManagedNetworkFabric } } - /// Create a Network Fabric Controller. + /// create a Network Fabric Controller. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Fabric Controller. @@ -40430,7 +40814,7 @@ public partial class ManagedNetworkFabric } } - /// Create a Network Fabric Controller. + /// create a Network Fabric Controller. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Fabric Controller. @@ -40494,16 +40878,17 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -40516,7 +40901,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -40644,16 +41032,17 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -40666,7 +41055,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -40908,17 +41300,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -40931,7 +41324,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -42000,7 +42396,7 @@ public partial class ManagedNetworkFabric } } - /// Update are currently not supported for the Network Fabric Controller resource. + /// update are currently not supported for the Network Fabric Controller resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Fabric Controller. @@ -42049,7 +42445,7 @@ public partial class ManagedNetworkFabric } } - /// Update are currently not supported for the Network Fabric Controller resource. + /// update are currently not supported for the Network Fabric Controller resource. /// /// Network Fabric Controller properties to update. /// a delegate that is called when the remote service returns 200 (OK). @@ -42108,7 +42504,7 @@ public partial class ManagedNetworkFabric } } - /// Update are currently not supported for the Network Fabric Controller resource. + /// update are currently not supported for the Network Fabric Controller resource. /// /// Network Fabric Controller properties to update. /// an instance that will receive events. @@ -42165,7 +42561,7 @@ public partial class ManagedNetworkFabric } } - /// Update are currently not supported for the Network Fabric Controller resource. + /// update are currently not supported for the Network Fabric Controller resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Fabric Controller. @@ -42213,7 +42609,7 @@ public partial class ManagedNetworkFabric } } - /// Update are currently not supported for the Network Fabric Controller resource. + /// update are currently not supported for the Network Fabric Controller resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Fabric Controller. @@ -42259,7 +42655,7 @@ public partial class ManagedNetworkFabric } } - /// Update are currently not supported for the Network Fabric Controller resource. + /// update are currently not supported for the Network Fabric Controller resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Fabric Controller. @@ -42323,17 +42719,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -42346,7 +42743,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -42474,17 +42874,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -42497,7 +42898,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -43230,7 +43634,7 @@ public partial class ManagedNetworkFabric } /// - /// Atomic Commit of the given Network Fabric instance. Sync Commit of NFA resources at Fabric level. + /// Atomic commit of the given Network Fabric instance. Sync commit of NFA resources at Fabric level. /// /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. @@ -43276,7 +43680,7 @@ public partial class ManagedNetworkFabric } /// - /// Atomic Commit of the given Network Fabric instance. Sync Commit of NFA resources at Fabric level. + /// Atomic commit of the given Network Fabric instance. Sync commit of NFA resources at Fabric level. /// /// /// a delegate that is called when the remote service returns 200 (OK). @@ -43332,7 +43736,7 @@ public partial class ManagedNetworkFabric } /// - /// Atomic Commit of the given Network Fabric instance. Sync Commit of NFA resources at Fabric level. + /// Atomic commit of the given Network Fabric instance. Sync commit of NFA resources at Fabric level. /// /// /// an instance that will receive events. @@ -43386,7 +43790,7 @@ public partial class ManagedNetworkFabric } /// - /// Atomic Commit of the given Network Fabric instance. Sync Commit of NFA resources at Fabric level. + /// Atomic commit of the given Network Fabric instance. Sync commit of NFA resources at Fabric level. /// /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. @@ -43446,17 +43850,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -43469,7 +43874,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -43597,17 +44005,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -43620,7 +44029,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -43743,7 +44155,7 @@ public partial class ManagedNetworkFabric } } - /// Create Network Fabric resource. + /// create Network Fabric resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Fabric. @@ -43792,7 +44204,7 @@ public partial class ManagedNetworkFabric } } - /// Create Network Fabric resource. + /// create Network Fabric resource. /// /// Request payload. /// a delegate that is called when the remote service returns 200 (OK). @@ -43851,7 +44263,7 @@ public partial class ManagedNetworkFabric } } - /// Create Network Fabric resource. + /// create Network Fabric resource. /// /// Request payload. /// an instance that will receive events. @@ -43908,7 +44320,7 @@ public partial class ManagedNetworkFabric } } - /// Create Network Fabric resource. + /// create Network Fabric resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Fabric. @@ -43956,7 +44368,7 @@ public partial class ManagedNetworkFabric } } - /// Create Network Fabric resource. + /// create Network Fabric resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Fabric. @@ -44002,7 +44414,7 @@ public partial class ManagedNetworkFabric } } - /// Create Network Fabric resource. + /// create Network Fabric resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Fabric. @@ -44064,16 +44476,17 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -44086,7 +44499,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -44214,16 +44630,17 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -44236,7 +44653,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -44478,17 +44898,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -44501,7 +44922,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -44839,17 +45263,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -44862,7 +45287,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -44990,17 +45418,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -45013,7 +45442,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -45388,17 +45820,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -45411,7 +45844,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -45539,17 +45975,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -45562,7 +45999,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -46783,17 +47223,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -46806,7 +47247,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -46934,17 +47378,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -46957,7 +47402,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -47297,17 +47745,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -47320,7 +47769,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -47448,17 +47900,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -47471,7 +47924,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -47594,7 +48050,7 @@ public partial class ManagedNetworkFabric } } - /// Update certain properties of the Network Fabric resource. + /// update certain properties of the Network Fabric resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Fabric. @@ -47644,7 +48100,7 @@ public partial class ManagedNetworkFabric } /// - /// Update the Infra Management BFD Configuration of the underlying resources in the given Network Fabric instance. + /// update the Infra Management BFD Configuration of the underlying resources in the given Network Fabric instance. /// /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. @@ -47696,7 +48152,7 @@ public partial class ManagedNetworkFabric } /// - /// Update the Infra Management BFD Configuration of the underlying resources in the given Network Fabric instance. + /// update the Infra Management BFD Configuration of the underlying resources in the given Network Fabric instance. /// /// /// Request payload. @@ -47758,7 +48214,7 @@ public partial class ManagedNetworkFabric } /// - /// Update the Infra Management BFD Configuration of the underlying resources in the given Network Fabric instance. + /// update the Infra Management BFD Configuration of the underlying resources in the given Network Fabric instance. /// /// /// Request payload. @@ -47818,7 +48274,7 @@ public partial class ManagedNetworkFabric } /// - /// Update the Infra Management BFD Configuration of the underlying resources in the given Network Fabric instance. + /// update the Infra Management BFD Configuration of the underlying resources in the given Network Fabric instance. /// /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. @@ -47869,7 +48325,7 @@ public partial class ManagedNetworkFabric } /// - /// Update the Infra Management BFD Configuration of the underlying resources in the given Network Fabric instance. + /// update the Infra Management BFD Configuration of the underlying resources in the given Network Fabric instance. /// /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. @@ -47918,7 +48374,7 @@ public partial class ManagedNetworkFabric } /// - /// Update the Infra Management BFD Configuration of the underlying resources in the given Network Fabric instance. + /// update the Infra Management BFD Configuration of the underlying resources in the given Network Fabric instance. /// /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. @@ -47984,17 +48440,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -48007,7 +48464,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -48137,17 +48597,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -48160,7 +48621,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -48286,7 +48750,7 @@ public partial class ManagedNetworkFabric } } - /// Update certain properties of the Network Fabric resource. + /// update certain properties of the Network Fabric resource. /// /// Network Fabric properties to update. /// a delegate that is called when the remote service returns 200 (OK). @@ -48345,7 +48809,7 @@ public partial class ManagedNetworkFabric } } - /// Update certain properties of the Network Fabric resource. + /// update certain properties of the Network Fabric resource. /// /// Network Fabric properties to update. /// an instance that will receive events. @@ -48402,7 +48866,7 @@ public partial class ManagedNetworkFabric } } - /// Update certain properties of the Network Fabric resource. + /// update certain properties of the Network Fabric resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Fabric. @@ -48450,7 +48914,7 @@ public partial class ManagedNetworkFabric } } - /// Update certain properties of the Network Fabric resource. + /// update certain properties of the Network Fabric resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Fabric. @@ -48496,7 +48960,7 @@ public partial class ManagedNetworkFabric } } - /// Update certain properties of the Network Fabric resource. + /// update certain properties of the Network Fabric resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Fabric. @@ -48558,17 +49022,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -48581,7 +49046,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -48693,7 +49161,7 @@ public partial class ManagedNetworkFabric } /// - /// Update the Workload Management BFD Configuration of the underlying resources in the given Network Fabric instance. + /// update the Workload Management BFD Configuration of the underlying resources in the given Network Fabric instance. /// /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. @@ -48745,7 +49213,7 @@ public partial class ManagedNetworkFabric } /// - /// Update the Workload Management BFD Configuration of the underlying resources in the given Network Fabric instance. + /// update the Workload Management BFD Configuration of the underlying resources in the given Network Fabric instance. /// /// /// Request payload. @@ -48807,7 +49275,7 @@ public partial class ManagedNetworkFabric } /// - /// Update the Workload Management BFD Configuration of the underlying resources in the given Network Fabric instance. + /// update the Workload Management BFD Configuration of the underlying resources in the given Network Fabric instance. /// /// /// Request payload. @@ -48867,7 +49335,7 @@ public partial class ManagedNetworkFabric } /// - /// Update the Workload Management BFD Configuration of the underlying resources in the given Network Fabric instance. + /// update the Workload Management BFD Configuration of the underlying resources in the given Network Fabric instance. /// /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. @@ -48918,7 +49386,7 @@ public partial class ManagedNetworkFabric } /// - /// Update the Workload Management BFD Configuration of the underlying resources in the given Network Fabric instance. + /// update the Workload Management BFD Configuration of the underlying resources in the given Network Fabric instance. /// /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. @@ -48967,7 +49435,7 @@ public partial class ManagedNetworkFabric } /// - /// Update the Workload Management BFD Configuration of the underlying resources in the given Network Fabric instance. + /// update the Workload Management BFD Configuration of the underlying resources in the given Network Fabric instance. /// /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. @@ -49033,17 +49501,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -49056,7 +49525,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -49186,17 +49658,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -49209,7 +49682,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -49352,17 +49828,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -49375,7 +49852,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -49840,17 +50320,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -49863,7 +50344,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -49991,17 +50475,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -50014,7 +50499,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -50481,17 +50969,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -50504,7 +50993,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -50634,17 +51126,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -50657,7 +51150,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -50783,7 +51279,7 @@ public partial class ManagedNetworkFabric } } - /// Create a Network Interface resource. + /// create a Network Interface resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Device. @@ -50835,7 +51331,7 @@ public partial class ManagedNetworkFabric } } - /// Create a Network Interface resource. + /// create a Network Interface resource. /// /// Request payload. /// a delegate that is called when the remote service returns 200 (OK). @@ -50897,7 +51393,7 @@ public partial class ManagedNetworkFabric } } - /// Create a Network Interface resource. + /// create a Network Interface resource. /// /// Request payload. /// an instance that will receive events. @@ -50957,7 +51453,7 @@ public partial class ManagedNetworkFabric } } - /// Create a Network Interface resource. + /// create a Network Interface resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Device. @@ -51008,7 +51504,7 @@ public partial class ManagedNetworkFabric } } - /// Create a Network Interface resource. + /// create a Network Interface resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Device. @@ -51057,7 +51553,7 @@ public partial class ManagedNetworkFabric } } - /// Create a Network Interface resource. + /// create a Network Interface resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Device. @@ -51122,16 +51618,17 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -51144,7 +51641,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -51272,16 +51772,17 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -51294,7 +51795,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -51544,17 +52048,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -51567,7 +52072,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -52364,7 +52872,7 @@ public partial class ManagedNetworkFabric } } - /// Update certain properties of the Network Interface resource. + /// update certain properties of the Network Interface resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Device. @@ -52416,7 +52924,7 @@ public partial class ManagedNetworkFabric } } - /// Update the admin state of the Network Interface. + /// update the admin state of the Network Interface. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Device. @@ -52469,7 +52977,7 @@ public partial class ManagedNetworkFabric } } - /// Update the admin state of the Network Interface. + /// update the admin state of the Network Interface. /// /// Request payload. /// a delegate that is called when the remote service returns 200 (OK). @@ -52532,7 +53040,7 @@ public partial class ManagedNetworkFabric } } - /// Update the admin state of the Network Interface. + /// update the admin state of the Network Interface. /// /// Request payload. /// an instance that will receive events. @@ -52593,7 +53101,7 @@ public partial class ManagedNetworkFabric } } - /// Update the admin state of the Network Interface. + /// update the admin state of the Network Interface. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Device. @@ -52645,7 +53153,7 @@ public partial class ManagedNetworkFabric } } - /// Update the admin state of the Network Interface. + /// update the admin state of the Network Interface. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Device. @@ -52695,7 +53203,7 @@ public partial class ManagedNetworkFabric } } - /// Update the admin state of the Network Interface. + /// update the admin state of the Network Interface. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Device. @@ -52763,17 +53271,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -52786,7 +53295,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -52916,17 +53428,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -52939,7 +53452,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -53067,7 +53583,7 @@ public partial class ManagedNetworkFabric } } - /// Update certain properties of the Network Interface resource. + /// update certain properties of the Network Interface resource. /// /// NetworkInterface properties to update. Only tags are supported. /// a delegate that is called when the remote service returns 200 (OK). @@ -53129,7 +53645,7 @@ public partial class ManagedNetworkFabric } } - /// Update certain properties of the Network Interface resource. + /// update certain properties of the Network Interface resource. /// /// NetworkInterface properties to update. Only tags are supported. /// an instance that will receive events. @@ -53189,7 +53705,7 @@ public partial class ManagedNetworkFabric } } - /// Update certain properties of the Network Interface resource. + /// update certain properties of the Network Interface resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Device. @@ -53240,7 +53756,7 @@ public partial class ManagedNetworkFabric } } - /// Update certain properties of the Network Interface resource. + /// update certain properties of the Network Interface resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Device. @@ -53289,7 +53805,7 @@ public partial class ManagedNetworkFabric } } - /// Update certain properties of the Network Interface resource. + /// update certain properties of the Network Interface resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Device. @@ -53354,17 +53870,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -53377,7 +53894,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -53505,17 +54025,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -53528,7 +54049,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -53656,7 +54180,7 @@ public partial class ManagedNetworkFabric } } - /// Create a Network Packet Broker. + /// create a Network Packet Broker. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Packet Broker. @@ -53705,7 +54229,7 @@ public partial class ManagedNetworkFabric } } - /// Create a Network Packet Broker. + /// create a Network Packet Broker. /// /// Request payload. /// a delegate that is called when the remote service returns 200 (OK). @@ -53764,7 +54288,7 @@ public partial class ManagedNetworkFabric } } - /// Create a Network Packet Broker. + /// create a Network Packet Broker. /// /// Request payload. /// an instance that will receive events. @@ -53821,7 +54345,7 @@ public partial class ManagedNetworkFabric } } - /// Create a Network Packet Broker. + /// create a Network Packet Broker. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Packet Broker. @@ -53869,7 +54393,7 @@ public partial class ManagedNetworkFabric } } - /// Create a Network Packet Broker. + /// create a Network Packet Broker. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Packet Broker. @@ -53915,7 +54439,7 @@ public partial class ManagedNetworkFabric } } - /// Create a Network Packet Broker. + /// create a Network Packet Broker. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Packet Broker. @@ -53979,16 +54503,17 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -54001,7 +54526,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -54129,16 +54657,17 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -54151,7 +54680,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -54393,17 +54925,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -54416,7 +54949,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -55483,7 +56019,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the Network Packet Broker resource. + /// API to update certain properties of the Network Packet Broker resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Packet Broker. @@ -55532,7 +56068,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the Network Packet Broker resource. + /// API to update certain properties of the Network Packet Broker resource. /// /// Network Packet Broker properties to update. /// a delegate that is called when the remote service returns 200 (OK). @@ -55591,7 +56127,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the Network Packet Broker resource. + /// API to update certain properties of the Network Packet Broker resource. /// /// Network Packet Broker properties to update. /// an instance that will receive events. @@ -55648,7 +56184,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the Network Packet Broker resource. + /// API to update certain properties of the Network Packet Broker resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Packet Broker. @@ -55696,7 +56232,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the Network Packet Broker resource. + /// API to update certain properties of the Network Packet Broker resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Packet Broker. @@ -55742,7 +56278,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the Network Packet Broker resource. + /// API to update certain properties of the Network Packet Broker resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Packet Broker. @@ -55806,17 +56342,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -55829,7 +56366,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -55957,17 +56497,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -55980,7 +56521,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -56106,7 +56650,7 @@ public partial class ManagedNetworkFabric } } - /// Create Network Rack resource. + /// create Network Rack resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Rack. @@ -56155,7 +56699,7 @@ public partial class ManagedNetworkFabric } } - /// Create Network Rack resource. + /// create Network Rack resource. /// /// Request payload. /// a delegate that is called when the remote service returns 200 (OK). @@ -56214,7 +56758,7 @@ public partial class ManagedNetworkFabric } } - /// Create Network Rack resource. + /// create Network Rack resource. /// /// Request payload. /// an instance that will receive events. @@ -56271,7 +56815,7 @@ public partial class ManagedNetworkFabric } } - /// Create Network Rack resource. + /// create Network Rack resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Rack. @@ -56319,7 +56863,7 @@ public partial class ManagedNetworkFabric } } - /// Create Network Rack resource. + /// create Network Rack resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Rack. @@ -56365,7 +56909,7 @@ public partial class ManagedNetworkFabric } } - /// Create Network Rack resource. + /// create Network Rack resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Rack. @@ -56427,16 +56971,17 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -56449,7 +56994,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -56577,16 +57125,17 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -56599,7 +57148,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -56841,17 +57393,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -56864,7 +57417,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -57927,7 +58483,7 @@ public partial class ManagedNetworkFabric } } - /// Update certain properties of the Network Rack resource. + /// update certain properties of the Network Rack resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Rack. @@ -57976,7 +58532,7 @@ public partial class ManagedNetworkFabric } } - /// Update certain properties of the Network Rack resource. + /// update certain properties of the Network Rack resource. /// /// Network Rack properties to update. /// a delegate that is called when the remote service returns 200 (OK). @@ -58035,7 +58591,7 @@ public partial class ManagedNetworkFabric } } - /// Update certain properties of the Network Rack resource. + /// update certain properties of the Network Rack resource. /// /// Network Rack properties to update. /// an instance that will receive events. @@ -58092,7 +58648,7 @@ public partial class ManagedNetworkFabric } } - /// Update certain properties of the Network Rack resource. + /// update certain properties of the Network Rack resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Rack. @@ -58140,7 +58696,7 @@ public partial class ManagedNetworkFabric } } - /// Update certain properties of the Network Rack resource. + /// update certain properties of the Network Rack resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Rack. @@ -58186,7 +58742,7 @@ public partial class ManagedNetworkFabric } } - /// Update certain properties of the Network Rack resource. + /// update certain properties of the Network Rack resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Rack. @@ -58248,17 +58804,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -58271,7 +58828,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -58399,17 +58959,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -58422,7 +58983,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -58548,7 +59112,7 @@ public partial class ManagedNetworkFabric } } - /// Create Network Tap Rule resource. + /// create Network Tap Rule resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Tap Rule. @@ -58597,7 +59161,7 @@ public partial class ManagedNetworkFabric } } - /// Create Network Tap Rule resource. + /// create Network Tap Rule resource. /// /// Request payload. /// a delegate that is called when the remote service returns 200 (OK). @@ -58656,7 +59220,7 @@ public partial class ManagedNetworkFabric } } - /// Create Network Tap Rule resource. + /// create Network Tap Rule resource. /// /// Request payload. /// an instance that will receive events. @@ -58713,7 +59277,7 @@ public partial class ManagedNetworkFabric } } - /// Create Network Tap Rule resource. + /// create Network Tap Rule resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Tap Rule. @@ -58761,7 +59325,7 @@ public partial class ManagedNetworkFabric } } - /// Create Network Tap Rule resource. + /// create Network Tap Rule resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Tap Rule. @@ -58807,7 +59371,7 @@ public partial class ManagedNetworkFabric } } - /// Create Network Tap Rule resource. + /// create Network Tap Rule resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Tap Rule. @@ -58869,16 +59433,17 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -58891,7 +59456,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -59019,16 +59587,17 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -59041,7 +59610,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -59283,17 +59855,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -59306,7 +59879,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -60576,17 +61152,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -60599,7 +61176,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -60727,17 +61307,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -60750,7 +61331,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -60873,7 +61457,7 @@ public partial class ManagedNetworkFabric } } - /// Update certain properties of the Network Tap Rule resource. + /// update certain properties of the Network Tap Rule resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Tap Rule. @@ -61251,17 +61835,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -61274,7 +61859,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -61404,17 +61992,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -61427,7 +62016,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -61553,7 +62145,7 @@ public partial class ManagedNetworkFabric } } - /// Update certain properties of the Network Tap Rule resource. + /// update certain properties of the Network Tap Rule resource. /// /// Network Tap Rule properties to update. /// a delegate that is called when the remote service returns 200 (OK). @@ -61612,7 +62204,7 @@ public partial class ManagedNetworkFabric } } - /// Update certain properties of the Network Tap Rule resource. + /// update certain properties of the Network Tap Rule resource. /// /// Network Tap Rule properties to update. /// an instance that will receive events. @@ -61669,7 +62261,7 @@ public partial class ManagedNetworkFabric } } - /// Update certain properties of the Network Tap Rule resource. + /// update certain properties of the Network Tap Rule resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Tap Rule. @@ -61717,7 +62309,7 @@ public partial class ManagedNetworkFabric } } - /// Update certain properties of the Network Tap Rule resource. + /// update certain properties of the Network Tap Rule resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Tap Rule. @@ -61763,7 +62355,7 @@ public partial class ManagedNetworkFabric } } - /// Update certain properties of the Network Tap Rule resource. + /// update certain properties of the Network Tap Rule resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Tap Rule. @@ -61825,17 +62417,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -61848,7 +62441,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -61976,17 +62572,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -61999,7 +62596,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -62334,17 +62934,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -62357,7 +62958,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -62487,17 +63091,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -62510,7 +63115,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -62633,7 +63241,7 @@ public partial class ManagedNetworkFabric } } - /// Create a Network Tap. + /// create a Network Tap. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Tap. @@ -62682,7 +63290,7 @@ public partial class ManagedNetworkFabric } } - /// Create a Network Tap. + /// create a Network Tap. /// /// Request payload. /// a delegate that is called when the remote service returns 200 (OK). @@ -62741,7 +63349,7 @@ public partial class ManagedNetworkFabric } } - /// Create a Network Tap. + /// create a Network Tap. /// /// Request payload. /// an instance that will receive events. @@ -62798,7 +63406,7 @@ public partial class ManagedNetworkFabric } } - /// Create a Network Tap. + /// create a Network Tap. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Tap. @@ -62846,7 +63454,7 @@ public partial class ManagedNetworkFabric } } - /// Create a Network Tap. + /// create a Network Tap. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Tap. @@ -62892,7 +63500,7 @@ public partial class ManagedNetworkFabric } } - /// Create a Network Tap. + /// create a Network Tap. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Tap. @@ -62954,16 +63562,17 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -62976,7 +63585,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -63104,16 +63716,17 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -63126,7 +63739,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -63368,17 +63984,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -63391,7 +64008,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -64661,17 +65281,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -64684,7 +65305,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -64812,17 +65436,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -64835,7 +65460,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -64958,7 +65586,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the Network Tap resource. + /// API to update certain properties of the Network Tap resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Tap. @@ -65336,17 +65964,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -65359,7 +65988,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -65489,17 +66121,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -65512,7 +66145,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -65638,7 +66274,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the Network Tap resource. + /// API to update certain properties of the Network Tap resource. /// /// Network Tap properties to update. /// a delegate that is called when the remote service returns 200 (OK). @@ -65697,7 +66333,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the Network Tap resource. + /// API to update certain properties of the Network Tap resource. /// /// Network Tap properties to update. /// an instance that will receive events. @@ -65754,7 +66390,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the Network Tap resource. + /// API to update certain properties of the Network Tap resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Tap. @@ -65802,7 +66438,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the Network Tap resource. + /// API to update certain properties of the Network Tap resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Tap. @@ -65848,7 +66484,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the Network Tap resource. + /// API to update certain properties of the Network Tap resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Tap. @@ -65910,17 +66546,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -65933,7 +66570,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -66061,17 +66701,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -66084,7 +66725,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -66551,16 +67195,17 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -66573,7 +67218,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -66703,16 +67351,17 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -66725,7 +67374,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -66977,17 +67629,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -67000,7 +67653,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -67799,7 +68455,7 @@ public partial class ManagedNetworkFabric } } - /// Update certain properties of the Network To NetworkInterconnects resource. + /// update certain properties of the Network To NetworkInterconnects resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Fabric. @@ -67851,7 +68507,7 @@ public partial class ManagedNetworkFabric } } - /// Update the Admin State. + /// update the Admin State. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Fabric. @@ -67904,7 +68560,7 @@ public partial class ManagedNetworkFabric } } - /// Update the Admin State. + /// update the Admin State. /// /// Request payload. /// a delegate that is called when the remote service returns 200 (OK). @@ -67967,7 +68623,7 @@ public partial class ManagedNetworkFabric } } - /// Update the Admin State. + /// update the Admin State. /// /// Request payload. /// an instance that will receive events. @@ -68028,7 +68684,7 @@ public partial class ManagedNetworkFabric } } - /// Update the Admin State. + /// update the Admin State. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Fabric. @@ -68080,7 +68736,7 @@ public partial class ManagedNetworkFabric } } - /// Update the Admin State. + /// update the Admin State. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Fabric. @@ -68130,7 +68786,7 @@ public partial class ManagedNetworkFabric } } - /// Update the Admin State. + /// update the Admin State. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Fabric. @@ -68198,17 +68854,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -68221,7 +68878,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -68351,17 +69011,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -68374,7 +69035,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -68502,7 +69166,7 @@ public partial class ManagedNetworkFabric } } - /// Update the NPB Static Route BFD Administrative State. + /// update the NPB Static Route BFD Administrative State. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Fabric. @@ -68555,7 +69219,7 @@ public partial class ManagedNetworkFabric } } - /// Update the NPB Static Route BFD Administrative State. + /// update the NPB Static Route BFD Administrative State. /// /// Request payload. /// a delegate that is called when the remote service returns 200 (OK). @@ -68618,7 +69282,7 @@ public partial class ManagedNetworkFabric } } - /// Update the NPB Static Route BFD Administrative State. + /// update the NPB Static Route BFD Administrative State. /// /// Request payload. /// an instance that will receive events. @@ -68679,7 +69343,7 @@ public partial class ManagedNetworkFabric } } - /// Update the NPB Static Route BFD Administrative State. + /// update the NPB Static Route BFD Administrative State. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Fabric. @@ -68732,7 +69396,7 @@ public partial class ManagedNetworkFabric } } - /// Update the NPB Static Route BFD Administrative State. + /// update the NPB Static Route BFD Administrative State. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Fabric. @@ -68783,7 +69447,7 @@ public partial class ManagedNetworkFabric } } - /// Update the NPB Static Route BFD Administrative State. + /// update the NPB Static Route BFD Administrative State. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Fabric. @@ -68852,17 +69516,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -68875,7 +69540,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -69005,17 +69673,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -69028,7 +69697,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -69156,7 +69828,7 @@ public partial class ManagedNetworkFabric } } - /// Update certain properties of the Network To NetworkInterconnects resource. + /// update certain properties of the Network To NetworkInterconnects resource. /// /// Network to Network Interconnect properties to update. /// a delegate that is called when the remote service returns 200 (OK). @@ -69218,7 +69890,7 @@ public partial class ManagedNetworkFabric } } - /// Update certain properties of the Network To NetworkInterconnects resource. + /// update certain properties of the Network To NetworkInterconnects resource. /// /// Network to Network Interconnect properties to update. /// an instance that will receive events. @@ -69278,7 +69950,7 @@ public partial class ManagedNetworkFabric } } - /// Update certain properties of the Network To NetworkInterconnects resource. + /// update certain properties of the Network To NetworkInterconnects resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Fabric. @@ -69329,7 +70001,7 @@ public partial class ManagedNetworkFabric } } - /// Update certain properties of the Network To NetworkInterconnects resource. + /// update certain properties of the Network To NetworkInterconnects resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Fabric. @@ -69378,7 +70050,7 @@ public partial class ManagedNetworkFabric } } - /// Update certain properties of the Network To NetworkInterconnects resource. + /// update certain properties of the Network To NetworkInterconnects resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Network Fabric. @@ -69445,17 +70117,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -69468,7 +70141,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -69598,17 +70274,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -69621,7 +70298,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -70240,17 +70920,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -70263,7 +70944,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -70391,17 +71075,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -70414,7 +71099,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -70858,16 +71546,17 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -70880,7 +71569,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -71008,16 +71700,17 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -71030,7 +71723,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -71272,17 +71968,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -71295,7 +71992,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -72358,7 +73058,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the Route Policy resource. + /// API to update certain properties of the Route Policy resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Route Policy. @@ -72736,17 +73436,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -72759,7 +73460,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -72889,17 +73593,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -72912,7 +73617,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -73038,7 +73746,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the Route Policy resource. + /// API to update certain properties of the Route Policy resource. /// /// Route Policy properties to update. /// a delegate that is called when the remote service returns 200 (OK). @@ -73097,7 +73805,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the Route Policy resource. + /// API to update certain properties of the Route Policy resource. /// /// Route Policy properties to update. /// an instance that will receive events. @@ -73154,7 +73862,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the Route Policy resource. + /// API to update certain properties of the Route Policy resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Route Policy. @@ -73202,7 +73910,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the Route Policy resource. + /// API to update certain properties of the Route Policy resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Route Policy. @@ -73248,7 +73956,7 @@ public partial class ManagedNetworkFabric } } - /// API to Update certain properties of the Route Policy resource. + /// API to update certain properties of the Route Policy resource. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the Route Policy. @@ -73310,17 +74018,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -73333,7 +74042,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -73461,17 +74173,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -73484,7 +74197,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -73819,17 +74535,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -73842,7 +74559,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -73970,17 +74690,18 @@ public partial class ManagedNetworkFabric global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -73993,7 +74714,10 @@ public partial class ManagedNetworkFabric if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/AccessControlList.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/AccessControlList.cs index 7d473e670d84..83f5ea5f3d1d 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/AccessControlList.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/AccessControlList.cs @@ -61,38 +61,56 @@ public partial class AccessControlList : /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location = value ; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } /// List of match configurations. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inlined)] public System.Collections.Generic.List MatchConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IAccessControlListPatchablePropertiesInternal)Property).MatchConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IAccessControlListPatchablePropertiesInternal)Property).MatchConfiguration = value ?? null /* arrayOf */; } /// Internal Acessors for AdministrativeState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IAccessControlListInternal.AdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IAccessControlListPropertiesInternal)Property).AdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IAccessControlListPropertiesInternal)Property).AdministrativeState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IAccessControlListInternal.AdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IAccessControlListPropertiesInternal)Property).AdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IAccessControlListPropertiesInternal)Property).AdministrativeState = value ?? null; } /// Internal Acessors for ConfigurationState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IAccessControlListInternal.ConfigurationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IAccessControlListPropertiesInternal)Property).ConfigurationState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IAccessControlListPropertiesInternal)Property).ConfigurationState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IAccessControlListInternal.ConfigurationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IAccessControlListPropertiesInternal)Property).ConfigurationState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IAccessControlListPropertiesInternal)Property).ConfigurationState = value ?? null; } /// Internal Acessors for LastSyncedTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IAccessControlListInternal.LastSyncedTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IAccessControlListPropertiesInternal)Property).LastSyncedTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IAccessControlListPropertiesInternal)Property).LastSyncedTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IAccessControlListInternal.LastSyncedTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IAccessControlListPropertiesInternal)Property).LastSyncedTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IAccessControlListPropertiesInternal)Property).LastSyncedTime = value ?? default(global::System.DateTime); } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IAccessControlListProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IAccessControlListInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.AccessControlListProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IAccessControlListInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IAccessControlListPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IAccessControlListPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IAccessControlListInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IAccessControlListPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IAccessControlListPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] @@ -117,31 +135,31 @@ public partial class AccessControlList : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/AccessControlListMatchCondition.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/AccessControlListMatchCondition.cs index dcad70f136d7..3a181a3ca935 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/AccessControlListMatchCondition.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/AccessControlListMatchCondition.cs @@ -71,10 +71,10 @@ public partial class AccessControlListMatchCondition : Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IAccessControlListPortCondition Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IAccessControlListMatchConditionInternal.PortCondition { get => (this._portCondition = this._portCondition ?? new Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.AccessControlListPortCondition()); set { {_portCondition = value;} } } /// Internal Acessors for IPCondition - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPMatchCondition Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ICommonMatchConditionsInternal.IPCondition { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ICommonMatchConditionsInternal)__commonMatchConditions).IPCondition; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ICommonMatchConditionsInternal)__commonMatchConditions).IPCondition = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPMatchCondition Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ICommonMatchConditionsInternal.IPCondition { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ICommonMatchConditionsInternal)__commonMatchConditions).IPCondition; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ICommonMatchConditionsInternal)__commonMatchConditions).IPCondition = value ?? null /* model class */; } /// Internal Acessors for VlanMatchCondition - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVlanMatchCondition Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ICommonMatchConditionsInternal.VlanMatchCondition { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ICommonMatchConditionsInternal)__commonMatchConditions).VlanMatchCondition; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ICommonMatchConditionsInternal)__commonMatchConditions).VlanMatchCondition = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVlanMatchCondition Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ICommonMatchConditionsInternal.VlanMatchCondition { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ICommonMatchConditionsInternal)__commonMatchConditions).VlanMatchCondition; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ICommonMatchConditionsInternal)__commonMatchConditions).VlanMatchCondition = value ?? null /* model class */; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IAccessControlListPortCondition _portCondition; diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/ActionIPCommunityProperties.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/ActionIPCommunityProperties.cs index c3449d5aca09..7c5bf1c9ef43 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/ActionIPCommunityProperties.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/ActionIPCommunityProperties.cs @@ -48,13 +48,13 @@ public partial class ActionIPCommunityProperties : public System.Collections.Generic.List DeleteIPCommunityId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityDeleteOperationPropertiesInternal)__ipCommunityDeleteOperationProperties).DeleteIPCommunityId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityDeleteOperationPropertiesInternal)__ipCommunityDeleteOperationProperties).DeleteIPCommunityId = value ?? null /* arrayOf */; } /// Internal Acessors for Add - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityIdList Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityAddOperationPropertiesInternal.Add { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityAddOperationPropertiesInternal)__ipCommunityAddOperationProperties).Add; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityAddOperationPropertiesInternal)__ipCommunityAddOperationProperties).Add = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityIdList Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityAddOperationPropertiesInternal.Add { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityAddOperationPropertiesInternal)__ipCommunityAddOperationProperties).Add; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityAddOperationPropertiesInternal)__ipCommunityAddOperationProperties).Add = value ?? null /* model class */; } /// Internal Acessors for Delete - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityIdList Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityDeleteOperationPropertiesInternal.Delete { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityDeleteOperationPropertiesInternal)__ipCommunityDeleteOperationProperties).Delete; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityDeleteOperationPropertiesInternal)__ipCommunityDeleteOperationProperties).Delete = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityIdList Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityDeleteOperationPropertiesInternal.Delete { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityDeleteOperationPropertiesInternal)__ipCommunityDeleteOperationProperties).Delete; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityDeleteOperationPropertiesInternal)__ipCommunityDeleteOperationProperties).Delete = value ?? null /* model class */; } /// Internal Acessors for Set - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityIdList Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunitySetOperationPropertiesInternal.Set { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunitySetOperationPropertiesInternal)__ipCommunitySetOperationProperties).Set; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunitySetOperationPropertiesInternal)__ipCommunitySetOperationProperties).Set = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityIdList Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunitySetOperationPropertiesInternal.Set { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunitySetOperationPropertiesInternal)__ipCommunitySetOperationProperties).Set; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunitySetOperationPropertiesInternal)__ipCommunitySetOperationProperties).Set = value ?? null /* model class */; } /// List of IP Community IDs. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/ActionIPExtendedCommunityProperties.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/ActionIPExtendedCommunityProperties.cs index f6e73a1b7203..d03e2d2f92b6 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/ActionIPExtendedCommunityProperties.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/ActionIPExtendedCommunityProperties.cs @@ -48,13 +48,13 @@ public partial class ActionIPExtendedCommunityProperties : public System.Collections.Generic.List DeleteIPExtendedCommunityId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityDeleteOperationPropertiesInternal)__ipExtendedCommunityDeleteOperationProperties).DeleteIPExtendedCommunityId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityDeleteOperationPropertiesInternal)__ipExtendedCommunityDeleteOperationProperties).DeleteIPExtendedCommunityId = value ?? null /* arrayOf */; } /// Internal Acessors for Add - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityIdList Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityAddOperationPropertiesInternal.Add { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityAddOperationPropertiesInternal)__ipExtendedCommunityAddOperationProperties).Add; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityAddOperationPropertiesInternal)__ipExtendedCommunityAddOperationProperties).Add = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityIdList Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityAddOperationPropertiesInternal.Add { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityAddOperationPropertiesInternal)__ipExtendedCommunityAddOperationProperties).Add; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityAddOperationPropertiesInternal)__ipExtendedCommunityAddOperationProperties).Add = value ?? null /* model class */; } /// Internal Acessors for Delete - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityIdList Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityDeleteOperationPropertiesInternal.Delete { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityDeleteOperationPropertiesInternal)__ipExtendedCommunityDeleteOperationProperties).Delete; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityDeleteOperationPropertiesInternal)__ipExtendedCommunityDeleteOperationProperties).Delete = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityIdList Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityDeleteOperationPropertiesInternal.Delete { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityDeleteOperationPropertiesInternal)__ipExtendedCommunityDeleteOperationProperties).Delete; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityDeleteOperationPropertiesInternal)__ipExtendedCommunityDeleteOperationProperties).Delete = value ?? null /* model class */; } /// Internal Acessors for Set - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityIdList Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunitySetOperationPropertiesInternal.Set { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunitySetOperationPropertiesInternal)__ipExtendedCommunitySetOperationProperties).Set; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunitySetOperationPropertiesInternal)__ipExtendedCommunitySetOperationProperties).Set = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityIdList Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunitySetOperationPropertiesInternal.Set { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunitySetOperationPropertiesInternal)__ipExtendedCommunitySetOperationProperties).Set; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunitySetOperationPropertiesInternal)__ipExtendedCommunitySetOperationProperties).Set = value ?? null /* model class */; } /// List of IP Extended Community IDs. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/BgpConfiguration.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/BgpConfiguration.cs index 1730f7bca956..c8fe6f3bfff3 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/BgpConfiguration.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/BgpConfiguration.cs @@ -105,7 +105,7 @@ public partial class BgpConfiguration : Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBfdConfiguration Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBgpConfigurationInternal.BfdConfiguration { get => (this._bfdConfiguration = this._bfdConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.BfdConfiguration()); set { {_bfdConfiguration = value;} } } /// Internal Acessors for BfdConfigurationAdministrativeState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBgpConfigurationInternal.BfdConfigurationAdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBfdConfigurationInternal)BfdConfiguration).AdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBfdConfigurationInternal)BfdConfiguration).AdministrativeState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBgpConfigurationInternal.BfdConfigurationAdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBfdConfigurationInternal)BfdConfiguration).AdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBfdConfigurationInternal)BfdConfiguration).AdministrativeState = value ?? null; } /// Internal Acessors for FabricAsn long? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBgpConfigurationInternal.FabricAsn { get => this._fabricAsn; set { {_fabricAsn = value;} } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/CommonPostActionResponseForDeviceUpdate.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/CommonPostActionResponseForDeviceUpdate.cs index b6b2a6f880ca..0f8d9543fa64 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/CommonPostActionResponseForDeviceUpdate.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/CommonPostActionResponseForDeviceUpdate.cs @@ -57,22 +57,22 @@ public partial class CommonPostActionResponseForDeviceUpdate : string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ICommonPostActionResponseForDeviceUpdateInternal.ConfigurationState { get => this._configurationState; set { {_configurationState = value;} } } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal.Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Error = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal.Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Error = value ?? null /* model class */; } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Message = value ?? null; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Target = value ?? null; } /// Backing field for property. private System.Collections.Generic.List _successfulDevice; diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/CommonPostActionResponseForStateUpdate.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/CommonPostActionResponseForStateUpdate.cs index d226a71f882c..3f25a84449fc 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/CommonPostActionResponseForStateUpdate.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/CommonPostActionResponseForStateUpdate.cs @@ -50,22 +50,22 @@ public partial class CommonPostActionResponseForStateUpdate : string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ICommonPostActionResponseForStateUpdateInternal.ConfigurationState { get => this._configurationState; set { {_configurationState = value;} } } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal.Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Error = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal.Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Error = value ?? null /* model class */; } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Message = value ?? null; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Target = value ?? null; } /// The error target. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/ErrorResponse.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/ErrorResponse.cs index ed19d147f721..e1847647a51b 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/ErrorResponse.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/ErrorResponse.cs @@ -40,22 +40,22 @@ public partial class ErrorResponse : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorDetailInternal)Error).Message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorDetailInternal)Error).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorDetailInternal)Error).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorDetailInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorDetailInternal)Error).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorDetailInternal)Error).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorDetailInternal)Error).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for Error Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ErrorDetail()); set { {_error = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorDetailInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorDetailInternal)Error).Message = value ?? null; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorDetailInternal)Error).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorDetailInternal)Error).Target = value ?? null; } /// The error target. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inlined)] diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/ExternalNetwork.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/ExternalNetwork.cs index a9f81acecfde..4aa8df95ca51 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/ExternalNetwork.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/ExternalNetwork.cs @@ -58,37 +58,55 @@ public partial class ExternalNetwork : public string ImportRoutePolicyId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkPatchablePropertiesInternal)Property).ImportRoutePolicyId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkPatchablePropertiesInternal)Property).ImportRoutePolicyId = value ?? null; } /// Internal Acessors for AdministrativeState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkInternal.AdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkPropertiesInternal)Property).AdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkPropertiesInternal)Property).AdministrativeState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkInternal.AdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkPropertiesInternal)Property).AdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkPropertiesInternal)Property).AdministrativeState = value ?? null; } /// Internal Acessors for ConfigurationState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkInternal.ConfigurationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkPropertiesInternal)Property).ConfigurationState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkPropertiesInternal)Property).ConfigurationState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkInternal.ConfigurationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkPropertiesInternal)Property).ConfigurationState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkPropertiesInternal)Property).ConfigurationState = value ?? null; } /// Internal Acessors for NetworkToNetworkInterconnectId - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkInternal.NetworkToNetworkInterconnectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkPropertiesInternal)Property).NetworkToNetworkInterconnectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkPropertiesInternal)Property).NetworkToNetworkInterconnectId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkInternal.NetworkToNetworkInterconnectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkPropertiesInternal)Property).NetworkToNetworkInterconnectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkPropertiesInternal)Property).NetworkToNetworkInterconnectId = value ?? null; } /// Internal Acessors for OptionAProperty - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkPropertiesOptionAProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkInternal.OptionAProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkPropertiesInternal)Property).OptionAProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkPropertiesInternal)Property).OptionAProperty = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkPropertiesOptionAProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkInternal.OptionAProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkPropertiesInternal)Property).OptionAProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkPropertiesInternal)Property).OptionAProperty = value ?? null /* model class */; } /// Internal Acessors for OptionAPropertyFabricAsn - long? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkInternal.OptionAPropertyFabricAsn { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkPropertiesInternal)Property).OptionAPropertyFabricAsn; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkPropertiesInternal)Property).OptionAPropertyFabricAsn = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkInternal.OptionAPropertyFabricAsn { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkPropertiesInternal)Property).OptionAPropertyFabricAsn; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkPropertiesInternal)Property).OptionAPropertyFabricAsn = value ?? default(long); } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ExternalNetworkProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] @@ -169,31 +187,31 @@ public partial class ExternalNetwork : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/ExternalNetworkPatch.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/ExternalNetworkPatch.cs index 83b0c5cc55e3..592a5e494c65 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/ExternalNetworkPatch.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/ExternalNetworkPatch.cs @@ -38,10 +38,10 @@ public partial class ExternalNetworkPatch : public string ImportRoutePolicyId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkPatchablePropertiesInternal)Property).ImportRoutePolicyId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkPatchablePropertiesInternal)Property).ImportRoutePolicyId = value ?? null; } /// Internal Acessors for OptionAProperty - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkPatchPropertiesOptionAProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkPatchInternal.OptionAProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkPatchPropertiesInternal)Property).OptionAProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkPatchPropertiesInternal)Property).OptionAProperty = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkPatchPropertiesOptionAProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkPatchInternal.OptionAProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkPatchPropertiesInternal)Property).OptionAProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkPatchPropertiesInternal)Property).OptionAProperty = value ?? null /* model class */; } /// Internal Acessors for OptionAPropertyFabricAsn - long? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkPatchInternal.OptionAPropertyFabricAsn { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkPatchPropertiesInternal)Property).OptionAPropertyFabricAsn; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkPatchPropertiesInternal)Property).OptionAPropertyFabricAsn = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkPatchInternal.OptionAPropertyFabricAsn { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkPatchPropertiesInternal)Property).OptionAPropertyFabricAsn; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkPatchPropertiesInternal)Property).OptionAPropertyFabricAsn = value ?? default(long); } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkPatchProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkPatchInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ExternalNetworkPatchProperties()); set { {_property = value;} } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/ExternalNetworkPatchProperties.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/ExternalNetworkPatchProperties.cs index 88558e653748..c3cf2e7d6a55 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/ExternalNetworkPatchProperties.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/ExternalNetworkPatchProperties.cs @@ -53,7 +53,7 @@ public partial class ExternalNetworkPatchProperties : Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkPatchPropertiesOptionAProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkPatchPropertiesInternal.OptionAProperty { get => (this._optionAProperty = this._optionAProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ExternalNetworkPatchPropertiesOptionAProperties()); set { {_optionAProperty = value;} } } /// Internal Acessors for OptionAPropertyFabricAsn - long? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkPatchPropertiesInternal.OptionAPropertyFabricAsn { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL3OptionAPropertiesInternal)OptionAProperty).FabricAsn; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL3OptionAPropertiesInternal)OptionAProperty).FabricAsn = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkPatchPropertiesInternal.OptionAPropertyFabricAsn { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL3OptionAPropertiesInternal)OptionAProperty).FabricAsn; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL3OptionAPropertiesInternal)OptionAProperty).FabricAsn = value ?? default(long); } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkPatchPropertiesOptionAProperties _optionAProperty; diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/ExternalNetworkPatchPropertiesOptionAProperties.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/ExternalNetworkPatchPropertiesOptionAProperties.cs index 407eab77722b..bf82a4f1032e 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/ExternalNetworkPatchPropertiesOptionAProperties.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/ExternalNetworkPatchPropertiesOptionAProperties.cs @@ -42,7 +42,7 @@ public partial class ExternalNetworkPatchPropertiesOptionAProperties : public string IngressAclId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL3OptionAPropertiesInternal)__l3OptionAProperties).IngressAclId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL3OptionAPropertiesInternal)__l3OptionAProperties).IngressAclId = value ?? null; } /// Internal Acessors for FabricAsn - long? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL3OptionAPropertiesInternal.FabricAsn { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL3OptionAPropertiesInternal)__l3OptionAProperties).FabricAsn; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL3OptionAPropertiesInternal)__l3OptionAProperties).FabricAsn = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL3OptionAPropertiesInternal.FabricAsn { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL3OptionAPropertiesInternal)__l3OptionAProperties).FabricAsn; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL3OptionAPropertiesInternal)__l3OptionAProperties).FabricAsn = value ?? default(long); } /// MTU to use for option A peering. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/ExternalNetworkProperties.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/ExternalNetworkProperties.cs index 7bffdfa44311..b4f6da0f32e7 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/ExternalNetworkProperties.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/ExternalNetworkProperties.cs @@ -76,7 +76,7 @@ public partial class ExternalNetworkProperties : Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkPropertiesOptionAProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkPropertiesInternal.OptionAProperty { get => (this._optionAProperty = this._optionAProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ExternalNetworkPropertiesOptionAProperties()); set { {_optionAProperty = value;} } } /// Internal Acessors for OptionAPropertyFabricAsn - long? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkPropertiesInternal.OptionAPropertyFabricAsn { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL3OptionAPropertiesInternal)OptionAProperty).FabricAsn; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL3OptionAPropertiesInternal)OptionAProperty).FabricAsn = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkPropertiesInternal.OptionAPropertyFabricAsn { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL3OptionAPropertiesInternal)OptionAProperty).FabricAsn; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL3OptionAPropertiesInternal)OptionAProperty).FabricAsn = value ?? default(long); } /// Internal Acessors for ProvisioningState string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetworkPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/ExternalNetworkPropertiesOptionAProperties.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/ExternalNetworkPropertiesOptionAProperties.cs index 46b3faa27823..ad558d354b06 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/ExternalNetworkPropertiesOptionAProperties.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/ExternalNetworkPropertiesOptionAProperties.cs @@ -42,7 +42,7 @@ public partial class ExternalNetworkPropertiesOptionAProperties : public string IngressAclId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL3OptionAPropertiesInternal)__l3OptionAProperties).IngressAclId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL3OptionAPropertiesInternal)__l3OptionAProperties).IngressAclId = value ?? null; } /// Internal Acessors for FabricAsn - long? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL3OptionAPropertiesInternal.FabricAsn { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL3OptionAPropertiesInternal)__l3OptionAProperties).FabricAsn; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL3OptionAPropertiesInternal)__l3OptionAProperties).FabricAsn = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL3OptionAPropertiesInternal.FabricAsn { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL3OptionAPropertiesInternal)__l3OptionAProperties).FabricAsn; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL3OptionAPropertiesInternal)__l3OptionAProperties).FabricAsn = value ?? default(long); } /// MTU to use for option A peering. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/IPCommunity.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/IPCommunity.cs index 3964acb10dcf..832801a94333 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/IPCommunity.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/IPCommunity.cs @@ -39,31 +39,49 @@ public partial class IPCommunity : /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location = value ; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } /// Internal Acessors for AdministrativeState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityInternal.AdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityPropertiesInternal)Property).AdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityPropertiesInternal)Property).AdministrativeState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityInternal.AdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityPropertiesInternal)Property).AdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityPropertiesInternal)Property).AdministrativeState = value ?? null; } /// Internal Acessors for ConfigurationState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityInternal.ConfigurationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityPropertiesInternal)Property).ConfigurationState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityPropertiesInternal)Property).ConfigurationState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityInternal.ConfigurationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityPropertiesInternal)Property).ConfigurationState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityPropertiesInternal)Property).ConfigurationState = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IPCommunityProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] @@ -92,31 +110,31 @@ public partial class IPCommunity : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/IPExtendedCommunity.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/IPExtendedCommunity.cs index fd89f7bc2e0c..9221cb74c7db 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/IPExtendedCommunity.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/IPExtendedCommunity.cs @@ -39,31 +39,49 @@ public partial class IPExtendedCommunity : /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location = value ; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } /// Internal Acessors for AdministrativeState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityInternal.AdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityPropertiesInternal)Property).AdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityPropertiesInternal)Property).AdministrativeState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityInternal.AdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityPropertiesInternal)Property).AdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityPropertiesInternal)Property).AdministrativeState = value ?? null; } /// Internal Acessors for ConfigurationState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityInternal.ConfigurationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityPropertiesInternal)Property).ConfigurationState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityPropertiesInternal)Property).ConfigurationState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityInternal.ConfigurationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityPropertiesInternal)Property).ConfigurationState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityPropertiesInternal)Property).ConfigurationState = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IPExtendedCommunityProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] @@ -92,31 +110,31 @@ public partial class IPExtendedCommunity : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/IPPrefix.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/IPPrefix.cs index 2a4a14f3d055..841a551ed467 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/IPPrefix.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/IPPrefix.cs @@ -39,31 +39,49 @@ public partial class IPPrefix : /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location = value ; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } /// Internal Acessors for AdministrativeState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPPrefixInternal.AdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPPrefixPropertiesInternal)Property).AdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPPrefixPropertiesInternal)Property).AdministrativeState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPPrefixInternal.AdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPPrefixPropertiesInternal)Property).AdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPPrefixPropertiesInternal)Property).AdministrativeState = value ?? null; } /// Internal Acessors for ConfigurationState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPPrefixInternal.ConfigurationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPPrefixPropertiesInternal)Property).ConfigurationState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPPrefixPropertiesInternal)Property).ConfigurationState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPPrefixInternal.ConfigurationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPPrefixPropertiesInternal)Property).ConfigurationState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPPrefixPropertiesInternal)Property).ConfigurationState = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPPrefixProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPPrefixInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IPPrefixProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPPrefixInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPPrefixPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPPrefixPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPPrefixInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPPrefixPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPPrefixPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] @@ -92,31 +110,31 @@ public partial class IPPrefix : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/InternalNetwork.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/InternalNetwork.cs index 71638a329511..ac28deadcae8 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/InternalNetwork.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/InternalNetwork.cs @@ -86,31 +86,49 @@ public partial class InternalNetwork : public string IsMonitoringEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPatchablePropertiesInternal)Property).IsMonitoringEnabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPatchablePropertiesInternal)Property).IsMonitoringEnabled = value ?? null; } /// Internal Acessors for AdministrativeState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkInternal.AdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPropertiesInternal)Property).AdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPropertiesInternal)Property).AdministrativeState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkInternal.AdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPropertiesInternal)Property).AdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPropertiesInternal)Property).AdministrativeState = value ?? null; } /// Internal Acessors for ConfigurationState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkInternal.ConfigurationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPropertiesInternal)Property).ConfigurationState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPropertiesInternal)Property).ConfigurationState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkInternal.ConfigurationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPropertiesInternal)Property).ConfigurationState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPropertiesInternal)Property).ConfigurationState = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.InternalNetworkProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for StaticRouteConfiguration - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPropertiesStaticRouteConfiguration Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkInternal.StaticRouteConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPropertiesInternal)Property).StaticRouteConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPropertiesInternal)Property).StaticRouteConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPropertiesStaticRouteConfiguration Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkInternal.StaticRouteConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPropertiesInternal)Property).StaticRouteConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPropertiesInternal)Property).StaticRouteConfiguration = value ?? null /* model class */; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// Maximum transmission unit. Default value is 1500. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inlined)] @@ -155,31 +173,31 @@ public partial class InternalNetwork : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/InternalNetworkPatch.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/InternalNetworkPatch.cs index 754b73600f7e..1df5c45deb47 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/InternalNetworkPatch.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/InternalNetworkPatch.cs @@ -113,16 +113,16 @@ public partial class InternalNetworkPatch : public string IsMonitoringEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPatchablePropertiesInternal)Property).IsMonitoringEnabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPatchablePropertiesInternal)Property).IsMonitoringEnabled = value ?? null; } /// Internal Acessors for BfdConfigurationAdministrativeState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPatchInternal.BfdConfigurationAdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPatchPropertiesInternal)Property).BfdConfigurationAdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPatchPropertiesInternal)Property).BfdConfigurationAdministrativeState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPatchInternal.BfdConfigurationAdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPatchPropertiesInternal)Property).BfdConfigurationAdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPatchPropertiesInternal)Property).BfdConfigurationAdministrativeState = value ?? null; } /// Internal Acessors for BgpConfiguration - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBgpConfiguration Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPatchInternal.BgpConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPatchPropertiesInternal)Property).BgpConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPatchPropertiesInternal)Property).BgpConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBgpConfiguration Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPatchInternal.BgpConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPatchPropertiesInternal)Property).BgpConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPatchPropertiesInternal)Property).BgpConfiguration = value ?? null /* model class */; } /// Internal Acessors for BgpConfigurationBfdConfiguration - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBfdConfiguration Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPatchInternal.BgpConfigurationBfdConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPatchPropertiesInternal)Property).BgpConfigurationBfdConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPatchPropertiesInternal)Property).BgpConfigurationBfdConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBfdConfiguration Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPatchInternal.BgpConfigurationBfdConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPatchPropertiesInternal)Property).BgpConfigurationBfdConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPatchPropertiesInternal)Property).BgpConfigurationBfdConfiguration = value ?? null /* model class */; } /// Internal Acessors for BgpConfigurationFabricAsn - long? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPatchInternal.BgpConfigurationFabricAsn { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPatchPropertiesInternal)Property).BgpConfigurationFabricAsn; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPatchPropertiesInternal)Property).BgpConfigurationFabricAsn = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPatchInternal.BgpConfigurationFabricAsn { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPatchPropertiesInternal)Property).BgpConfigurationFabricAsn; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPatchPropertiesInternal)Property).BgpConfigurationFabricAsn = value ?? default(long); } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPatchProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPatchInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.InternalNetworkPatchProperties()); set { {_property = value;} } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/InternalNetworkPatchProperties.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/InternalNetworkPatchProperties.cs index b555831a2dd0..94f9c6df4665 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/InternalNetworkPatchProperties.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/InternalNetworkPatchProperties.cs @@ -132,16 +132,16 @@ public partial class InternalNetworkPatchProperties : public string IsMonitoringEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPatchablePropertiesInternal)__internalNetworkPatchableProperties).IsMonitoringEnabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPatchablePropertiesInternal)__internalNetworkPatchableProperties).IsMonitoringEnabled = value ?? null; } /// Internal Acessors for BfdConfigurationAdministrativeState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPatchPropertiesInternal.BfdConfigurationAdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBgpConfigurationInternal)BgpConfiguration).BfdConfigurationAdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBgpConfigurationInternal)BgpConfiguration).BfdConfigurationAdministrativeState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPatchPropertiesInternal.BfdConfigurationAdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBgpConfigurationInternal)BgpConfiguration).BfdConfigurationAdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBgpConfigurationInternal)BgpConfiguration).BfdConfigurationAdministrativeState = value ?? null; } /// Internal Acessors for BgpConfiguration Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBgpConfiguration Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPatchPropertiesInternal.BgpConfiguration { get => (this._bgpConfiguration = this._bgpConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.BgpConfiguration()); set { {_bgpConfiguration = value;} } } /// Internal Acessors for BgpConfigurationBfdConfiguration - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBfdConfiguration Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPatchPropertiesInternal.BgpConfigurationBfdConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBgpConfigurationInternal)BgpConfiguration).BfdConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBgpConfigurationInternal)BgpConfiguration).BfdConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBfdConfiguration Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPatchPropertiesInternal.BgpConfigurationBfdConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBgpConfigurationInternal)BgpConfiguration).BfdConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBgpConfigurationInternal)BgpConfiguration).BfdConfiguration = value ?? null /* model class */; } /// Internal Acessors for BgpConfigurationFabricAsn - long? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPatchPropertiesInternal.BgpConfigurationFabricAsn { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBgpConfigurationInternal)BgpConfiguration).FabricAsn; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBgpConfigurationInternal)BgpConfiguration).FabricAsn = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetworkPatchPropertiesInternal.BgpConfigurationFabricAsn { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBgpConfigurationInternal)BgpConfiguration).FabricAsn; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBgpConfigurationInternal)BgpConfiguration).FabricAsn = value ?? default(long); } /// Maximum transmission unit. Default value is 1500. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/InternalNetworkPropertiesBgpConfiguration.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/InternalNetworkPropertiesBgpConfiguration.cs index 3bad6ddebac3..3da772629ef4 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/InternalNetworkPropertiesBgpConfiguration.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/InternalNetworkPropertiesBgpConfiguration.cs @@ -75,13 +75,13 @@ public partial class InternalNetworkPropertiesBgpConfiguration : public System.Collections.Generic.List Ipv6NeighborAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBgpConfigurationInternal)__bgpConfiguration).Ipv6NeighborAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBgpConfigurationInternal)__bgpConfiguration).Ipv6NeighborAddress = value ?? null /* arrayOf */; } /// Internal Acessors for BfdConfiguration - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBfdConfiguration Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBgpConfigurationInternal.BfdConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBgpConfigurationInternal)__bgpConfiguration).BfdConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBgpConfigurationInternal)__bgpConfiguration).BfdConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBfdConfiguration Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBgpConfigurationInternal.BfdConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBgpConfigurationInternal)__bgpConfiguration).BfdConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBgpConfigurationInternal)__bgpConfiguration).BfdConfiguration = value ?? null /* model class */; } /// Internal Acessors for BfdConfigurationAdministrativeState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBgpConfigurationInternal.BfdConfigurationAdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBgpConfigurationInternal)__bgpConfiguration).BfdConfigurationAdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBgpConfigurationInternal)__bgpConfiguration).BfdConfigurationAdministrativeState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBgpConfigurationInternal.BfdConfigurationAdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBgpConfigurationInternal)__bgpConfiguration).BfdConfigurationAdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBgpConfigurationInternal)__bgpConfiguration).BfdConfigurationAdministrativeState = value ?? null; } /// Internal Acessors for FabricAsn - long? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBgpConfigurationInternal.FabricAsn { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBgpConfigurationInternal)__bgpConfiguration).FabricAsn; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBgpConfigurationInternal)__bgpConfiguration).FabricAsn = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBgpConfigurationInternal.FabricAsn { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBgpConfigurationInternal)__bgpConfiguration).FabricAsn; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBgpConfigurationInternal)__bgpConfiguration).FabricAsn = value ?? default(long); } /// Peer ASN. Example: 65047. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/InternetGateway.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/InternetGateway.cs index b4fd946e9ff8..7c730bea16c3 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/InternetGateway.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/InternetGateway.cs @@ -35,31 +35,49 @@ public partial class InternetGateway : /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location = value ; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } /// Internal Acessors for Ipv4Address - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternetGatewayInternal.Ipv4Address { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternetGatewayPropertiesInternal)Property).Ipv4Address; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternetGatewayPropertiesInternal)Property).Ipv4Address = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternetGatewayInternal.Ipv4Address { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternetGatewayPropertiesInternal)Property).Ipv4Address; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternetGatewayPropertiesInternal)Property).Ipv4Address = value ?? null; } /// Internal Acessors for Port - int? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternetGatewayInternal.Port { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternetGatewayPropertiesInternal)Property).Port; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternetGatewayPropertiesInternal)Property).Port = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternetGatewayInternal.Port { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternetGatewayPropertiesInternal)Property).Port; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternetGatewayPropertiesInternal)Property).Port = value ?? default(int); } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternetGatewayProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternetGatewayInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.InternetGatewayProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternetGatewayInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternetGatewayPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternetGatewayPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternetGatewayInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternetGatewayPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternetGatewayPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] @@ -100,31 +118,31 @@ public partial class InternetGateway : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/InternetGatewayRule.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/InternetGatewayRule.cs index c9a4d8f31e62..2b5680d75c6c 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/InternetGatewayRule.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/InternetGatewayRule.cs @@ -35,28 +35,46 @@ public partial class InternetGatewayRule : /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location = value ; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } /// Internal Acessors for InternetGatewayId - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternetGatewayRuleInternal.InternetGatewayId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternetGatewayRulePropertiesInternal)Property).InternetGatewayId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternetGatewayRulePropertiesInternal)Property).InternetGatewayId = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternetGatewayRuleInternal.InternetGatewayId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternetGatewayRulePropertiesInternal)Property).InternetGatewayId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternetGatewayRulePropertiesInternal)Property).InternetGatewayId = value ?? null /* arrayOf */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternetGatewayRuleProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternetGatewayRuleInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.InternetGatewayRuleProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternetGatewayRuleInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternetGatewayRulePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternetGatewayRulePropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternetGatewayRuleInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternetGatewayRulePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternetGatewayRulePropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] @@ -85,31 +103,31 @@ public partial class InternetGatewayRule : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/L2IsolationDomain.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/L2IsolationDomain.cs index c6e408f5a5bf..b5fb841bcb87 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/L2IsolationDomain.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/L2IsolationDomain.cs @@ -39,31 +39,49 @@ public partial class L2IsolationDomain : /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location = value ; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } /// Internal Acessors for AdministrativeState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL2IsolationDomainInternal.AdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL2IsolationDomainPropertiesInternal)Property).AdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL2IsolationDomainPropertiesInternal)Property).AdministrativeState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL2IsolationDomainInternal.AdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL2IsolationDomainPropertiesInternal)Property).AdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL2IsolationDomainPropertiesInternal)Property).AdministrativeState = value ?? null; } /// Internal Acessors for ConfigurationState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL2IsolationDomainInternal.ConfigurationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL2IsolationDomainPropertiesInternal)Property).ConfigurationState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL2IsolationDomainPropertiesInternal)Property).ConfigurationState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL2IsolationDomainInternal.ConfigurationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL2IsolationDomainPropertiesInternal)Property).ConfigurationState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL2IsolationDomainPropertiesInternal)Property).ConfigurationState = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL2IsolationDomainProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL2IsolationDomainInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.L2IsolationDomainProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL2IsolationDomainInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL2IsolationDomainPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL2IsolationDomainPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL2IsolationDomainInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL2IsolationDomainPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL2IsolationDomainPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// Maximum transmission unit. Default value is 1500. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inlined)] @@ -96,31 +114,31 @@ public partial class L2IsolationDomain : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/L3IsolationDomain.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/L3IsolationDomain.cs index c78c28e7e1f6..b160d14fa565 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/L3IsolationDomain.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/L3IsolationDomain.cs @@ -47,31 +47,49 @@ public partial class L3IsolationDomain : /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location = value ; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } /// Internal Acessors for AdministrativeState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL3IsolationDomainInternal.AdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL3IsolationDomainPropertiesInternal)Property).AdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL3IsolationDomainPropertiesInternal)Property).AdministrativeState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL3IsolationDomainInternal.AdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL3IsolationDomainPropertiesInternal)Property).AdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL3IsolationDomainPropertiesInternal)Property).AdministrativeState = value ?? null; } /// Internal Acessors for ConfigurationState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL3IsolationDomainInternal.ConfigurationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL3IsolationDomainPropertiesInternal)Property).ConfigurationState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL3IsolationDomainPropertiesInternal)Property).ConfigurationState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL3IsolationDomainInternal.ConfigurationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL3IsolationDomainPropertiesInternal)Property).ConfigurationState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL3IsolationDomainPropertiesInternal)Property).ConfigurationState = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL3IsolationDomainProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL3IsolationDomainInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.L3IsolationDomainProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL3IsolationDomainInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL3IsolationDomainPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL3IsolationDomainPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL3IsolationDomainInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL3IsolationDomainPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL3IsolationDomainPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] @@ -79,7 +97,7 @@ public partial class L3IsolationDomain : /// ARM Resource ID of the Network Fabric. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inlined)] - public string NetworkFabricId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL3IsolationDomainPropertiesInternal)Property).NetworkFabricId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL3IsolationDomainPropertiesInternal)Property).NetworkFabricId = value ; } + public string NetworkFabricId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL3IsolationDomainPropertiesInternal)Property).NetworkFabricId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL3IsolationDomainPropertiesInternal)Property).NetworkFabricId = value ?? null; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL3IsolationDomainProperties _property; @@ -108,31 +126,31 @@ public partial class L3IsolationDomain : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] @@ -226,7 +244,7 @@ public partial interface IL3IsolationDomain : Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IConnectedSubnetRoutePolicy ConnectedSubnetRoutePolicy { get; set; } /// ARM Resource ID of the Network Fabric. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/L3IsolationDomainProperties.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/L3IsolationDomainProperties.cs index 7c3e89739014..22a9260ea678 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/L3IsolationDomainProperties.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/L3IsolationDomainProperties.cs @@ -134,7 +134,7 @@ public partial interface IL3IsolationDomainProperties : string ConfigurationState { get; } /// ARM Resource ID of the Network Fabric. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/ManagementNetworkConfigurationPatchableProperties.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/ManagementNetworkConfigurationPatchableProperties.cs index c7a96df87784..44f39208739c 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/ManagementNetworkConfigurationPatchableProperties.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/ManagementNetworkConfigurationPatchableProperties.cs @@ -102,43 +102,43 @@ public partial class ManagementNetworkConfigurationPatchableProperties : /// /// Internal Acessors for InfrastructureVpnConfigurationOptionAPropertiesBfdConfiguration /// - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBfdConfiguration Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IManagementNetworkConfigurationPatchablePropertiesInternal.InfrastructureVpnConfigurationOptionAPropertiesBfdConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPatchablePropertiesInternal)InfrastructureVpnConfiguration).OptionAPropertyBfdConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPatchablePropertiesInternal)InfrastructureVpnConfiguration).OptionAPropertyBfdConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBfdConfiguration Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IManagementNetworkConfigurationPatchablePropertiesInternal.InfrastructureVpnConfigurationOptionAPropertiesBfdConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPatchablePropertiesInternal)InfrastructureVpnConfiguration).OptionAPropertyBfdConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPatchablePropertiesInternal)InfrastructureVpnConfiguration).OptionAPropertyBfdConfiguration = value ?? null /* model class */; } /// /// Internal Acessors for InfrastructureVpnConfigurationOptionAPropertiesBfdConfigurationAdministrativeState /// - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IManagementNetworkConfigurationPatchablePropertiesInternal.InfrastructureVpnConfigurationOptionAPropertiesBfdConfigurationAdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPatchablePropertiesInternal)InfrastructureVpnConfiguration).OptionAPropertyBfdConfigurationAdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPatchablePropertiesInternal)InfrastructureVpnConfiguration).OptionAPropertyBfdConfigurationAdministrativeState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IManagementNetworkConfigurationPatchablePropertiesInternal.InfrastructureVpnConfigurationOptionAPropertiesBfdConfigurationAdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPatchablePropertiesInternal)InfrastructureVpnConfiguration).OptionAPropertyBfdConfigurationAdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPatchablePropertiesInternal)InfrastructureVpnConfiguration).OptionAPropertyBfdConfigurationAdministrativeState = value ?? null; } /// Internal Acessors for InfrastructureVpnConfigurationOptionAProperty - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPatchablePropertiesOptionAProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IManagementNetworkConfigurationPatchablePropertiesInternal.InfrastructureVpnConfigurationOptionAProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPatchablePropertiesInternal)InfrastructureVpnConfiguration).OptionAProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPatchablePropertiesInternal)InfrastructureVpnConfiguration).OptionAProperty = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPatchablePropertiesOptionAProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IManagementNetworkConfigurationPatchablePropertiesInternal.InfrastructureVpnConfigurationOptionAProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPatchablePropertiesInternal)InfrastructureVpnConfiguration).OptionAProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPatchablePropertiesInternal)InfrastructureVpnConfiguration).OptionAProperty = value ?? null /* model class */; } /// /// Internal Acessors for InfrastructureVpnConfigurationOptionBPropertiesRouteTarget /// - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IRouteTargetInformation Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IManagementNetworkConfigurationPatchablePropertiesInternal.InfrastructureVpnConfigurationOptionBPropertiesRouteTarget { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPatchablePropertiesInternal)InfrastructureVpnConfiguration).OptionBPropertyRouteTarget; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPatchablePropertiesInternal)InfrastructureVpnConfiguration).OptionBPropertyRouteTarget = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IRouteTargetInformation Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IManagementNetworkConfigurationPatchablePropertiesInternal.InfrastructureVpnConfigurationOptionBPropertiesRouteTarget { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPatchablePropertiesInternal)InfrastructureVpnConfiguration).OptionBPropertyRouteTarget; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPatchablePropertiesInternal)InfrastructureVpnConfiguration).OptionBPropertyRouteTarget = value ?? null /* model class */; } /// Internal Acessors for InfrastructureVpnConfigurationOptionBProperty - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionBProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IManagementNetworkConfigurationPatchablePropertiesInternal.InfrastructureVpnConfigurationOptionBProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPatchablePropertiesInternal)InfrastructureVpnConfiguration).OptionBProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPatchablePropertiesInternal)InfrastructureVpnConfiguration).OptionBProperty = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionBProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IManagementNetworkConfigurationPatchablePropertiesInternal.InfrastructureVpnConfigurationOptionBProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPatchablePropertiesInternal)InfrastructureVpnConfiguration).OptionBProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPatchablePropertiesInternal)InfrastructureVpnConfiguration).OptionBProperty = value ?? null /* model class */; } /// Internal Acessors for WorkloadVpnConfiguration Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPatchableProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IManagementNetworkConfigurationPatchablePropertiesInternal.WorkloadVpnConfiguration { get => (this._workloadVpnConfiguration = this._workloadVpnConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.VpnConfigurationPatchableProperties()); set { {_workloadVpnConfiguration = value;} } } /// Internal Acessors for WorkloadVpnConfigurationOptionAPropertiesBfdConfiguration - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBfdConfiguration Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IManagementNetworkConfigurationPatchablePropertiesInternal.WorkloadVpnConfigurationOptionAPropertiesBfdConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPatchablePropertiesInternal)WorkloadVpnConfiguration).OptionAPropertyBfdConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPatchablePropertiesInternal)WorkloadVpnConfiguration).OptionAPropertyBfdConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBfdConfiguration Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IManagementNetworkConfigurationPatchablePropertiesInternal.WorkloadVpnConfigurationOptionAPropertiesBfdConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPatchablePropertiesInternal)WorkloadVpnConfiguration).OptionAPropertyBfdConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPatchablePropertiesInternal)WorkloadVpnConfiguration).OptionAPropertyBfdConfiguration = value ?? null /* model class */; } /// /// Internal Acessors for WorkloadVpnConfigurationOptionAPropertiesBfdConfigurationAdministrativeState /// - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IManagementNetworkConfigurationPatchablePropertiesInternal.WorkloadVpnConfigurationOptionAPropertiesBfdConfigurationAdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPatchablePropertiesInternal)WorkloadVpnConfiguration).OptionAPropertyBfdConfigurationAdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPatchablePropertiesInternal)WorkloadVpnConfiguration).OptionAPropertyBfdConfigurationAdministrativeState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IManagementNetworkConfigurationPatchablePropertiesInternal.WorkloadVpnConfigurationOptionAPropertiesBfdConfigurationAdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPatchablePropertiesInternal)WorkloadVpnConfiguration).OptionAPropertyBfdConfigurationAdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPatchablePropertiesInternal)WorkloadVpnConfiguration).OptionAPropertyBfdConfigurationAdministrativeState = value ?? null; } /// Internal Acessors for WorkloadVpnConfigurationOptionAProperty - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPatchablePropertiesOptionAProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IManagementNetworkConfigurationPatchablePropertiesInternal.WorkloadVpnConfigurationOptionAProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPatchablePropertiesInternal)WorkloadVpnConfiguration).OptionAProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPatchablePropertiesInternal)WorkloadVpnConfiguration).OptionAProperty = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPatchablePropertiesOptionAProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IManagementNetworkConfigurationPatchablePropertiesInternal.WorkloadVpnConfigurationOptionAProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPatchablePropertiesInternal)WorkloadVpnConfiguration).OptionAProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPatchablePropertiesInternal)WorkloadVpnConfiguration).OptionAProperty = value ?? null /* model class */; } /// Internal Acessors for WorkloadVpnConfigurationOptionBPropertiesRouteTarget - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IRouteTargetInformation Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IManagementNetworkConfigurationPatchablePropertiesInternal.WorkloadVpnConfigurationOptionBPropertiesRouteTarget { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPatchablePropertiesInternal)WorkloadVpnConfiguration).OptionBPropertyRouteTarget; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPatchablePropertiesInternal)WorkloadVpnConfiguration).OptionBPropertyRouteTarget = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IRouteTargetInformation Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IManagementNetworkConfigurationPatchablePropertiesInternal.WorkloadVpnConfigurationOptionBPropertiesRouteTarget { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPatchablePropertiesInternal)WorkloadVpnConfiguration).OptionBPropertyRouteTarget; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPatchablePropertiesInternal)WorkloadVpnConfiguration).OptionBPropertyRouteTarget = value ?? null /* model class */; } /// Internal Acessors for WorkloadVpnConfigurationOptionBProperty - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionBProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IManagementNetworkConfigurationPatchablePropertiesInternal.WorkloadVpnConfigurationOptionBProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPatchablePropertiesInternal)WorkloadVpnConfiguration).OptionBProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPatchablePropertiesInternal)WorkloadVpnConfiguration).OptionBProperty = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionBProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IManagementNetworkConfigurationPatchablePropertiesInternal.WorkloadVpnConfigurationOptionBProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPatchablePropertiesInternal)WorkloadVpnConfiguration).OptionBProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPatchablePropertiesInternal)WorkloadVpnConfiguration).OptionBProperty = value ?? null /* model class */; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPatchableProperties _workloadVpnConfiguration; diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/ManagementNetworkConfigurationProperties.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/ManagementNetworkConfigurationProperties.cs index 863be5f231f9..adb22f7cc6b3 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/ManagementNetworkConfigurationProperties.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/ManagementNetworkConfigurationProperties.cs @@ -104,51 +104,51 @@ public partial class ManagementNetworkConfigurationProperties : Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IManagementNetworkConfigurationPropertiesInternal.InfrastructureVpnConfiguration { get => (this._infrastructureVpnConfiguration = this._infrastructureVpnConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.VpnConfigurationProperties()); set { {_infrastructureVpnConfiguration = value;} } } /// Internal Acessors for InfrastructureVpnConfigurationAdministrativeState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IManagementNetworkConfigurationPropertiesInternal.InfrastructureVpnConfigurationAdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesInternal)InfrastructureVpnConfiguration).AdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesInternal)InfrastructureVpnConfiguration).AdministrativeState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IManagementNetworkConfigurationPropertiesInternal.InfrastructureVpnConfigurationAdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesInternal)InfrastructureVpnConfiguration).AdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesInternal)InfrastructureVpnConfiguration).AdministrativeState = value ?? null; } /// /// Internal Acessors for InfrastructureVpnConfigurationOptionAPropertiesBfdConfiguration /// - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBfdConfiguration Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IManagementNetworkConfigurationPropertiesInternal.InfrastructureVpnConfigurationOptionAPropertiesBfdConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesInternal)InfrastructureVpnConfiguration).OptionAPropertyBfdConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesInternal)InfrastructureVpnConfiguration).OptionAPropertyBfdConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBfdConfiguration Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IManagementNetworkConfigurationPropertiesInternal.InfrastructureVpnConfigurationOptionAPropertiesBfdConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesInternal)InfrastructureVpnConfiguration).OptionAPropertyBfdConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesInternal)InfrastructureVpnConfiguration).OptionAPropertyBfdConfiguration = value ?? null /* model class */; } /// /// Internal Acessors for InfrastructureVpnConfigurationOptionAPropertiesBfdConfigurationAdministrativeState /// - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IManagementNetworkConfigurationPropertiesInternal.InfrastructureVpnConfigurationOptionAPropertiesBfdConfigurationAdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesInternal)InfrastructureVpnConfiguration).OptionAPropertyBfdConfigurationAdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesInternal)InfrastructureVpnConfiguration).OptionAPropertyBfdConfigurationAdministrativeState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IManagementNetworkConfigurationPropertiesInternal.InfrastructureVpnConfigurationOptionAPropertiesBfdConfigurationAdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesInternal)InfrastructureVpnConfiguration).OptionAPropertyBfdConfigurationAdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesInternal)InfrastructureVpnConfiguration).OptionAPropertyBfdConfigurationAdministrativeState = value ?? null; } /// Internal Acessors for InfrastructureVpnConfigurationOptionAProperty - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesOptionAProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IManagementNetworkConfigurationPropertiesInternal.InfrastructureVpnConfigurationOptionAProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesInternal)InfrastructureVpnConfiguration).OptionAProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesInternal)InfrastructureVpnConfiguration).OptionAProperty = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesOptionAProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IManagementNetworkConfigurationPropertiesInternal.InfrastructureVpnConfigurationOptionAProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesInternal)InfrastructureVpnConfiguration).OptionAProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesInternal)InfrastructureVpnConfiguration).OptionAProperty = value ?? null /* model class */; } /// /// Internal Acessors for InfrastructureVpnConfigurationOptionBPropertiesRouteTarget /// - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IRouteTargetInformation Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IManagementNetworkConfigurationPropertiesInternal.InfrastructureVpnConfigurationOptionBPropertiesRouteTarget { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesInternal)InfrastructureVpnConfiguration).OptionBPropertyRouteTarget; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesInternal)InfrastructureVpnConfiguration).OptionBPropertyRouteTarget = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IRouteTargetInformation Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IManagementNetworkConfigurationPropertiesInternal.InfrastructureVpnConfigurationOptionBPropertiesRouteTarget { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesInternal)InfrastructureVpnConfiguration).OptionBPropertyRouteTarget; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesInternal)InfrastructureVpnConfiguration).OptionBPropertyRouteTarget = value ?? null /* model class */; } /// Internal Acessors for InfrastructureVpnConfigurationOptionBProperty - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionBProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IManagementNetworkConfigurationPropertiesInternal.InfrastructureVpnConfigurationOptionBProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesInternal)InfrastructureVpnConfiguration).OptionBProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesInternal)InfrastructureVpnConfiguration).OptionBProperty = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionBProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IManagementNetworkConfigurationPropertiesInternal.InfrastructureVpnConfigurationOptionBProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesInternal)InfrastructureVpnConfiguration).OptionBProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesInternal)InfrastructureVpnConfiguration).OptionBProperty = value ?? null /* model class */; } /// Internal Acessors for WorkloadVpnConfiguration Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IManagementNetworkConfigurationPropertiesInternal.WorkloadVpnConfiguration { get => (this._workloadVpnConfiguration = this._workloadVpnConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.VpnConfigurationProperties()); set { {_workloadVpnConfiguration = value;} } } /// Internal Acessors for WorkloadVpnConfigurationAdministrativeState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IManagementNetworkConfigurationPropertiesInternal.WorkloadVpnConfigurationAdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesInternal)WorkloadVpnConfiguration).AdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesInternal)WorkloadVpnConfiguration).AdministrativeState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IManagementNetworkConfigurationPropertiesInternal.WorkloadVpnConfigurationAdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesInternal)WorkloadVpnConfiguration).AdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesInternal)WorkloadVpnConfiguration).AdministrativeState = value ?? null; } /// Internal Acessors for WorkloadVpnConfigurationOptionAPropertiesBfdConfiguration - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBfdConfiguration Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IManagementNetworkConfigurationPropertiesInternal.WorkloadVpnConfigurationOptionAPropertiesBfdConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesInternal)WorkloadVpnConfiguration).OptionAPropertyBfdConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesInternal)WorkloadVpnConfiguration).OptionAPropertyBfdConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBfdConfiguration Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IManagementNetworkConfigurationPropertiesInternal.WorkloadVpnConfigurationOptionAPropertiesBfdConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesInternal)WorkloadVpnConfiguration).OptionAPropertyBfdConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesInternal)WorkloadVpnConfiguration).OptionAPropertyBfdConfiguration = value ?? null /* model class */; } /// /// Internal Acessors for WorkloadVpnConfigurationOptionAPropertiesBfdConfigurationAdministrativeState /// - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IManagementNetworkConfigurationPropertiesInternal.WorkloadVpnConfigurationOptionAPropertiesBfdConfigurationAdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesInternal)WorkloadVpnConfiguration).OptionAPropertyBfdConfigurationAdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesInternal)WorkloadVpnConfiguration).OptionAPropertyBfdConfigurationAdministrativeState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IManagementNetworkConfigurationPropertiesInternal.WorkloadVpnConfigurationOptionAPropertiesBfdConfigurationAdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesInternal)WorkloadVpnConfiguration).OptionAPropertyBfdConfigurationAdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesInternal)WorkloadVpnConfiguration).OptionAPropertyBfdConfigurationAdministrativeState = value ?? null; } /// Internal Acessors for WorkloadVpnConfigurationOptionAProperty - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesOptionAProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IManagementNetworkConfigurationPropertiesInternal.WorkloadVpnConfigurationOptionAProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesInternal)WorkloadVpnConfiguration).OptionAProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesInternal)WorkloadVpnConfiguration).OptionAProperty = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesOptionAProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IManagementNetworkConfigurationPropertiesInternal.WorkloadVpnConfigurationOptionAProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesInternal)WorkloadVpnConfiguration).OptionAProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesInternal)WorkloadVpnConfiguration).OptionAProperty = value ?? null /* model class */; } /// Internal Acessors for WorkloadVpnConfigurationOptionBPropertiesRouteTarget - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IRouteTargetInformation Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IManagementNetworkConfigurationPropertiesInternal.WorkloadVpnConfigurationOptionBPropertiesRouteTarget { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesInternal)WorkloadVpnConfiguration).OptionBPropertyRouteTarget; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesInternal)WorkloadVpnConfiguration).OptionBPropertyRouteTarget = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IRouteTargetInformation Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IManagementNetworkConfigurationPropertiesInternal.WorkloadVpnConfigurationOptionBPropertiesRouteTarget { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesInternal)WorkloadVpnConfiguration).OptionBPropertyRouteTarget; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesInternal)WorkloadVpnConfiguration).OptionBPropertyRouteTarget = value ?? null /* model class */; } /// Internal Acessors for WorkloadVpnConfigurationOptionBProperty - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionBProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IManagementNetworkConfigurationPropertiesInternal.WorkloadVpnConfigurationOptionBProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesInternal)WorkloadVpnConfiguration).OptionBProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesInternal)WorkloadVpnConfiguration).OptionBProperty = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionBProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IManagementNetworkConfigurationPropertiesInternal.WorkloadVpnConfigurationOptionBProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesInternal)WorkloadVpnConfiguration).OptionBProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesInternal)WorkloadVpnConfiguration).OptionBProperty = value ?? null /* model class */; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationProperties _workloadVpnConfiguration; diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NeighborGroup.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NeighborGroup.cs index 7339ff4112f4..f0992609a77a 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NeighborGroup.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NeighborGroup.cs @@ -35,31 +35,49 @@ public partial class NeighborGroup : /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location = value ; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } /// Internal Acessors for NetworkTapId - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INeighborGroupInternal.NetworkTapId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INeighborGroupPropertiesInternal)Property).NetworkTapId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INeighborGroupPropertiesInternal)Property).NetworkTapId = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INeighborGroupInternal.NetworkTapId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INeighborGroupPropertiesInternal)Property).NetworkTapId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INeighborGroupPropertiesInternal)Property).NetworkTapId = value ?? null /* arrayOf */; } /// Internal Acessors for NetworkTapRuleId - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INeighborGroupInternal.NetworkTapRuleId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INeighborGroupPropertiesInternal)Property).NetworkTapRuleId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INeighborGroupPropertiesInternal)Property).NetworkTapRuleId = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INeighborGroupInternal.NetworkTapRuleId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INeighborGroupPropertiesInternal)Property).NetworkTapRuleId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INeighborGroupPropertiesInternal)Property).NetworkTapRuleId = value ?? null /* arrayOf */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INeighborGroupProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INeighborGroupInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.NeighborGroupProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INeighborGroupInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INeighborGroupPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INeighborGroupPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INeighborGroupInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INeighborGroupPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INeighborGroupPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] @@ -92,31 +110,31 @@ public partial class NeighborGroup : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkDevice.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkDevice.cs index b30a59719d9a..5a070977e095 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkDevice.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkDevice.cs @@ -43,7 +43,7 @@ public partial class NetworkDevice : /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location = value ; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } /// Management IPv4 Address. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inlined)] @@ -54,43 +54,61 @@ public partial class NetworkDevice : public string ManagementIpv6Address { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDevicePropertiesInternal)Property).ManagementIpv6Address; } /// Internal Acessors for AdministrativeState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDeviceInternal.AdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDevicePropertiesInternal)Property).AdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDevicePropertiesInternal)Property).AdministrativeState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDeviceInternal.AdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDevicePropertiesInternal)Property).AdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDevicePropertiesInternal)Property).AdministrativeState = value ?? null; } /// Internal Acessors for ConfigurationState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDeviceInternal.ConfigurationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDevicePropertiesInternal)Property).ConfigurationState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDevicePropertiesInternal)Property).ConfigurationState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDeviceInternal.ConfigurationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDevicePropertiesInternal)Property).ConfigurationState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDevicePropertiesInternal)Property).ConfigurationState = value ?? null; } /// Internal Acessors for ManagementIpv4Address - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDeviceInternal.ManagementIpv4Address { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDevicePropertiesInternal)Property).ManagementIpv4Address; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDevicePropertiesInternal)Property).ManagementIpv4Address = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDeviceInternal.ManagementIpv4Address { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDevicePropertiesInternal)Property).ManagementIpv4Address; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDevicePropertiesInternal)Property).ManagementIpv4Address = value ?? null; } /// Internal Acessors for ManagementIpv6Address - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDeviceInternal.ManagementIpv6Address { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDevicePropertiesInternal)Property).ManagementIpv6Address; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDevicePropertiesInternal)Property).ManagementIpv6Address = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDeviceInternal.ManagementIpv6Address { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDevicePropertiesInternal)Property).ManagementIpv6Address; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDevicePropertiesInternal)Property).ManagementIpv6Address = value ?? null; } /// Internal Acessors for NetworkRackId - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDeviceInternal.NetworkRackId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDevicePropertiesInternal)Property).NetworkRackId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDevicePropertiesInternal)Property).NetworkRackId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDeviceInternal.NetworkRackId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDevicePropertiesInternal)Property).NetworkRackId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDevicePropertiesInternal)Property).NetworkRackId = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDeviceProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDeviceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.NetworkDeviceProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDeviceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDevicePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDevicePropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDeviceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDevicePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDevicePropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Role - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDeviceInternal.Role { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDevicePropertiesInternal)Property).NetworkDeviceRole; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDevicePropertiesInternal)Property).NetworkDeviceRole = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDeviceInternal.Role { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDevicePropertiesInternal)Property).NetworkDeviceRole; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDevicePropertiesInternal)Property).NetworkDeviceRole = value ?? null; } /// Internal Acessors for Version - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDeviceInternal.Version { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDevicePropertiesInternal)Property).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDevicePropertiesInternal)Property).Version = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDeviceInternal.Version { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDevicePropertiesInternal)Property).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDevicePropertiesInternal)Property).Version = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] @@ -133,31 +151,31 @@ public partial class NetworkDevice : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkDeviceSku.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkDeviceSku.cs index 9b312ad02eb9..98ca2df99e7f 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkDeviceSku.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkDeviceSku.cs @@ -37,19 +37,37 @@ public partial class NetworkDeviceSku : Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDeviceSkuProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDeviceSkuInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.NetworkDeviceSkuProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDeviceSkuInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDeviceSkuPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDeviceSkuPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDeviceSkuInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDeviceSkuPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDeviceSkuPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// Model of the network device. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inlined)] @@ -86,31 +104,31 @@ public partial class NetworkDeviceSku : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkFabric.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkFabric.cs index ef6f0bca2e49..23a4986a0a47 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkFabric.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkFabric.cs @@ -33,7 +33,7 @@ public partial class NetworkFabric : /// Azure resource ID for the NetworkFabricController the NetworkFabric belongs. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inlined)] - public string ControllerId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPropertiesInternal)Property).NetworkFabricControllerId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPropertiesInternal)Property).NetworkFabricControllerId = value ; } + public string ControllerId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPropertiesInternal)Property).NetworkFabricControllerId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPropertiesInternal)Property).NetworkFabricControllerId = value ?? null; } /// ASN of CE devices for CE/PE connectivity. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inlined)] @@ -67,50 +67,68 @@ public partial class NetworkFabric : /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location = value ; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } /// Configuration to be used to setup the management network. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inlined)] public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IManagementNetworkConfigurationProperties ManagementNetworkConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPropertiesInternal)Property).ManagementNetworkConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPropertiesInternal)Property).ManagementNetworkConfiguration = value ; } /// Internal Acessors for AdministrativeState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricInternal.AdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPropertiesInternal)Property).AdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPropertiesInternal)Property).AdministrativeState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricInternal.AdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPropertiesInternal)Property).AdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPropertiesInternal)Property).AdministrativeState = value ?? null; } /// Internal Acessors for ConfigurationState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricInternal.ConfigurationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPropertiesInternal)Property).ConfigurationState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPropertiesInternal)Property).ConfigurationState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricInternal.ConfigurationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPropertiesInternal)Property).ConfigurationState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPropertiesInternal)Property).ConfigurationState = value ?? null; } /// Internal Acessors for FabricVersion - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricInternal.FabricVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPropertiesInternal)Property).FabricVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPropertiesInternal)Property).FabricVersion = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricInternal.FabricVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPropertiesInternal)Property).FabricVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPropertiesInternal)Property).FabricVersion = value ?? null; } /// Internal Acessors for L2IsolationDomain - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricInternal.L2IsolationDomain { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPropertiesInternal)Property).L2IsolationDomain; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPropertiesInternal)Property).L2IsolationDomain = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricInternal.L2IsolationDomain { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPropertiesInternal)Property).L2IsolationDomain; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPropertiesInternal)Property).L2IsolationDomain = value ?? null /* arrayOf */; } /// Internal Acessors for L3IsolationDomain - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricInternal.L3IsolationDomain { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPropertiesInternal)Property).L3IsolationDomain; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPropertiesInternal)Property).L3IsolationDomain = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricInternal.L3IsolationDomain { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPropertiesInternal)Property).L3IsolationDomain; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPropertiesInternal)Property).L3IsolationDomain = value ?? null /* arrayOf */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.NetworkFabricProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Rack - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricInternal.Rack { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPropertiesInternal)Property).Rack; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPropertiesInternal)Property).Rack = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricInternal.Rack { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPropertiesInternal)Property).Rack; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPropertiesInternal)Property).Rack = value ?? null /* arrayOf */; } /// Internal Acessors for RouterId - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricInternal.RouterId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPropertiesInternal)Property).RouterId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPropertiesInternal)Property).RouterId = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricInternal.RouterId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPropertiesInternal)Property).RouterId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPropertiesInternal)Property).RouterId = value ?? null /* arrayOf */; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] @@ -157,37 +175,37 @@ public partial class NetworkFabric : /// racks can be added to the Network Fabric. The SKU determines whether it is a single / multi rack Network Fabric. /// [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inlined)] - public string Sku { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPropertiesInternal)Property).NetworkFabricSku; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPropertiesInternal)Property).NetworkFabricSku = value ; } + public string Sku { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPropertiesInternal)Property).NetworkFabricSku; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPropertiesInternal)Property).NetworkFabricSku = value ?? null; } /// /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] @@ -263,7 +281,7 @@ public partial interface INetworkFabric : string ConfigurationState { get; } /// Azure resource ID for the NetworkFabricController the NetworkFabric belongs. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -415,7 +433,7 @@ public partial interface INetworkFabric : /// racks can be added to the Network Fabric. The SKU determines whether it is a single / multi rack Network Fabric. /// [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkFabricController.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkFabricController.cs index fa5f251e08f6..b62dbdc49286 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkFabricController.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkFabricController.cs @@ -41,11 +41,11 @@ public partial class NetworkFabricController : /// is considered. The IPV4 address subnet is an optional attribute. /// [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inlined)] - public System.Collections.Generic.List InfrastructureServiceIpv4AddressSpace { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal)Property).InfrastructureServiceIpv4AddressSpace; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal)Property).InfrastructureServiceIpv4AddressSpace = value ?? null /* arrayOf */; } + public System.Collections.Generic.List InfrastructureServiceIpv4AddressSpace { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal)Property).InfrastructureServiceIpv4AddressSpace; } /// The IPv6 is not supported right now. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inlined)] - public System.Collections.Generic.List InfrastructureServiceIpv6AddressSpace { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal)Property).InfrastructureServiceIpv6AddressSpace; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal)Property).InfrastructureServiceIpv6AddressSpace = value ?? null /* arrayOf */; } + public System.Collections.Generic.List InfrastructureServiceIpv6AddressSpace { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal)Property).InfrastructureServiceIpv6AddressSpace; } /// IPv4 Network Fabric Controller Address Space. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inlined)] @@ -64,7 +64,7 @@ public partial class NetworkFabricController : /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location = value ; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } /// Managed resource group location. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inlined)] @@ -75,40 +75,70 @@ public partial class NetworkFabricController : public string ManagedResourceGroupConfigurationName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal)Property).ManagedResourceGroupConfigurationName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal)Property).ManagedResourceGroupConfigurationName = value ?? null; } /// Internal Acessors for InfrastructureService - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IControllerServices Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerInternal.InfrastructureService { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal)Property).InfrastructureService; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal)Property).InfrastructureService = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IControllerServices Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerInternal.InfrastructureService { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal)Property).InfrastructureService; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal)Property).InfrastructureService = value ?? null /* model class */; } + + /// Internal Acessors for InfrastructureServiceIpv4AddressSpace + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerInternal.InfrastructureServiceIpv4AddressSpace { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal)Property).InfrastructureServiceIpv4AddressSpace; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal)Property).InfrastructureServiceIpv4AddressSpace = value ?? null /* arrayOf */; } + + /// Internal Acessors for InfrastructureServiceIpv6AddressSpace + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerInternal.InfrastructureServiceIpv6AddressSpace { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal)Property).InfrastructureServiceIpv6AddressSpace; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal)Property).InfrastructureServiceIpv6AddressSpace = value ?? null /* arrayOf */; } /// Internal Acessors for ManagedResourceGroupConfiguration - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IManagedResourceGroupConfiguration Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerInternal.ManagedResourceGroupConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal)Property).ManagedResourceGroupConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal)Property).ManagedResourceGroupConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IManagedResourceGroupConfiguration Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerInternal.ManagedResourceGroupConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal)Property).ManagedResourceGroupConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal)Property).ManagedResourceGroupConfiguration = value ?? null /* model class */; } /// Internal Acessors for NetworkFabricId - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerInternal.NetworkFabricId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal)Property).NetworkFabricId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal)Property).NetworkFabricId = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerInternal.NetworkFabricId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal)Property).NetworkFabricId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal)Property).NetworkFabricId = value ?? null /* arrayOf */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.NetworkFabricControllerProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for TenantInternetGatewayId - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerInternal.TenantInternetGatewayId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal)Property).TenantInternetGatewayId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal)Property).TenantInternetGatewayId = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerInternal.TenantInternetGatewayId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal)Property).TenantInternetGatewayId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal)Property).TenantInternetGatewayId = value ?? null /* arrayOf */; } /// Internal Acessors for WorkloadManagementNetwork - bool? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerInternal.WorkloadManagementNetwork { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal)Property).WorkloadManagementNetwork; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal)Property).WorkloadManagementNetwork = value; } + bool? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerInternal.WorkloadManagementNetwork { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal)Property).WorkloadManagementNetwork; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal)Property).WorkloadManagementNetwork = value ?? default(bool); } /// Internal Acessors for WorkloadService - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IControllerServices Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerInternal.WorkloadService { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal)Property).WorkloadService; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal)Property).WorkloadService = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IControllerServices Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerInternal.WorkloadService { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal)Property).WorkloadService; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal)Property).WorkloadService = value ?? null /* model class */; } + + /// Internal Acessors for WorkloadServiceIpv4AddressSpace + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerInternal.WorkloadServiceIpv4AddressSpace { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal)Property).WorkloadServiceIpv4AddressSpace; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal)Property).WorkloadServiceIpv4AddressSpace = value ?? null /* arrayOf */; } + + /// Internal Acessors for WorkloadServiceIpv6AddressSpace + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerInternal.WorkloadServiceIpv6AddressSpace { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal)Property).WorkloadServiceIpv6AddressSpace; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal)Property).WorkloadServiceIpv6AddressSpace = value ?? null /* arrayOf */; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] @@ -146,31 +176,31 @@ public partial class NetworkFabricController : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] @@ -205,11 +235,11 @@ public partial class NetworkFabricController : /// is considered. The IPV4 address subnet is an optional attribute. /// [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inlined)] - public System.Collections.Generic.List WorkloadServiceIpv4AddressSpace { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal)Property).WorkloadServiceIpv4AddressSpace; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal)Property).WorkloadServiceIpv4AddressSpace = value ?? null /* arrayOf */; } + public System.Collections.Generic.List WorkloadServiceIpv4AddressSpace { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal)Property).WorkloadServiceIpv4AddressSpace; } /// The IPv6 is not supported right now. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inlined)] - public System.Collections.Generic.List WorkloadServiceIpv6AddressSpace { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal)Property).WorkloadServiceIpv6AddressSpace; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal)Property).WorkloadServiceIpv6AddressSpace = value ?? null /* arrayOf */; } + public System.Collections.Generic.List WorkloadServiceIpv6AddressSpace { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal)Property).WorkloadServiceIpv6AddressSpace; } /// Creates an new instance. public NetworkFabricController() diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkFabricControllerProperties.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkFabricControllerProperties.cs index 72ca904d1fb5..c05552058a0d 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkFabricControllerProperties.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkFabricControllerProperties.cs @@ -48,11 +48,11 @@ public partial class NetworkFabricControllerProperties : /// is considered. The IPV4 address subnet is an optional attribute. /// [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inlined)] - public System.Collections.Generic.List InfrastructureServiceIpv4AddressSpace { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IControllerServicesInternal)InfrastructureService).Ipv4AddressSpace; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IControllerServicesInternal)InfrastructureService).Ipv4AddressSpace = value ?? null /* arrayOf */; } + public System.Collections.Generic.List InfrastructureServiceIpv4AddressSpace { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IControllerServicesInternal)InfrastructureService).Ipv4AddressSpace; } /// The IPv6 is not supported right now. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inlined)] - public System.Collections.Generic.List InfrastructureServiceIpv6AddressSpace { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IControllerServicesInternal)InfrastructureService).Ipv6AddressSpace; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IControllerServicesInternal)InfrastructureService).Ipv6AddressSpace = value ?? null /* arrayOf */; } + public System.Collections.Generic.List InfrastructureServiceIpv6AddressSpace { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IControllerServicesInternal)InfrastructureService).Ipv6AddressSpace; } /// Backing field for property. private string _ipv4AddressSpace; @@ -96,6 +96,12 @@ public partial class NetworkFabricControllerProperties : /// Internal Acessors for InfrastructureService Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IControllerServices Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal.InfrastructureService { get => (this._infrastructureService = this._infrastructureService ?? new Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ControllerServices()); set { {_infrastructureService = value;} } } + /// Internal Acessors for InfrastructureServiceIpv4AddressSpace + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal.InfrastructureServiceIpv4AddressSpace { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IControllerServicesInternal)InfrastructureService).Ipv4AddressSpace; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IControllerServicesInternal)InfrastructureService).Ipv4AddressSpace = value ?? null /* arrayOf */; } + + /// Internal Acessors for InfrastructureServiceIpv6AddressSpace + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal.InfrastructureServiceIpv6AddressSpace { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IControllerServicesInternal)InfrastructureService).Ipv6AddressSpace; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IControllerServicesInternal)InfrastructureService).Ipv6AddressSpace = value ?? null /* arrayOf */; } + /// Internal Acessors for ManagedResourceGroupConfiguration Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IManagedResourceGroupConfiguration Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal.ManagedResourceGroupConfiguration { get => (this._managedResourceGroupConfiguration = this._managedResourceGroupConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ManagedResourceGroupConfiguration()); set { {_managedResourceGroupConfiguration = value;} } } @@ -114,6 +120,12 @@ public partial class NetworkFabricControllerProperties : /// Internal Acessors for WorkloadService Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IControllerServices Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal.WorkloadService { get => (this._workloadService = this._workloadService ?? new Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ControllerServices()); set { {_workloadService = value;} } } + /// Internal Acessors for WorkloadServiceIpv4AddressSpace + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal.WorkloadServiceIpv4AddressSpace { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IControllerServicesInternal)WorkloadService).Ipv4AddressSpace; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IControllerServicesInternal)WorkloadService).Ipv4AddressSpace = value ?? null /* arrayOf */; } + + /// Internal Acessors for WorkloadServiceIpv6AddressSpace + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricControllerPropertiesInternal.WorkloadServiceIpv6AddressSpace { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IControllerServicesInternal)WorkloadService).Ipv6AddressSpace; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IControllerServicesInternal)WorkloadService).Ipv6AddressSpace = value ?? null /* arrayOf */; } + /// Backing field for property. private System.Collections.Generic.List _networkFabricId; @@ -176,11 +188,11 @@ public partial class NetworkFabricControllerProperties : /// is considered. The IPV4 address subnet is an optional attribute. /// [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inlined)] - public System.Collections.Generic.List WorkloadServiceIpv4AddressSpace { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IControllerServicesInternal)WorkloadService).Ipv4AddressSpace; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IControllerServicesInternal)WorkloadService).Ipv4AddressSpace = value ?? null /* arrayOf */; } + public System.Collections.Generic.List WorkloadServiceIpv4AddressSpace { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IControllerServicesInternal)WorkloadService).Ipv4AddressSpace; } /// The IPv6 is not supported right now. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inlined)] - public System.Collections.Generic.List WorkloadServiceIpv6AddressSpace { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IControllerServicesInternal)WorkloadService).Ipv6AddressSpace; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IControllerServicesInternal)WorkloadService).Ipv6AddressSpace = value ?? null /* arrayOf */; } + public System.Collections.Generic.List WorkloadServiceIpv6AddressSpace { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IControllerServicesInternal)WorkloadService).Ipv6AddressSpace; } /// Creates an new instance. public NetworkFabricControllerProperties() diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkFabricPatch.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkFabricPatch.cs index 28451e087766..44263b96a2b8 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkFabricPatch.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkFabricPatch.cs @@ -43,7 +43,7 @@ public partial class NetworkFabricPatch : Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPatchProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPatchInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.NetworkFabricPatchProperties()); set { {_property = value;} } } /// Internal Acessors for TerminalServerConfiguration - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPatchablePropertiesTerminalServerConfiguration Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPatchInternal.TerminalServerConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPatchablePropertiesInternal)Property).TerminalServerConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPatchablePropertiesInternal)Property).TerminalServerConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPatchablePropertiesTerminalServerConfiguration Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPatchInternal.TerminalServerConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPatchablePropertiesInternal)Property).TerminalServerConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPatchablePropertiesInternal)Property).TerminalServerConfiguration = value ?? null /* model class */; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPatchProperties _property; diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkFabricPatchProperties.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkFabricPatchProperties.cs index 8877244faeae..bfdd5309e523 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkFabricPatchProperties.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkFabricPatchProperties.cs @@ -46,7 +46,7 @@ public partial class NetworkFabricPatchProperties : public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IManagementNetworkConfigurationPatchableProperties ManagementNetworkConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPatchablePropertiesInternal)__networkFabricPatchableProperties).ManagementNetworkConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPatchablePropertiesInternal)__networkFabricPatchableProperties).ManagementNetworkConfiguration = value ?? null /* model class */; } /// Internal Acessors for TerminalServerConfiguration - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPatchablePropertiesTerminalServerConfiguration Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPatchablePropertiesInternal.TerminalServerConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPatchablePropertiesInternal)__networkFabricPatchableProperties).TerminalServerConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPatchablePropertiesInternal)__networkFabricPatchableProperties).TerminalServerConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPatchablePropertiesTerminalServerConfiguration Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPatchablePropertiesInternal.TerminalServerConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPatchablePropertiesInternal)__networkFabricPatchableProperties).TerminalServerConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricPatchablePropertiesInternal)__networkFabricPatchableProperties).TerminalServerConfiguration = value ?? null /* model class */; } /// Number of compute racks associated to Network Fabric. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkFabricProperties.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkFabricProperties.cs index db639e7d4e6e..f6e15941531b 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkFabricProperties.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkFabricProperties.cs @@ -300,7 +300,7 @@ public partial interface INetworkFabricProperties : Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IManagementNetworkConfigurationProperties ManagementNetworkConfiguration { get; set; } /// Azure resource ID for the NetworkFabricController the NetworkFabric belongs. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -314,7 +314,7 @@ public partial interface INetworkFabricProperties : /// racks can be added to the Network Fabric. The SKU determines whether it is a single / multi rack Network Fabric. /// [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkFabricSku.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkFabricSku.cs index f4c34ac18928..747a2ab09f88 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkFabricSku.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkFabricSku.cs @@ -41,31 +41,49 @@ public partial class NetworkFabricSku : public int? MaximumServerCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricSkuPropertiesInternal)Property).MaximumServerCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricSkuPropertiesInternal)Property).MaximumServerCount = value ?? default(int); } /// Internal Acessors for Detail - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricSkuInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricSkuPropertiesInternal)Property).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricSkuPropertiesInternal)Property).Detail = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricSkuInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricSkuPropertiesInternal)Property).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricSkuPropertiesInternal)Property).Detail = value ?? null; } /// Internal Acessors for PropertiesType - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricSkuInternal.PropertiesType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricSkuPropertiesInternal)Property).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricSkuPropertiesInternal)Property).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricSkuInternal.PropertiesType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricSkuPropertiesInternal)Property).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricSkuPropertiesInternal)Property).Type = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricSkuProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricSkuInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.NetworkFabricSkuProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricSkuInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricSkuPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricSkuPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricSkuInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricSkuPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricSkuPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for SupportedVersion - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricSkuInternal.SupportedVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricSkuPropertiesInternal)Property).SupportedVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricSkuPropertiesInternal)Property).SupportedVersion = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricSkuInternal.SupportedVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricSkuPropertiesInternal)Property).SupportedVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricSkuPropertiesInternal)Property).SupportedVersion = value ?? null /* arrayOf */; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] @@ -98,31 +116,31 @@ public partial class NetworkFabricSku : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkInterface.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkInterface.cs index 72f831c30899..d1fd8abc2329 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkInterface.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkInterface.cs @@ -50,40 +50,58 @@ public partial class NetworkInterface : public string Ipv6Address { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkInterfacePropertiesInternal)Property).Ipv6Address; } /// Internal Acessors for AdministrativeState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkInterfaceInternal.AdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkInterfacePropertiesInternal)Property).AdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkInterfacePropertiesInternal)Property).AdministrativeState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkInterfaceInternal.AdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkInterfacePropertiesInternal)Property).AdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkInterfacePropertiesInternal)Property).AdministrativeState = value ?? null; } /// Internal Acessors for ConnectedTo - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkInterfaceInternal.ConnectedTo { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkInterfacePropertiesInternal)Property).ConnectedTo; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkInterfacePropertiesInternal)Property).ConnectedTo = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkInterfaceInternal.ConnectedTo { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkInterfacePropertiesInternal)Property).ConnectedTo; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkInterfacePropertiesInternal)Property).ConnectedTo = value ?? null; } /// Internal Acessors for InterfaceType - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkInterfaceInternal.InterfaceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkInterfacePropertiesInternal)Property).InterfaceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkInterfacePropertiesInternal)Property).InterfaceType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkInterfaceInternal.InterfaceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkInterfacePropertiesInternal)Property).InterfaceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkInterfacePropertiesInternal)Property).InterfaceType = value ?? null; } /// Internal Acessors for Ipv4Address - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkInterfaceInternal.Ipv4Address { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkInterfacePropertiesInternal)Property).Ipv4Address; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkInterfacePropertiesInternal)Property).Ipv4Address = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkInterfaceInternal.Ipv4Address { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkInterfacePropertiesInternal)Property).Ipv4Address; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkInterfacePropertiesInternal)Property).Ipv4Address = value ?? null; } /// Internal Acessors for Ipv6Address - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkInterfaceInternal.Ipv6Address { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkInterfacePropertiesInternal)Property).Ipv6Address; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkInterfacePropertiesInternal)Property).Ipv6Address = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkInterfaceInternal.Ipv6Address { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkInterfacePropertiesInternal)Property).Ipv6Address; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkInterfacePropertiesInternal)Property).Ipv6Address = value ?? null; } /// Internal Acessors for PhysicalIdentifier - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkInterfaceInternal.PhysicalIdentifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkInterfacePropertiesInternal)Property).PhysicalIdentifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkInterfacePropertiesInternal)Property).PhysicalIdentifier = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkInterfaceInternal.PhysicalIdentifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkInterfacePropertiesInternal)Property).PhysicalIdentifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkInterfacePropertiesInternal)Property).PhysicalIdentifier = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkInterfaceProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkInterfaceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.NetworkInterfaceProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkInterfaceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkInterfacePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkInterfacePropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkInterfaceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkInterfacePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkInterfacePropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] @@ -112,31 +130,31 @@ public partial class NetworkInterface : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkPacketBroker.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkPacketBroker.cs index 588a9b62dbec..11fec06b0344 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkPacketBroker.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkPacketBroker.cs @@ -27,37 +27,55 @@ public partial class NetworkPacketBroker : /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location = value ; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } /// Internal Acessors for NeighborGroupId - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkPacketBrokerInternal.NeighborGroupId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkPacketBrokerPropertiesInternal)Property).NeighborGroupId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkPacketBrokerPropertiesInternal)Property).NeighborGroupId = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkPacketBrokerInternal.NeighborGroupId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkPacketBrokerPropertiesInternal)Property).NeighborGroupId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkPacketBrokerPropertiesInternal)Property).NeighborGroupId = value ?? null /* arrayOf */; } /// Internal Acessors for NetworkDeviceId - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkPacketBrokerInternal.NetworkDeviceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkPacketBrokerPropertiesInternal)Property).NetworkDeviceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkPacketBrokerPropertiesInternal)Property).NetworkDeviceId = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkPacketBrokerInternal.NetworkDeviceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkPacketBrokerPropertiesInternal)Property).NetworkDeviceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkPacketBrokerPropertiesInternal)Property).NetworkDeviceId = value ?? null /* arrayOf */; } /// Internal Acessors for NetworkTapId - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkPacketBrokerInternal.NetworkTapId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkPacketBrokerPropertiesInternal)Property).NetworkTapId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkPacketBrokerPropertiesInternal)Property).NetworkTapId = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkPacketBrokerInternal.NetworkTapId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkPacketBrokerPropertiesInternal)Property).NetworkTapId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkPacketBrokerPropertiesInternal)Property).NetworkTapId = value ?? null /* arrayOf */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkPacketBrokerProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkPacketBrokerInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.NetworkPacketBrokerProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkPacketBrokerInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkPacketBrokerPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkPacketBrokerPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkPacketBrokerInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkPacketBrokerPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkPacketBrokerPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for SourceInterfaceId - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkPacketBrokerInternal.SourceInterfaceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkPacketBrokerPropertiesInternal)Property).SourceInterfaceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkPacketBrokerPropertiesInternal)Property).SourceInterfaceId = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkPacketBrokerInternal.SourceInterfaceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkPacketBrokerPropertiesInternal)Property).SourceInterfaceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkPacketBrokerPropertiesInternal)Property).SourceInterfaceId = value ?? null /* arrayOf */; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] @@ -73,7 +91,7 @@ public partial class NetworkPacketBroker : /// ARM resource ID of the Network Fabric. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inlined)] - public string NetworkFabricId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkPacketBrokerPropertiesInternal)Property).NetworkFabricId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkPacketBrokerPropertiesInternal)Property).NetworkFabricId = value ; } + public string NetworkFabricId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkPacketBrokerPropertiesInternal)Property).NetworkFabricId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkPacketBrokerPropertiesInternal)Property).NetworkFabricId = value ?? null; } /// List of network Tap IDs configured on NPB. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inlined)] @@ -104,31 +122,31 @@ public partial class NetworkPacketBroker : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] @@ -187,7 +205,7 @@ public partial interface INetworkPacketBroker : System.Collections.Generic.List NetworkDeviceId { get; } /// ARM resource ID of the Network Fabric. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkPacketBrokerProperties.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkPacketBrokerProperties.cs index 1d47a54f7199..80905833fd5f 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkPacketBrokerProperties.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkPacketBrokerProperties.cs @@ -106,7 +106,7 @@ public partial interface INetworkPacketBrokerProperties : System.Collections.Generic.List NetworkDeviceId { get; } /// ARM resource ID of the Network Fabric. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkRack.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkRack.cs index 16804d75ffa1..78f4d6360813 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkRack.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkRack.cs @@ -31,28 +31,46 @@ public partial class NetworkRack : /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location = value ; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } /// Internal Acessors for NetworkDevice - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkRackInternal.NetworkDevice { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkRackPropertiesInternal)Property).NetworkDevice; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkRackPropertiesInternal)Property).NetworkDevice = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkRackInternal.NetworkDevice { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkRackPropertiesInternal)Property).NetworkDevice; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkRackPropertiesInternal)Property).NetworkDevice = value ?? null /* arrayOf */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkRackProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkRackInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.NetworkRackProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkRackInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkRackPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkRackPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkRackInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkRackPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkRackPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] @@ -89,31 +107,31 @@ public partial class NetworkRack : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkTap.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkTap.cs index f6057f90aff8..c484eb544970 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkTap.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkTap.cs @@ -43,34 +43,52 @@ public partial class NetworkTap : /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location = value ; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } /// Internal Acessors for AdministrativeState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapInternal.AdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapPropertiesInternal)Property).AdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapPropertiesInternal)Property).AdministrativeState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapInternal.AdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapPropertiesInternal)Property).AdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapPropertiesInternal)Property).AdministrativeState = value ?? null; } /// Internal Acessors for ConfigurationState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapInternal.ConfigurationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapPropertiesInternal)Property).ConfigurationState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapPropertiesInternal)Property).ConfigurationState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapInternal.ConfigurationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapPropertiesInternal)Property).ConfigurationState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapPropertiesInternal)Property).ConfigurationState = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.NetworkTapProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for SourceTapRuleId - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapInternal.SourceTapRuleId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapPropertiesInternal)Property).SourceTapRuleId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapPropertiesInternal)Property).SourceTapRuleId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapInternal.SourceTapRuleId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapPropertiesInternal)Property).SourceTapRuleId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapPropertiesInternal)Property).SourceTapRuleId = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] @@ -78,7 +96,7 @@ public partial class NetworkTap : /// ARM resource ID of the Network Packet Broker. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inlined)] - public string NetworkPacketBrokerId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapPropertiesInternal)Property).NetworkPacketBrokerId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapPropertiesInternal)Property).NetworkPacketBrokerId = value ; } + public string NetworkPacketBrokerId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapPropertiesInternal)Property).NetworkPacketBrokerId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapPropertiesInternal)Property).NetworkPacketBrokerId = value ?? null; } /// Polling type. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inlined)] @@ -110,31 +128,31 @@ public partial class NetworkTap : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] @@ -217,7 +235,7 @@ public partial interface INetworkTap : System.Collections.Generic.List Destination { get; set; } /// ARM resource ID of the Network Packet Broker. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkTapPatchableParametersDestinationsItem.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkTapPatchableParametersDestinationsItem.cs index d67e472e02d0..219e3102d372 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkTapPatchableParametersDestinationsItem.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkTapPatchableParametersDestinationsItem.cs @@ -44,7 +44,7 @@ public partial class NetworkTapPatchableParametersDestinationsItem : public System.Collections.Generic.List IsolationDomainPropertyNeighborGroupId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IDestinationPropertiesInternal)__destinationProperties).IsolationDomainPropertyNeighborGroupId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IDestinationPropertiesInternal)__destinationProperties).IsolationDomainPropertyNeighborGroupId = value ?? null /* arrayOf */; } /// Internal Acessors for IsolationDomainProperty - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIsolationDomainProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IDestinationPropertiesInternal.IsolationDomainProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IDestinationPropertiesInternal)__destinationProperties).IsolationDomainProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IDestinationPropertiesInternal)__destinationProperties).IsolationDomainProperty = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIsolationDomainProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IDestinationPropertiesInternal.IsolationDomainProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IDestinationPropertiesInternal)__destinationProperties).IsolationDomainProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IDestinationPropertiesInternal)__destinationProperties).IsolationDomainProperty = value ?? null /* model class */; } /// Destination name. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkTapProperties.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkTapProperties.cs index 9a02a11d6986..7a0bd88a7ba6 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkTapProperties.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkTapProperties.cs @@ -147,7 +147,7 @@ public partial interface INetworkTapProperties : System.Collections.Generic.List Destination { get; set; } /// ARM resource ID of the Network Packet Broker. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkTapPropertiesDestinationsItem.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkTapPropertiesDestinationsItem.cs index 1a25fa8c9180..18e5f58df3d4 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkTapPropertiesDestinationsItem.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkTapPropertiesDestinationsItem.cs @@ -44,7 +44,7 @@ public partial class NetworkTapPropertiesDestinationsItem : public System.Collections.Generic.List IsolationDomainPropertyNeighborGroupId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IDestinationPropertiesInternal)__destinationProperties).IsolationDomainPropertyNeighborGroupId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IDestinationPropertiesInternal)__destinationProperties).IsolationDomainPropertyNeighborGroupId = value ?? null /* arrayOf */; } /// Internal Acessors for IsolationDomainProperty - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIsolationDomainProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IDestinationPropertiesInternal.IsolationDomainProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IDestinationPropertiesInternal)__destinationProperties).IsolationDomainProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IDestinationPropertiesInternal)__destinationProperties).IsolationDomainProperty = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIsolationDomainProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IDestinationPropertiesInternal.IsolationDomainProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IDestinationPropertiesInternal)__destinationProperties).IsolationDomainProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IDestinationPropertiesInternal)__destinationProperties).IsolationDomainProperty = value ?? null /* model class */; } /// Destination name. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkTapRule.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkTapRule.cs index ea152c06fc79..3f6a1d5ced8c 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkTapRule.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkTapRule.cs @@ -51,41 +51,59 @@ public partial class NetworkTapRule : /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location = value ; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } /// List of match configurations. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inlined)] public System.Collections.Generic.List MatchConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapRulePatchablePropertiesInternal)Property).MatchConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapRulePatchablePropertiesInternal)Property).MatchConfiguration = value ?? null /* arrayOf */; } /// Internal Acessors for AdministrativeState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapRuleInternal.AdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapRulePropertiesInternal)Property).AdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapRulePropertiesInternal)Property).AdministrativeState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapRuleInternal.AdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapRulePropertiesInternal)Property).AdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapRulePropertiesInternal)Property).AdministrativeState = value ?? null; } /// Internal Acessors for ConfigurationState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapRuleInternal.ConfigurationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapRulePropertiesInternal)Property).ConfigurationState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapRulePropertiesInternal)Property).ConfigurationState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapRuleInternal.ConfigurationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapRulePropertiesInternal)Property).ConfigurationState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapRulePropertiesInternal)Property).ConfigurationState = value ?? null; } /// Internal Acessors for LastSyncedTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapRuleInternal.LastSyncedTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapRulePropertiesInternal)Property).LastSyncedTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapRulePropertiesInternal)Property).LastSyncedTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapRuleInternal.LastSyncedTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapRulePropertiesInternal)Property).LastSyncedTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapRulePropertiesInternal)Property).LastSyncedTime = value ?? default(global::System.DateTime); } /// Internal Acessors for NetworkTapId - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapRuleInternal.NetworkTapId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapRulePropertiesInternal)Property).NetworkTapId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapRulePropertiesInternal)Property).NetworkTapId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapRuleInternal.NetworkTapId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapRulePropertiesInternal)Property).NetworkTapId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapRulePropertiesInternal)Property).NetworkTapId = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapRuleProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapRuleInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.NetworkTapRuleProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapRuleInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapRulePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapRulePropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapRuleInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapRulePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapRulePropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] @@ -118,31 +136,31 @@ public partial class NetworkTapRule : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkTapRuleMatchCondition.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkTapRuleMatchCondition.cs index 25d556a7c74c..3e59c0d63e35 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkTapRuleMatchCondition.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkTapRuleMatchCondition.cs @@ -47,10 +47,10 @@ public partial class NetworkTapRuleMatchCondition : public string IPConditionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ICommonMatchConditionsInternal)__commonMatchConditions).IPConditionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ICommonMatchConditionsInternal)__commonMatchConditions).IPConditionType = value ?? null; } /// Internal Acessors for IPCondition - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPMatchCondition Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ICommonMatchConditionsInternal.IPCondition { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ICommonMatchConditionsInternal)__commonMatchConditions).IPCondition; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ICommonMatchConditionsInternal)__commonMatchConditions).IPCondition = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPMatchCondition Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ICommonMatchConditionsInternal.IPCondition { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ICommonMatchConditionsInternal)__commonMatchConditions).IPCondition; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ICommonMatchConditionsInternal)__commonMatchConditions).IPCondition = value ?? null /* model class */; } /// Internal Acessors for VlanMatchCondition - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVlanMatchCondition Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ICommonMatchConditionsInternal.VlanMatchCondition { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ICommonMatchConditionsInternal)__commonMatchConditions).VlanMatchCondition; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ICommonMatchConditionsInternal)__commonMatchConditions).VlanMatchCondition = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVlanMatchCondition Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ICommonMatchConditionsInternal.VlanMatchCondition { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ICommonMatchConditionsInternal)__commonMatchConditions).VlanMatchCondition; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ICommonMatchConditionsInternal)__commonMatchConditions).VlanMatchCondition = value ?? null /* model class */; } /// Internal Acessors for PortCondition Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IPortCondition Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapRuleMatchConditionInternal.PortCondition { get => (this._portCondition = this._portCondition ?? new Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.PortCondition()); set { {_portCondition = value;} } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkToNetworkInterconnect.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkToNetworkInterconnect.cs index cc79ace97374..4b80e4c1dc9a 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkToNetworkInterconnect.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkToNetworkInterconnect.cs @@ -58,28 +58,46 @@ public partial class NetworkToNetworkInterconnect : public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ILayer2Configuration Layer2Configuration { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkToNetworkInterconnectPropertiesInternal)Property).Layer2Configuration; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkToNetworkInterconnectPropertiesInternal)Property).Layer2Configuration = value ?? null /* model class */; } /// Internal Acessors for AdministrativeState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkToNetworkInterconnectInternal.AdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkToNetworkInterconnectPropertiesInternal)Property).AdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkToNetworkInterconnectPropertiesInternal)Property).AdministrativeState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkToNetworkInterconnectInternal.AdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkToNetworkInterconnectPropertiesInternal)Property).AdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkToNetworkInterconnectPropertiesInternal)Property).AdministrativeState = value ?? null; } /// Internal Acessors for ConfigurationState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkToNetworkInterconnectInternal.ConfigurationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkToNetworkInterconnectPropertiesInternal)Property).ConfigurationState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkToNetworkInterconnectPropertiesInternal)Property).ConfigurationState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkToNetworkInterconnectInternal.ConfigurationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkToNetworkInterconnectPropertiesInternal)Property).ConfigurationState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkToNetworkInterconnectPropertiesInternal)Property).ConfigurationState = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkToNetworkInterconnectProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkToNetworkInterconnectInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.NetworkToNetworkInterconnectProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkToNetworkInterconnectInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkToNetworkInterconnectPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkToNetworkInterconnectPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkToNetworkInterconnectInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkToNetworkInterconnectPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkToNetworkInterconnectPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] @@ -116,31 +134,31 @@ public partial class NetworkToNetworkInterconnect : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkToNetworkInterconnectPatch.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkToNetworkInterconnectPatch.cs index 1a282a305bd7..cdfbaef2a7fa 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkToNetworkInterconnectPatch.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkToNetworkInterconnectPatch.cs @@ -46,25 +46,43 @@ public partial class NetworkToNetworkInterconnectPatch : public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ILayer2Configuration Layer2Configuration { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkToNetworkInterconnectPatchablePropertiesInternal)Property).Layer2Configuration; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkToNetworkInterconnectPatchablePropertiesInternal)Property).Layer2Configuration = value ?? null /* model class */; } /// Internal Acessors for OptionBLayer3Configuration - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionBLayer3Configuration Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkToNetworkInterconnectPatchInternal.OptionBLayer3Configuration { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkToNetworkInterconnectPatchablePropertiesInternal)Property).OptionBLayer3Configuration; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkToNetworkInterconnectPatchablePropertiesInternal)Property).OptionBLayer3Configuration = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionBLayer3Configuration Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkToNetworkInterconnectPatchInternal.OptionBLayer3Configuration { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkToNetworkInterconnectPatchablePropertiesInternal)Property).OptionBLayer3Configuration; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkToNetworkInterconnectPatchablePropertiesInternal)Property).OptionBLayer3Configuration = value ?? null /* model class */; } /// Internal Acessors for OptionBLayer3ConfigurationFabricAsn - long? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkToNetworkInterconnectPatchInternal.OptionBLayer3ConfigurationFabricAsn { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkToNetworkInterconnectPatchablePropertiesInternal)Property).OptionBLayer3ConfigurationFabricAsn; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkToNetworkInterconnectPatchablePropertiesInternal)Property).OptionBLayer3ConfigurationFabricAsn = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkToNetworkInterconnectPatchInternal.OptionBLayer3ConfigurationFabricAsn { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkToNetworkInterconnectPatchablePropertiesInternal)Property).OptionBLayer3ConfigurationFabricAsn; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkToNetworkInterconnectPatchablePropertiesInternal)Property).OptionBLayer3ConfigurationFabricAsn = value ?? default(long); } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkToNetworkInterconnectPatchableProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkToNetworkInterconnectPatchInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.NetworkToNetworkInterconnectPatchableProperties()); set { {_property = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] @@ -113,31 +131,31 @@ public partial class NetworkToNetworkInterconnectPatch : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkToNetworkInterconnectPatchableProperties.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkToNetworkInterconnectPatchableProperties.cs index e7709c25f9aa..54f41017b22a 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkToNetworkInterconnectPatchableProperties.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkToNetworkInterconnectPatchableProperties.cs @@ -52,7 +52,7 @@ public partial class NetworkToNetworkInterconnectPatchableProperties : Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionBLayer3Configuration Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkToNetworkInterconnectPatchablePropertiesInternal.OptionBLayer3Configuration { get => (this._optionBLayer3Configuration = this._optionBLayer3Configuration ?? new Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.OptionBLayer3Configuration()); set { {_optionBLayer3Configuration = value;} } } /// Internal Acessors for OptionBLayer3ConfigurationFabricAsn - long? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkToNetworkInterconnectPatchablePropertiesInternal.OptionBLayer3ConfigurationFabricAsn { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionBLayer3ConfigurationInternal)OptionBLayer3Configuration).FabricAsn; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionBLayer3ConfigurationInternal)OptionBLayer3Configuration).FabricAsn = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkToNetworkInterconnectPatchablePropertiesInternal.OptionBLayer3ConfigurationFabricAsn { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionBLayer3ConfigurationInternal)OptionBLayer3Configuration).FabricAsn; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionBLayer3ConfigurationInternal)OptionBLayer3Configuration).FabricAsn = value ?? default(long); } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INpbStaticRouteConfiguration _npbStaticRouteConfiguration; diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkToNetworkInterconnectPropertiesOptionBLayer3Configuration.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkToNetworkInterconnectPropertiesOptionBLayer3Configuration.cs index 25dc3810810e..18cf55a1074f 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkToNetworkInterconnectPropertiesOptionBLayer3Configuration.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/NetworkToNetworkInterconnectPropertiesOptionBLayer3Configuration.cs @@ -24,7 +24,7 @@ public partial class NetworkToNetworkInterconnectPropertiesOptionBLayer3Configur public long? FabricAsn { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionBLayer3ConfigurationInternal)__optionBLayer3Configuration).FabricAsn; } /// Internal Acessors for FabricAsn - long? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionBLayer3ConfigurationInternal.FabricAsn { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionBLayer3ConfigurationInternal)__optionBLayer3Configuration).FabricAsn; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionBLayer3ConfigurationInternal)__optionBLayer3Configuration).FabricAsn = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionBLayer3ConfigurationInternal.FabricAsn { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionBLayer3ConfigurationInternal)__optionBLayer3Configuration).FabricAsn; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionBLayer3ConfigurationInternal)__optionBLayer3Configuration).FabricAsn = value ?? default(long); } /// ASN of PE devices for CE/PE connectivity.Example : 28 [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/Operation.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/Operation.cs index acfe877a7b3d..f6d56122cc96 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/Operation.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/Operation.cs @@ -73,16 +73,16 @@ public partial class Operation : Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOperationDisplay Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOperationInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.OperationDisplay()); set { {_display = value;} } } /// Internal Acessors for DisplayDescription - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOperationDisplayInternal)Display).Description = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOperationDisplayInternal)Display).Description = value ?? null; } /// Internal Acessors for DisplayOperation - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOperationDisplayInternal)Display).Operation = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOperationDisplayInternal)Display).Operation = value ?? null; } /// Internal Acessors for DisplayProvider - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOperationDisplayInternal)Display).Provider = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOperationDisplayInternal)Display).Provider = value ?? null; } /// Internal Acessors for DisplayResource - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOperationDisplayInternal)Display).Resource = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOperationDisplayInternal)Display).Resource = value ?? null; } /// Internal Acessors for IsDataAction bool? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOperationInternal.IsDataAction { get => this._isDataAction; set { {_isDataAction = value;} } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/OptionAProperties.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/OptionAProperties.cs index ed3219772078..66593e686007 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/OptionAProperties.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/OptionAProperties.cs @@ -36,7 +36,7 @@ public partial class OptionAProperties : Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBfdConfiguration Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionAPropertiesInternal.BfdConfiguration { get => (this._bfdConfiguration = this._bfdConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.BfdConfiguration()); set { {_bfdConfiguration = value;} } } /// Internal Acessors for BfdConfigurationAdministrativeState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionAPropertiesInternal.BfdConfigurationAdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBfdConfigurationInternal)BfdConfiguration).AdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBfdConfigurationInternal)BfdConfiguration).AdministrativeState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionAPropertiesInternal.BfdConfigurationAdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBfdConfigurationInternal)BfdConfiguration).AdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBfdConfigurationInternal)BfdConfiguration).AdministrativeState = value ?? null; } /// Backing field for property. private int? _mtu; diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/ProxyResource.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/ProxyResource.cs index 348f6cbef4c4..9f49f067cdac 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/ProxyResource.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/ProxyResource.cs @@ -28,16 +28,34 @@ public partial class ProxyResource : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).Id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] @@ -47,31 +65,31 @@ public partial class ProxyResource : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/Resource.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/Resource.cs index 5fc4ec89b3a6..338d1b2c558e 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/Resource.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/Resource.cs @@ -33,6 +33,24 @@ public partial class Resource : /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Type { get => this._type; set { {_type = value;} } } @@ -54,27 +72,27 @@ public partial class Resource : /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// Backing field for property. private string _type; diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/RoutePolicy.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/RoutePolicy.cs index 161c88b9c4a8..4ec642c0e1d9 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/RoutePolicy.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/RoutePolicy.cs @@ -51,31 +51,49 @@ public partial class RoutePolicy : /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location = value ; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// Internal Acessors for AdministrativeState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IRoutePolicyInternal.AdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IRoutePolicyPropertiesInternal)Property).AdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IRoutePolicyPropertiesInternal)Property).AdministrativeState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IRoutePolicyInternal.AdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IRoutePolicyPropertiesInternal)Property).AdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IRoutePolicyPropertiesInternal)Property).AdministrativeState = value ?? null; } /// Internal Acessors for ConfigurationState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IRoutePolicyInternal.ConfigurationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IRoutePolicyPropertiesInternal)Property).ConfigurationState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IRoutePolicyPropertiesInternal)Property).ConfigurationState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IRoutePolicyInternal.ConfigurationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IRoutePolicyPropertiesInternal)Property).ConfigurationState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IRoutePolicyPropertiesInternal)Property).ConfigurationState = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IRoutePolicyProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IRoutePolicyInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.RoutePolicyProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IRoutePolicyInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IRoutePolicyPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IRoutePolicyPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IRoutePolicyInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IRoutePolicyPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IRoutePolicyPropertiesInternal)Property).ProvisioningState = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] @@ -108,31 +126,31 @@ public partial class RoutePolicy : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/RoutePolicyStatementProperties.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/RoutePolicyStatementProperties.cs index 57f1a29c93e2..3b7a565450e5 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/RoutePolicyStatementProperties.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/RoutePolicyStatementProperties.cs @@ -89,31 +89,31 @@ public partial class RoutePolicyStatementProperties : Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IStatementActionProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IRoutePolicyStatementPropertiesInternal.Action { get => (this._action = this._action ?? new Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.StatementActionProperties()); set { {_action = value;} } } /// Internal Acessors for ActionIPCommunityProperty - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IActionIPCommunityProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IRoutePolicyStatementPropertiesInternal.ActionIPCommunityProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IStatementActionPropertiesInternal)Action).IPCommunityProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IStatementActionPropertiesInternal)Action).IPCommunityProperty = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IActionIPCommunityProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IRoutePolicyStatementPropertiesInternal.ActionIPCommunityProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IStatementActionPropertiesInternal)Action).IPCommunityProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IStatementActionPropertiesInternal)Action).IPCommunityProperty = value ?? null /* model class */; } /// Internal Acessors for ActionIPExtendedCommunityProperty - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IActionIPExtendedCommunityProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IRoutePolicyStatementPropertiesInternal.ActionIPExtendedCommunityProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IStatementActionPropertiesInternal)Action).IPExtendedCommunityProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IStatementActionPropertiesInternal)Action).IPExtendedCommunityProperty = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IActionIPExtendedCommunityProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IRoutePolicyStatementPropertiesInternal.ActionIPExtendedCommunityProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IStatementActionPropertiesInternal)Action).IPExtendedCommunityProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IStatementActionPropertiesInternal)Action).IPExtendedCommunityProperty = value ?? null /* model class */; } /// Internal Acessors for Condition Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IStatementConditionProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IRoutePolicyStatementPropertiesInternal.Condition { get => (this._condition = this._condition ?? new Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.StatementConditionProperties()); set { {_condition = value;} } } /// Internal Acessors for IPCommunityPropertyAdd - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityIdList Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IRoutePolicyStatementPropertiesInternal.IPCommunityPropertyAdd { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IStatementActionPropertiesInternal)Action).IPCommunityPropertyAdd; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IStatementActionPropertiesInternal)Action).IPCommunityPropertyAdd = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityIdList Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IRoutePolicyStatementPropertiesInternal.IPCommunityPropertyAdd { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IStatementActionPropertiesInternal)Action).IPCommunityPropertyAdd; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IStatementActionPropertiesInternal)Action).IPCommunityPropertyAdd = value ?? null /* model class */; } /// Internal Acessors for IPCommunityPropertyDelete - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityIdList Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IRoutePolicyStatementPropertiesInternal.IPCommunityPropertyDelete { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IStatementActionPropertiesInternal)Action).IPCommunityPropertyDelete; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IStatementActionPropertiesInternal)Action).IPCommunityPropertyDelete = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityIdList Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IRoutePolicyStatementPropertiesInternal.IPCommunityPropertyDelete { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IStatementActionPropertiesInternal)Action).IPCommunityPropertyDelete; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IStatementActionPropertiesInternal)Action).IPCommunityPropertyDelete = value ?? null /* model class */; } /// Internal Acessors for IPCommunityPropertySet - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityIdList Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IRoutePolicyStatementPropertiesInternal.IPCommunityPropertySet { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IStatementActionPropertiesInternal)Action).IPCommunityPropertySet; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IStatementActionPropertiesInternal)Action).IPCommunityPropertySet = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityIdList Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IRoutePolicyStatementPropertiesInternal.IPCommunityPropertySet { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IStatementActionPropertiesInternal)Action).IPCommunityPropertySet; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IStatementActionPropertiesInternal)Action).IPCommunityPropertySet = value ?? null /* model class */; } /// Internal Acessors for IPExtendedCommunityPropertyAdd - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityIdList Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IRoutePolicyStatementPropertiesInternal.IPExtendedCommunityPropertyAdd { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IStatementActionPropertiesInternal)Action).IPExtendedCommunityPropertyAdd; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IStatementActionPropertiesInternal)Action).IPExtendedCommunityPropertyAdd = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityIdList Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IRoutePolicyStatementPropertiesInternal.IPExtendedCommunityPropertyAdd { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IStatementActionPropertiesInternal)Action).IPExtendedCommunityPropertyAdd; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IStatementActionPropertiesInternal)Action).IPExtendedCommunityPropertyAdd = value ?? null /* model class */; } /// Internal Acessors for IPExtendedCommunityPropertyDelete - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityIdList Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IRoutePolicyStatementPropertiesInternal.IPExtendedCommunityPropertyDelete { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IStatementActionPropertiesInternal)Action).IPExtendedCommunityPropertyDelete; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IStatementActionPropertiesInternal)Action).IPExtendedCommunityPropertyDelete = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityIdList Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IRoutePolicyStatementPropertiesInternal.IPExtendedCommunityPropertyDelete { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IStatementActionPropertiesInternal)Action).IPExtendedCommunityPropertyDelete; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IStatementActionPropertiesInternal)Action).IPExtendedCommunityPropertyDelete = value ?? null /* model class */; } /// Internal Acessors for IPExtendedCommunityPropertySet - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityIdList Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IRoutePolicyStatementPropertiesInternal.IPExtendedCommunityPropertySet { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IStatementActionPropertiesInternal)Action).IPExtendedCommunityPropertySet; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IStatementActionPropertiesInternal)Action).IPExtendedCommunityPropertySet = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityIdList Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IRoutePolicyStatementPropertiesInternal.IPExtendedCommunityPropertySet { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IStatementActionPropertiesInternal)Action).IPExtendedCommunityPropertySet; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IStatementActionPropertiesInternal)Action).IPExtendedCommunityPropertySet = value ?? null /* model class */; } /// Backing field for property. private long _sequenceNumber; diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/StatementActionProperties.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/StatementActionProperties.cs index 988763c315b6..aa91e52abdd8 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/StatementActionProperties.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/StatementActionProperties.cs @@ -69,25 +69,25 @@ public partial class StatementActionProperties : Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IActionIPCommunityProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IStatementActionPropertiesInternal.IPCommunityProperty { get => (this._iPCommunityProperty = this._iPCommunityProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ActionIPCommunityProperties()); set { {_iPCommunityProperty = value;} } } /// Internal Acessors for IPCommunityPropertyAdd - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityIdList Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IStatementActionPropertiesInternal.IPCommunityPropertyAdd { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityAddOperationPropertiesInternal)IPCommunityProperty).Add; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityAddOperationPropertiesInternal)IPCommunityProperty).Add = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityIdList Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IStatementActionPropertiesInternal.IPCommunityPropertyAdd { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityAddOperationPropertiesInternal)IPCommunityProperty).Add; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityAddOperationPropertiesInternal)IPCommunityProperty).Add = value ?? null /* model class */; } /// Internal Acessors for IPCommunityPropertyDelete - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityIdList Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IStatementActionPropertiesInternal.IPCommunityPropertyDelete { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityDeleteOperationPropertiesInternal)IPCommunityProperty).Delete; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityDeleteOperationPropertiesInternal)IPCommunityProperty).Delete = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityIdList Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IStatementActionPropertiesInternal.IPCommunityPropertyDelete { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityDeleteOperationPropertiesInternal)IPCommunityProperty).Delete; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityDeleteOperationPropertiesInternal)IPCommunityProperty).Delete = value ?? null /* model class */; } /// Internal Acessors for IPCommunityPropertySet - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityIdList Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IStatementActionPropertiesInternal.IPCommunityPropertySet { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunitySetOperationPropertiesInternal)IPCommunityProperty).Set; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunitySetOperationPropertiesInternal)IPCommunityProperty).Set = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunityIdList Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IStatementActionPropertiesInternal.IPCommunityPropertySet { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunitySetOperationPropertiesInternal)IPCommunityProperty).Set; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunitySetOperationPropertiesInternal)IPCommunityProperty).Set = value ?? null /* model class */; } /// Internal Acessors for IPExtendedCommunityProperty Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IActionIPExtendedCommunityProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IStatementActionPropertiesInternal.IPExtendedCommunityProperty { get => (this._iPExtendedCommunityProperty = this._iPExtendedCommunityProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ActionIPExtendedCommunityProperties()); set { {_iPExtendedCommunityProperty = value;} } } /// Internal Acessors for IPExtendedCommunityPropertyAdd - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityIdList Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IStatementActionPropertiesInternal.IPExtendedCommunityPropertyAdd { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityAddOperationPropertiesInternal)IPExtendedCommunityProperty).Add; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityAddOperationPropertiesInternal)IPExtendedCommunityProperty).Add = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityIdList Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IStatementActionPropertiesInternal.IPExtendedCommunityPropertyAdd { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityAddOperationPropertiesInternal)IPExtendedCommunityProperty).Add; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityAddOperationPropertiesInternal)IPExtendedCommunityProperty).Add = value ?? null /* model class */; } /// Internal Acessors for IPExtendedCommunityPropertyDelete - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityIdList Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IStatementActionPropertiesInternal.IPExtendedCommunityPropertyDelete { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityDeleteOperationPropertiesInternal)IPExtendedCommunityProperty).Delete; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityDeleteOperationPropertiesInternal)IPExtendedCommunityProperty).Delete = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityIdList Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IStatementActionPropertiesInternal.IPExtendedCommunityPropertyDelete { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityDeleteOperationPropertiesInternal)IPExtendedCommunityProperty).Delete; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityDeleteOperationPropertiesInternal)IPExtendedCommunityProperty).Delete = value ?? null /* model class */; } /// Internal Acessors for IPExtendedCommunityPropertySet - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityIdList Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IStatementActionPropertiesInternal.IPExtendedCommunityPropertySet { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunitySetOperationPropertiesInternal)IPExtendedCommunityProperty).Set; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunitySetOperationPropertiesInternal)IPExtendedCommunityProperty).Set = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunityIdList Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IStatementActionPropertiesInternal.IPExtendedCommunityPropertySet { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunitySetOperationPropertiesInternal)IPExtendedCommunityProperty).Set; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunitySetOperationPropertiesInternal)IPExtendedCommunityProperty).Set = value ?? null /* model class */; } /// Creates an new instance. public StatementActionProperties() diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/TrackedResource.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/TrackedResource.cs index 6854d0e4d63f..eb85f4f0e812 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/TrackedResource.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/TrackedResource.cs @@ -35,16 +35,34 @@ public partial class TrackedResource : public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] @@ -54,31 +72,31 @@ public partial class TrackedResource : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ITrackedResourceTags _tag; @@ -118,7 +136,7 @@ public partial interface ITrackedResource : { /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/ValidateConfigurationResponse.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/ValidateConfigurationResponse.cs index 038d8907a3e5..aa198df769ad 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/ValidateConfigurationResponse.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/ValidateConfigurationResponse.cs @@ -47,22 +47,22 @@ public partial class ValidateConfigurationResponse : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal.Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Error = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal.Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Error = value ?? null /* model class */; } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Message = value ?? null; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IErrorResponseInternal)__errorResponse).Target = value ?? null; } /// Internal Acessors for ConfigurationState string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IValidateConfigurationResponseInternal.ConfigurationState { get => this._configurationState; set { {_configurationState = value;} } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/VpnConfigurationPatchableProperties.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/VpnConfigurationPatchableProperties.cs index d2713b3b21b5..5409f5e09f16 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/VpnConfigurationPatchableProperties.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/VpnConfigurationPatchableProperties.cs @@ -17,16 +17,16 @@ public partial class VpnConfigurationPatchableProperties : Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPatchablePropertiesOptionAProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPatchablePropertiesInternal.OptionAProperty { get => (this._optionAProperty = this._optionAProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.VpnConfigurationPatchablePropertiesOptionAProperties()); set { {_optionAProperty = value;} } } /// Internal Acessors for OptionAPropertyBfdConfiguration - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBfdConfiguration Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPatchablePropertiesInternal.OptionAPropertyBfdConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionAPropertiesInternal)OptionAProperty).BfdConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionAPropertiesInternal)OptionAProperty).BfdConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBfdConfiguration Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPatchablePropertiesInternal.OptionAPropertyBfdConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionAPropertiesInternal)OptionAProperty).BfdConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionAPropertiesInternal)OptionAProperty).BfdConfiguration = value ?? null /* model class */; } /// Internal Acessors for OptionAPropertyBfdConfigurationAdministrativeState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPatchablePropertiesInternal.OptionAPropertyBfdConfigurationAdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionAPropertiesInternal)OptionAProperty).BfdConfigurationAdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionAPropertiesInternal)OptionAProperty).BfdConfigurationAdministrativeState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPatchablePropertiesInternal.OptionAPropertyBfdConfigurationAdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionAPropertiesInternal)OptionAProperty).BfdConfigurationAdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionAPropertiesInternal)OptionAProperty).BfdConfigurationAdministrativeState = value ?? null; } /// Internal Acessors for OptionBProperty Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionBProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPatchablePropertiesInternal.OptionBProperty { get => (this._optionBProperty = this._optionBProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.OptionBProperties()); set { {_optionBProperty = value;} } } /// Internal Acessors for OptionBPropertyRouteTarget - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IRouteTargetInformation Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPatchablePropertiesInternal.OptionBPropertyRouteTarget { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionBPropertiesInternal)OptionBProperty).RouteTarget; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionBPropertiesInternal)OptionBProperty).RouteTarget = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IRouteTargetInformation Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPatchablePropertiesInternal.OptionBPropertyRouteTarget { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionBPropertiesInternal)OptionBProperty).RouteTarget; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionBPropertiesInternal)OptionBProperty).RouteTarget = value ?? null /* model class */; } /// Backing field for property. private string _networkToNetworkInterconnectId; diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/VpnConfigurationPatchablePropertiesOptionAProperties.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/VpnConfigurationPatchablePropertiesOptionAProperties.cs index df5a5083c195..927af55a3f3d 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/VpnConfigurationPatchablePropertiesOptionAProperties.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/VpnConfigurationPatchablePropertiesOptionAProperties.cs @@ -42,10 +42,10 @@ public partial class VpnConfigurationPatchablePropertiesOptionAProperties : public int? BfdConfigurationMultiplier { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionAPropertiesInternal)__optionAProperties).BfdConfigurationMultiplier; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionAPropertiesInternal)__optionAProperties).BfdConfigurationMultiplier = value ?? default(int); } /// Internal Acessors for BfdConfiguration - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBfdConfiguration Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionAPropertiesInternal.BfdConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionAPropertiesInternal)__optionAProperties).BfdConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionAPropertiesInternal)__optionAProperties).BfdConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBfdConfiguration Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionAPropertiesInternal.BfdConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionAPropertiesInternal)__optionAProperties).BfdConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionAPropertiesInternal)__optionAProperties).BfdConfiguration = value ?? null /* model class */; } /// Internal Acessors for BfdConfigurationAdministrativeState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionAPropertiesInternal.BfdConfigurationAdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionAPropertiesInternal)__optionAProperties).BfdConfigurationAdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionAPropertiesInternal)__optionAProperties).BfdConfigurationAdministrativeState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionAPropertiesInternal.BfdConfigurationAdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionAPropertiesInternal)__optionAProperties).BfdConfigurationAdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionAPropertiesInternal)__optionAProperties).BfdConfigurationAdministrativeState = value ?? null; } /// MTU to use for option A peering. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/VpnConfigurationProperties.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/VpnConfigurationProperties.cs index 70879ebb0844..1b430197d889 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/VpnConfigurationProperties.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/VpnConfigurationProperties.cs @@ -27,16 +27,16 @@ public partial class VpnConfigurationProperties : Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesOptionAProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesInternal.OptionAProperty { get => (this._optionAProperty = this._optionAProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.VpnConfigurationPropertiesOptionAProperties()); set { {_optionAProperty = value;} } } /// Internal Acessors for OptionAPropertyBfdConfiguration - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBfdConfiguration Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesInternal.OptionAPropertyBfdConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionAPropertiesInternal)OptionAProperty).BfdConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionAPropertiesInternal)OptionAProperty).BfdConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBfdConfiguration Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesInternal.OptionAPropertyBfdConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionAPropertiesInternal)OptionAProperty).BfdConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionAPropertiesInternal)OptionAProperty).BfdConfiguration = value ?? null /* model class */; } /// Internal Acessors for OptionAPropertyBfdConfigurationAdministrativeState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesInternal.OptionAPropertyBfdConfigurationAdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionAPropertiesInternal)OptionAProperty).BfdConfigurationAdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionAPropertiesInternal)OptionAProperty).BfdConfigurationAdministrativeState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesInternal.OptionAPropertyBfdConfigurationAdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionAPropertiesInternal)OptionAProperty).BfdConfigurationAdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionAPropertiesInternal)OptionAProperty).BfdConfigurationAdministrativeState = value ?? null; } /// Internal Acessors for OptionBProperty Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionBProperties Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesInternal.OptionBProperty { get => (this._optionBProperty = this._optionBProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.OptionBProperties()); set { {_optionBProperty = value;} } } /// Internal Acessors for OptionBPropertyRouteTarget - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IRouteTargetInformation Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesInternal.OptionBPropertyRouteTarget { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionBPropertiesInternal)OptionBProperty).RouteTarget; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionBPropertiesInternal)OptionBProperty).RouteTarget = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IRouteTargetInformation Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IVpnConfigurationPropertiesInternal.OptionBPropertyRouteTarget { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionBPropertiesInternal)OptionBProperty).RouteTarget; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionBPropertiesInternal)OptionBProperty).RouteTarget = value ?? null /* model class */; } /// Backing field for property. private string _networkToNetworkInterconnectId; diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/VpnConfigurationPropertiesOptionAProperties.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/VpnConfigurationPropertiesOptionAProperties.cs index afa9a8977d5e..2b175f9b3fe1 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/VpnConfigurationPropertiesOptionAProperties.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/api/Models/VpnConfigurationPropertiesOptionAProperties.cs @@ -42,10 +42,10 @@ public partial class VpnConfigurationPropertiesOptionAProperties : public int? BfdConfigurationMultiplier { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionAPropertiesInternal)__optionAProperties).BfdConfigurationMultiplier; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionAPropertiesInternal)__optionAProperties).BfdConfigurationMultiplier = value ?? default(int); } /// Internal Acessors for BfdConfiguration - Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBfdConfiguration Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionAPropertiesInternal.BfdConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionAPropertiesInternal)__optionAProperties).BfdConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionAPropertiesInternal)__optionAProperties).BfdConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IBfdConfiguration Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionAPropertiesInternal.BfdConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionAPropertiesInternal)__optionAProperties).BfdConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionAPropertiesInternal)__optionAProperties).BfdConfiguration = value ?? null /* model class */; } /// Internal Acessors for BfdConfigurationAdministrativeState - string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionAPropertiesInternal.BfdConfigurationAdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionAPropertiesInternal)__optionAProperties).BfdConfigurationAdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionAPropertiesInternal)__optionAProperties).BfdConfigurationAdministrativeState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionAPropertiesInternal.BfdConfigurationAdministrativeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionAPropertiesInternal)__optionAProperties).BfdConfigurationAdministrativeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IOptionAPropertiesInternal)__optionAProperties).BfdConfigurationAdministrativeState = value ?? null; } /// MTU to use for option A peering. [Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.PropertyOrigin.Inherited)] diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricDeprovision_Deprovision.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricDeprovision_Deprovision.cs index 3c65e4712741..d818deb5aa07 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricDeprovision_Deprovision.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricDeprovision_Deprovision.cs @@ -40,15 +40,6 @@ public partial class InvokeAzNetworkFabricDeprovision_Deprovision : global::Syst /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -245,11 +236,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.InvokeAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -565,24 +551,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ICommonPostActionResponseForDeviceUpdate var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricDeprovision_DeprovisionViaIdentity.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricDeprovision_DeprovisionViaIdentity.cs index da45536728fc..57ec2c2b4bfd 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricDeprovision_DeprovisionViaIdentity.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricDeprovision_DeprovisionViaIdentity.cs @@ -40,15 +40,6 @@ public partial class InvokeAzNetworkFabricDeprovision_DeprovisionViaIdentity : g /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -203,11 +194,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.InvokeAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -543,24 +529,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ICommonPostActionResponseForDeviceUpdate var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricInterfaceUpdateAdminState_UpdateExpanded.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricInterfaceUpdateAdminState_UpdateExpanded.cs index 0d47b0fa5692..d7767fcd2981 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricInterfaceUpdateAdminState_UpdateExpanded.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricInterfaceUpdateAdminState_UpdateExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Cmdlets; using System; - /// Update the admin state of the Network Interface. + /// update the admin state of the Network Interface. /// /// [OpenAPI] UpdateAdministrativeState=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkDevices/{networkDeviceName}/networkInterfaces/{networkInterfaceName}/updateAdministrativeState" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Invoke, @"AzNetworkFabricInterfaceUpdateAdminState_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ICommonPostActionResponseForStateUpdate))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"Update the admin state of the Network Interface.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"update the admin state of the Network Interface.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkDevices/{networkDeviceName}/networkInterfaces/{networkInterfaceName}/updateAdministrativeState", ApiVersion = "2023-06-15")] public partial class InvokeAzNetworkFabricInterfaceUpdateAdminState_UpdateExpanded : global::System.Management.Automation.PSCmdlet, @@ -43,15 +43,6 @@ public partial class InvokeAzNetworkFabricInterfaceUpdateAdminState_UpdateExpand /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -290,11 +281,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.InvokeAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -611,24 +597,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ICommonPostActionResponseForStateUpdate var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricInterfaceUpdateAdminState_UpdateViaIdentityExpanded.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricInterfaceUpdateAdminState_UpdateViaIdentityExpanded.cs index ceb8a9388bad..4367d6b7757b 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricInterfaceUpdateAdminState_UpdateViaIdentityExpanded.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricInterfaceUpdateAdminState_UpdateViaIdentityExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Cmdlets; using System; - /// Update the admin state of the Network Interface. + /// update the admin state of the Network Interface. /// /// [OpenAPI] UpdateAdministrativeState=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkDevices/{networkDeviceName}/networkInterfaces/{networkInterfaceName}/updateAdministrativeState" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Invoke, @"AzNetworkFabricInterfaceUpdateAdminState_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ICommonPostActionResponseForStateUpdate))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"Update the admin state of the Network Interface.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"update the admin state of the Network Interface.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkDevices/{networkDeviceName}/networkInterfaces/{networkInterfaceName}/updateAdministrativeState", ApiVersion = "2023-06-15")] public partial class InvokeAzNetworkFabricInterfaceUpdateAdminState_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, @@ -43,15 +43,6 @@ public partial class InvokeAzNetworkFabricInterfaceUpdateAdminState_UpdateViaIde /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -233,11 +224,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.InvokeAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -578,24 +564,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ICommonPostActionResponseForStateUpdate var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricInterfaceUpdateAdminState_UpdateViaIdentityNetworkDevice.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricInterfaceUpdateAdminState_UpdateViaIdentityNetworkDevice.cs index c24c5de9c64b..e6be8a90f8a1 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricInterfaceUpdateAdminState_UpdateViaIdentityNetworkDevice.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricInterfaceUpdateAdminState_UpdateViaIdentityNetworkDevice.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Cmdlets; using System; - /// Update the admin state of the Network Interface. + /// update the admin state of the Network Interface. /// /// [OpenAPI] UpdateAdministrativeState=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkDevices/{networkDeviceName}/networkInterfaces/{networkInterfaceName}/updateAdministrativeState" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Invoke, @"AzNetworkFabricInterfaceUpdateAdminState_UpdateViaIdentityNetworkDevice", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ICommonPostActionResponseForStateUpdate))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"Update the admin state of the Network Interface.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"update the admin state of the Network Interface.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkDevices/{networkDeviceName}/networkInterfaces/{networkInterfaceName}/updateAdministrativeState", ApiVersion = "2023-06-15")] public partial class InvokeAzNetworkFabricInterfaceUpdateAdminState_UpdateViaIdentityNetworkDevice : global::System.Management.Automation.PSCmdlet, @@ -40,15 +40,6 @@ public partial class InvokeAzNetworkFabricInterfaceUpdateAdminState_UpdateViaIde /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -235,11 +226,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.InvokeAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -577,24 +563,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ICommonPostActionResponseForStateUpdate var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricInterfaceUpdateAdminState_UpdateViaIdentityNetworkDeviceExpanded.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricInterfaceUpdateAdminState_UpdateViaIdentityNetworkDeviceExpanded.cs index 9825f65dc8c5..2c91bd4d99de 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricInterfaceUpdateAdminState_UpdateViaIdentityNetworkDeviceExpanded.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricInterfaceUpdateAdminState_UpdateViaIdentityNetworkDeviceExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Cmdlets; using System; - /// Update the admin state of the Network Interface. + /// update the admin state of the Network Interface. /// /// [OpenAPI] UpdateAdministrativeState=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkDevices/{networkDeviceName}/networkInterfaces/{networkInterfaceName}/updateAdministrativeState" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Invoke, @"AzNetworkFabricInterfaceUpdateAdminState_UpdateViaIdentityNetworkDeviceExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ICommonPostActionResponseForStateUpdate))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"Update the admin state of the Network Interface.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"update the admin state of the Network Interface.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkDevices/{networkDeviceName}/networkInterfaces/{networkInterfaceName}/updateAdministrativeState", ApiVersion = "2023-06-15")] public partial class InvokeAzNetworkFabricInterfaceUpdateAdminState_UpdateViaIdentityNetworkDeviceExpanded : global::System.Management.Automation.PSCmdlet, @@ -43,15 +43,6 @@ public partial class InvokeAzNetworkFabricInterfaceUpdateAdminState_UpdateViaIde /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -248,11 +239,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.InvokeAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -590,24 +576,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ICommonPostActionResponseForStateUpdate var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricInterfaceUpdateAdminState_UpdateViaJsonFilePath.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricInterfaceUpdateAdminState_UpdateViaJsonFilePath.cs index 0c464baa227d..9b1e6e14b65a 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricInterfaceUpdateAdminState_UpdateViaJsonFilePath.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricInterfaceUpdateAdminState_UpdateViaJsonFilePath.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Cmdlets; using System; - /// Update the admin state of the Network Interface. + /// update the admin state of the Network Interface. /// /// [OpenAPI] UpdateAdministrativeState=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkDevices/{networkDeviceName}/networkInterfaces/{networkInterfaceName}/updateAdministrativeState" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Invoke, @"AzNetworkFabricInterfaceUpdateAdminState_UpdateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ICommonPostActionResponseForStateUpdate))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"Update the admin state of the Network Interface.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"update the admin state of the Network Interface.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkDevices/{networkDeviceName}/networkInterfaces/{networkInterfaceName}/updateAdministrativeState", ApiVersion = "2023-06-15")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.NotSuggestDefaultParameterSet] @@ -41,17 +41,8 @@ public partial class InvokeAzNetworkFabricInterfaceUpdateAdminState_UpdateViaJso /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -279,11 +270,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.InvokeAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -600,24 +586,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ICommonPostActionResponseForStateUpdate var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricInterfaceUpdateAdminState_UpdateViaJsonString.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricInterfaceUpdateAdminState_UpdateViaJsonString.cs index 05126b69311c..c0ec23356e28 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricInterfaceUpdateAdminState_UpdateViaJsonString.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricInterfaceUpdateAdminState_UpdateViaJsonString.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Cmdlets; using System; - /// Update the admin state of the Network Interface. + /// update the admin state of the Network Interface. /// /// [OpenAPI] UpdateAdministrativeState=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkDevices/{networkDeviceName}/networkInterfaces/{networkInterfaceName}/updateAdministrativeState" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Invoke, @"AzNetworkFabricInterfaceUpdateAdminState_UpdateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ICommonPostActionResponseForStateUpdate))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"Update the admin state of the Network Interface.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"update the admin state of the Network Interface.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkDevices/{networkDeviceName}/networkInterfaces/{networkInterfaceName}/updateAdministrativeState", ApiVersion = "2023-06-15")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.NotSuggestDefaultParameterSet] @@ -41,15 +41,6 @@ public partial class InvokeAzNetworkFabricInterfaceUpdateAdminState_UpdateViaJso /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -277,11 +268,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.InvokeAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -598,24 +584,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ICommonPostActionResponseForStateUpdate var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricL2DomainUpdateAdminState_UpdateExpanded.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricL2DomainUpdateAdminState_UpdateExpanded.cs index 466b6a9e7b83..5df99d84e308 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricL2DomainUpdateAdminState_UpdateExpanded.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricL2DomainUpdateAdminState_UpdateExpanded.cs @@ -43,15 +43,6 @@ public partial class InvokeAzNetworkFabricL2DomainUpdateAdminState_UpdateExpande /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -275,11 +266,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.InvokeAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -595,24 +581,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ICommonPostActionResponseForDeviceUpdate var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricL2DomainUpdateAdminState_UpdateViaIdentityExpanded.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricL2DomainUpdateAdminState_UpdateViaIdentityExpanded.cs index 2214a89fd3bb..c21f8a94cae9 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricL2DomainUpdateAdminState_UpdateViaIdentityExpanded.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricL2DomainUpdateAdminState_UpdateViaIdentityExpanded.cs @@ -43,15 +43,6 @@ public partial class InvokeAzNetworkFabricL2DomainUpdateAdminState_UpdateViaIden /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -233,11 +224,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.InvokeAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -574,24 +560,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ICommonPostActionResponseForDeviceUpdate var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricL2DomainUpdateAdminState_UpdateViaJsonFilePath.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricL2DomainUpdateAdminState_UpdateViaJsonFilePath.cs index d7afb6302b30..2117b49a2d92 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricL2DomainUpdateAdminState_UpdateViaJsonFilePath.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricL2DomainUpdateAdminState_UpdateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class InvokeAzNetworkFabricL2DomainUpdateAdminState_UpdateViaJson /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -264,11 +255,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.InvokeAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -585,24 +571,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ICommonPostActionResponseForDeviceUpdate var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricL2DomainUpdateAdminState_UpdateViaJsonString.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricL2DomainUpdateAdminState_UpdateViaJsonString.cs index 6cd4ad5de292..acb84200a5a5 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricL2DomainUpdateAdminState_UpdateViaJsonString.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricL2DomainUpdateAdminState_UpdateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class InvokeAzNetworkFabricL2DomainUpdateAdminState_UpdateViaJson /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -262,11 +253,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.InvokeAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -583,24 +569,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ICommonPostActionResponseForDeviceUpdate var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricL3DomainUpdateAdminState_UpdateExpanded.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricL3DomainUpdateAdminState_UpdateExpanded.cs index b7da03b3cfec..731544a09cbf 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricL3DomainUpdateAdminState_UpdateExpanded.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricL3DomainUpdateAdminState_UpdateExpanded.cs @@ -43,15 +43,6 @@ public partial class InvokeAzNetworkFabricL3DomainUpdateAdminState_UpdateExpande /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -275,11 +266,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.InvokeAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -595,24 +581,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ICommonPostActionResponseForDeviceUpdate var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricL3DomainUpdateAdminState_UpdateViaIdentityExpanded.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricL3DomainUpdateAdminState_UpdateViaIdentityExpanded.cs index 377b3762bee7..11b916789986 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricL3DomainUpdateAdminState_UpdateViaIdentityExpanded.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricL3DomainUpdateAdminState_UpdateViaIdentityExpanded.cs @@ -43,15 +43,6 @@ public partial class InvokeAzNetworkFabricL3DomainUpdateAdminState_UpdateViaIden /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -233,11 +224,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.InvokeAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -574,24 +560,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ICommonPostActionResponseForDeviceUpdate var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricL3DomainUpdateAdminState_UpdateViaJsonFilePath.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricL3DomainUpdateAdminState_UpdateViaJsonFilePath.cs index 02ef5478632d..8221fc0afe9f 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricL3DomainUpdateAdminState_UpdateViaJsonFilePath.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricL3DomainUpdateAdminState_UpdateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class InvokeAzNetworkFabricL3DomainUpdateAdminState_UpdateViaJson /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -264,11 +255,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.InvokeAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -585,24 +571,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ICommonPostActionResponseForDeviceUpdate var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricL3DomainUpdateAdminState_UpdateViaJsonString.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricL3DomainUpdateAdminState_UpdateViaJsonString.cs index d18913dc67cb..a2186b2a3c49 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricL3DomainUpdateAdminState_UpdateViaJsonString.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricL3DomainUpdateAdminState_UpdateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class InvokeAzNetworkFabricL3DomainUpdateAdminState_UpdateViaJson /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -262,11 +253,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.InvokeAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -583,24 +569,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ICommonPostActionResponseForDeviceUpdate var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricProvision_Provision.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricProvision_Provision.cs index 7861684403b3..6c9b67883220 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricProvision_Provision.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricProvision_Provision.cs @@ -40,15 +40,6 @@ public partial class InvokeAzNetworkFabricProvision_Provision : global::System.M /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -246,11 +237,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.InvokeAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -566,24 +552,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ICommonPostActionResponseForDeviceUpdate var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricProvision_ProvisionViaIdentity.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricProvision_ProvisionViaIdentity.cs index 6940c9d27b76..8668ea8e90d3 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricProvision_ProvisionViaIdentity.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricProvision_ProvisionViaIdentity.cs @@ -40,15 +40,6 @@ public partial class InvokeAzNetworkFabricProvision_ProvisionViaIdentity : globa /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -203,11 +194,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.InvokeAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -543,24 +529,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ICommonPostActionResponseForDeviceUpdate var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricTapUpdateAdminState_UpdateExpanded.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricTapUpdateAdminState_UpdateExpanded.cs index 418b1e589de8..d4e63eb11d5f 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricTapUpdateAdminState_UpdateExpanded.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricTapUpdateAdminState_UpdateExpanded.cs @@ -43,15 +43,6 @@ public partial class InvokeAzNetworkFabricTapUpdateAdminState_UpdateExpanded : g /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -273,11 +264,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.InvokeAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -593,24 +579,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ICommonPostActionResponseForDeviceUpdate var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricTapUpdateAdminState_UpdateViaIdentityExpanded.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricTapUpdateAdminState_UpdateViaIdentityExpanded.cs index 488c5a0469fc..4c3d90fe804b 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricTapUpdateAdminState_UpdateViaIdentityExpanded.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricTapUpdateAdminState_UpdateViaIdentityExpanded.cs @@ -43,15 +43,6 @@ public partial class InvokeAzNetworkFabricTapUpdateAdminState_UpdateViaIdentityE /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -233,11 +224,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.InvokeAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -574,24 +560,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ICommonPostActionResponseForDeviceUpdate var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricTapUpdateAdminState_UpdateViaJsonFilePath.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricTapUpdateAdminState_UpdateViaJsonFilePath.cs index f82b17876dde..403ecc0f1715 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricTapUpdateAdminState_UpdateViaJsonFilePath.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricTapUpdateAdminState_UpdateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class InvokeAzNetworkFabricTapUpdateAdminState_UpdateViaJsonFileP /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -264,11 +255,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.InvokeAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -585,24 +571,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ICommonPostActionResponseForDeviceUpdate var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricTapUpdateAdminState_UpdateViaJsonString.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricTapUpdateAdminState_UpdateViaJsonString.cs index dd067808d5d7..c8fb1f11e8ae 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricTapUpdateAdminState_UpdateViaJsonString.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/InvokeAzNetworkFabricTapUpdateAdminState_UpdateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class InvokeAzNetworkFabricTapUpdateAdminState_UpdateViaJsonStrin /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -262,11 +253,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.InvokeAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -582,24 +568,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.ICommonPostActionResponseForDeviceUpdate var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricAcl_CreateExpanded.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricAcl_CreateExpanded.cs index 35522beb9aad..970bf61960e5 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricAcl_CreateExpanded.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricAcl_CreateExpanded.cs @@ -43,15 +43,6 @@ public partial class NewAzNetworkFabricAcl_CreateExpanded : global::System.Manag /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Access Control List file URL. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Access Control List file URL.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Body)] @@ -345,11 +336,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.NewAzNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -665,24 +651,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IAccessControlList var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricAcl_CreateViaJsonFilePath.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricAcl_CreateViaJsonFilePath.cs index e4e3fd2004b6..9e988d24d5d2 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricAcl_CreateViaJsonFilePath.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricAcl_CreateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class NewAzNetworkFabricAcl_CreateViaJsonFilePath : global::Syste /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.NewAzNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -583,24 +569,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IAccessControlList var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricAcl_CreateViaJsonString.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricAcl_CreateViaJsonString.cs index de3216f5c8aa..d408b2b162f0 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricAcl_CreateViaJsonString.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricAcl_CreateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class NewAzNetworkFabricAcl_CreateViaJsonString : global::System. /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.NewAzNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -581,24 +567,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IAccessControlList var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricController_CreateExpanded.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricController_CreateExpanded.cs index c219734219e6..12d358d4d7d5 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricController_CreateExpanded.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricController_CreateExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Cmdlets; using System; - /// Create a Network Fabric Controller. + /// create a Network Fabric Controller. /// /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkFabricControllers/{networkFabricControllerName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzNetworkFabricController_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricController))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"Create a Network Fabric Controller.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"create a Network Fabric Controller.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkFabricControllers/{networkFabricControllerName}", ApiVersion = "2023-06-15")] public partial class NewAzNetworkFabricController_CreateExpanded : global::System.Management.Automation.PSCmdlet, @@ -43,15 +43,6 @@ public partial class NewAzNetworkFabricController_CreateExpanded : global::Syste /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Switch configuration description. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Switch configuration description.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Body)] @@ -385,11 +376,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.NewAzNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -705,24 +691,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricController var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricController_CreateViaJsonFilePath.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricController_CreateViaJsonFilePath.cs index c7bccf2a9b03..05e1c57277a5 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricController_CreateViaJsonFilePath.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricController_CreateViaJsonFilePath.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Cmdlets; using System; - /// Create a Network Fabric Controller. + /// create a Network Fabric Controller. /// /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkFabricControllers/{networkFabricControllerName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzNetworkFabricController_CreateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricController))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"Create a Network Fabric Controller.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"create a Network Fabric Controller.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkFabricControllers/{networkFabricControllerName}", ApiVersion = "2023-06-15")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.NotSuggestDefaultParameterSet] @@ -41,17 +41,8 @@ public partial class NewAzNetworkFabricController_CreateViaJsonFilePath : global /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.NewAzNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -583,24 +569,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricController var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricController_CreateViaJsonString.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricController_CreateViaJsonString.cs index 3a2832a296ec..6ae6e994b16a 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricController_CreateViaJsonString.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricController_CreateViaJsonString.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Cmdlets; using System; - /// Create a Network Fabric Controller. + /// create a Network Fabric Controller. /// /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkFabricControllers/{networkFabricControllerName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzNetworkFabricController_CreateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricController))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"Create a Network Fabric Controller.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"create a Network Fabric Controller.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkFabricControllers/{networkFabricControllerName}", ApiVersion = "2023-06-15")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.NotSuggestDefaultParameterSet] @@ -41,15 +41,6 @@ public partial class NewAzNetworkFabricController_CreateViaJsonString : global:: /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.NewAzNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -581,24 +567,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabricController var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricExternalNetwork_CreateExpanded.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricExternalNetwork_CreateExpanded.cs index 5005152e9254..6b32e325c6d2 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricExternalNetwork_CreateExpanded.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricExternalNetwork_CreateExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Cmdlets; using System; - /// Create ExternalNetwork PUT method. + /// create ExternalNetwork PUT method. /// /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/{l3IsolationDomainName}/externalNetworks/{externalNetworkName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzNetworkFabricExternalNetwork_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetwork))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"Create ExternalNetwork PUT method.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"create ExternalNetwork PUT method.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/{l3IsolationDomainName}/externalNetworks/{externalNetworkName}", ApiVersion = "2023-06-15")] public partial class NewAzNetworkFabricExternalNetwork_CreateExpanded : global::System.Management.Automation.PSCmdlet, @@ -43,15 +43,6 @@ public partial class NewAzNetworkFabricExternalNetwork_CreateExpanded : global:: /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Switch configuration description. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Switch configuration description.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Body)] @@ -457,11 +448,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.NewAzNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -777,24 +763,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetwork var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricExternalNetwork_CreateViaIdentityL3IsolationDomain.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricExternalNetwork_CreateViaIdentityL3IsolationDomain.cs index 2069e77b25ce..9d3058b30161 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricExternalNetwork_CreateViaIdentityL3IsolationDomain.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricExternalNetwork_CreateViaIdentityL3IsolationDomain.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Cmdlets; using System; - /// Create ExternalNetwork PUT method. + /// create ExternalNetwork PUT method. /// /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/{l3IsolationDomainName}/externalNetworks/{externalNetworkName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzNetworkFabricExternalNetwork_CreateViaIdentityL3IsolationDomain", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetwork))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"Create ExternalNetwork PUT method.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"create ExternalNetwork PUT method.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/{l3IsolationDomainName}/externalNetworks/{externalNetworkName}", ApiVersion = "2023-06-15")] public partial class NewAzNetworkFabricExternalNetwork_CreateViaIdentityL3IsolationDomain : global::System.Management.Automation.PSCmdlet, @@ -40,15 +40,6 @@ public partial class NewAzNetworkFabricExternalNetwork_CreateViaIdentityL3Isolat /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -236,11 +227,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.NewAzNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -578,24 +564,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetwork var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricExternalNetwork_CreateViaIdentityL3IsolationDomainExpanded.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricExternalNetwork_CreateViaIdentityL3IsolationDomainExpanded.cs index f7b0b8420a5f..4e9643368e50 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricExternalNetwork_CreateViaIdentityL3IsolationDomainExpanded.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricExternalNetwork_CreateViaIdentityL3IsolationDomainExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Cmdlets; using System; - /// Create ExternalNetwork PUT method. + /// create ExternalNetwork PUT method. /// /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/{l3IsolationDomainName}/externalNetworks/{externalNetworkName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzNetworkFabricExternalNetwork_CreateViaIdentityL3IsolationDomainExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetwork))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"Create ExternalNetwork PUT method.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"create ExternalNetwork PUT method.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/{l3IsolationDomainName}/externalNetworks/{externalNetworkName}", ApiVersion = "2023-06-15")] public partial class NewAzNetworkFabricExternalNetwork_CreateViaIdentityL3IsolationDomainExpanded : global::System.Management.Automation.PSCmdlet, @@ -43,15 +43,6 @@ public partial class NewAzNetworkFabricExternalNetwork_CreateViaIdentityL3Isolat /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Switch configuration description. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Switch configuration description.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Body)] @@ -417,11 +408,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.NewAzNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -759,24 +745,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetwork var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricExternalNetwork_CreateViaJsonFilePath.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricExternalNetwork_CreateViaJsonFilePath.cs index 480efa1d18f5..692fea09040e 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricExternalNetwork_CreateViaJsonFilePath.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricExternalNetwork_CreateViaJsonFilePath.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Cmdlets; using System; - /// Create ExternalNetwork PUT method. + /// create ExternalNetwork PUT method. /// /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/{l3IsolationDomainName}/externalNetworks/{externalNetworkName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzNetworkFabricExternalNetwork_CreateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetwork))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"Create ExternalNetwork PUT method.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"create ExternalNetwork PUT method.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/{l3IsolationDomainName}/externalNetworks/{externalNetworkName}", ApiVersion = "2023-06-15")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.NotSuggestDefaultParameterSet] @@ -41,17 +41,8 @@ public partial class NewAzNetworkFabricExternalNetwork_CreateViaJsonFilePath : g /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -278,11 +269,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.NewAzNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -598,24 +584,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetwork var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricExternalNetwork_CreateViaJsonString.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricExternalNetwork_CreateViaJsonString.cs index 64baddd43783..1c25243ac441 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricExternalNetwork_CreateViaJsonString.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricExternalNetwork_CreateViaJsonString.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Cmdlets; using System; - /// Create ExternalNetwork PUT method. + /// create ExternalNetwork PUT method. /// /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/{l3IsolationDomainName}/externalNetworks/{externalNetworkName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzNetworkFabricExternalNetwork_CreateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetwork))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"Create ExternalNetwork PUT method.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"create ExternalNetwork PUT method.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/{l3IsolationDomainName}/externalNetworks/{externalNetworkName}", ApiVersion = "2023-06-15")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.NotSuggestDefaultParameterSet] @@ -41,15 +41,6 @@ public partial class NewAzNetworkFabricExternalNetwork_CreateViaJsonString : glo /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -276,11 +267,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.NewAzNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -596,24 +582,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IExternalNetwork var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricIPCommunity_CreateExpanded.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricIPCommunity_CreateExpanded.cs index f4a8675b244e..171b81b0064d 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricIPCommunity_CreateExpanded.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricIPCommunity_CreateExpanded.cs @@ -43,15 +43,6 @@ public partial class NewAzNetworkFabricIPCommunity_CreateExpanded : global::Syst /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Switch configuration description. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Switch configuration description.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Body)] @@ -296,11 +287,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.NewAzNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -616,24 +602,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunity var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricIPCommunity_CreateViaJsonFilePath.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricIPCommunity_CreateViaJsonFilePath.cs index 5e867586bf28..8bd1619470a2 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricIPCommunity_CreateViaJsonFilePath.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricIPCommunity_CreateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class NewAzNetworkFabricIPCommunity_CreateViaJsonFilePath : globa /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.NewAzNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -583,24 +569,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunity var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricIPCommunity_CreateViaJsonString.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricIPCommunity_CreateViaJsonString.cs index 9465ddadb30c..8907a0444a4b 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricIPCommunity_CreateViaJsonString.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricIPCommunity_CreateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class NewAzNetworkFabricIPCommunity_CreateViaJsonString : global: /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.NewAzNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -581,24 +567,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPCommunity var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricIPExtendedCommunity_CreateExpanded.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricIPExtendedCommunity_CreateExpanded.cs index 43ca2e58daa5..e7bc1af10a93 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricIPExtendedCommunity_CreateExpanded.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricIPExtendedCommunity_CreateExpanded.cs @@ -43,15 +43,6 @@ public partial class NewAzNetworkFabricIPExtendedCommunity_CreateExpanded : glob /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Switch configuration description. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Switch configuration description.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Body)] @@ -296,11 +287,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.NewAzNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -616,24 +602,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunity var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricIPExtendedCommunity_CreateViaJsonFilePath.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricIPExtendedCommunity_CreateViaJsonFilePath.cs index 1e02dcc63f91..04a235a9eb8b 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricIPExtendedCommunity_CreateViaJsonFilePath.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricIPExtendedCommunity_CreateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class NewAzNetworkFabricIPExtendedCommunity_CreateViaJsonFilePath /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -265,11 +256,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.NewAzNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -585,24 +571,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunity var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricIPExtendedCommunity_CreateViaJsonString.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricIPExtendedCommunity_CreateViaJsonString.cs index bd78f6324794..2b979de164d8 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricIPExtendedCommunity_CreateViaJsonString.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricIPExtendedCommunity_CreateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class NewAzNetworkFabricIPExtendedCommunity_CreateViaJsonString : /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.NewAzNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -583,24 +569,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPExtendedCommunity var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricIPPrefix_CreateExpanded.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricIPPrefix_CreateExpanded.cs index c01a24f41718..42f594674d7e 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricIPPrefix_CreateExpanded.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricIPPrefix_CreateExpanded.cs @@ -43,15 +43,6 @@ public partial class NewAzNetworkFabricIPPrefix_CreateExpanded : global::System. /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Switch configuration description. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Switch configuration description.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Body)] @@ -296,11 +287,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.NewAzNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -616,24 +602,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPPrefix var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricIPPrefix_CreateViaJsonFilePath.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricIPPrefix_CreateViaJsonFilePath.cs index 29d257445444..d6931b0a8f62 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricIPPrefix_CreateViaJsonFilePath.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricIPPrefix_CreateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class NewAzNetworkFabricIPPrefix_CreateViaJsonFilePath : global:: /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.NewAzNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -583,24 +569,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPPrefix var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricIPPrefix_CreateViaJsonString.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricIPPrefix_CreateViaJsonString.cs index 7f8db3e21fb2..228c0de92c1a 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricIPPrefix_CreateViaJsonString.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricIPPrefix_CreateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class NewAzNetworkFabricIPPrefix_CreateViaJsonString : global::Sy /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.NewAzNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -581,24 +567,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IIPPrefix var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricInternalNetwork_CreateExpanded.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricInternalNetwork_CreateExpanded.cs index 158bba85ef11..007135ae34a7 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricInternalNetwork_CreateExpanded.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricInternalNetwork_CreateExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Cmdlets; using System; - /// Create InternalNetwork PUT method. + /// create InternalNetwork PUT method. /// /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/{l3IsolationDomainName}/internalNetworks/{internalNetworkName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzNetworkFabricInternalNetwork_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetwork))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"Create InternalNetwork PUT method.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"create InternalNetwork PUT method.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/{l3IsolationDomainName}/internalNetworks/{internalNetworkName}", ApiVersion = "2023-06-15")] public partial class NewAzNetworkFabricInternalNetwork_CreateExpanded : global::System.Management.Automation.PSCmdlet, @@ -43,15 +43,6 @@ public partial class NewAzNetworkFabricInternalNetwork_CreateExpanded : global:: /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Switch configuration description. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Switch configuration description.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Body)] @@ -474,11 +465,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.NewAzNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -794,24 +780,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetwork var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricInternalNetwork_CreateViaIdentityL3IsolationDomain.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricInternalNetwork_CreateViaIdentityL3IsolationDomain.cs index ebe3f4299840..d10208fa49ab 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricInternalNetwork_CreateViaIdentityL3IsolationDomain.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricInternalNetwork_CreateViaIdentityL3IsolationDomain.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Cmdlets; using System; - /// Create InternalNetwork PUT method. + /// create InternalNetwork PUT method. /// /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/{l3IsolationDomainName}/internalNetworks/{internalNetworkName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzNetworkFabricInternalNetwork_CreateViaIdentityL3IsolationDomain", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetwork))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"Create InternalNetwork PUT method.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"create InternalNetwork PUT method.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/{l3IsolationDomainName}/internalNetworks/{internalNetworkName}", ApiVersion = "2023-06-15")] public partial class NewAzNetworkFabricInternalNetwork_CreateViaIdentityL3IsolationDomain : global::System.Management.Automation.PSCmdlet, @@ -40,15 +40,6 @@ public partial class NewAzNetworkFabricInternalNetwork_CreateViaIdentityL3Isolat /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -236,11 +227,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.NewAzNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -578,24 +564,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetwork var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricInternalNetwork_CreateViaIdentityL3IsolationDomainExpanded.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricInternalNetwork_CreateViaIdentityL3IsolationDomainExpanded.cs index f057f46250be..8bb0dc03d618 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricInternalNetwork_CreateViaIdentityL3IsolationDomainExpanded.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricInternalNetwork_CreateViaIdentityL3IsolationDomainExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Cmdlets; using System; - /// Create InternalNetwork PUT method. + /// create InternalNetwork PUT method. /// /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/{l3IsolationDomainName}/internalNetworks/{internalNetworkName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzNetworkFabricInternalNetwork_CreateViaIdentityL3IsolationDomainExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetwork))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"Create InternalNetwork PUT method.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"create InternalNetwork PUT method.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/{l3IsolationDomainName}/internalNetworks/{internalNetworkName}", ApiVersion = "2023-06-15")] public partial class NewAzNetworkFabricInternalNetwork_CreateViaIdentityL3IsolationDomainExpanded : global::System.Management.Automation.PSCmdlet, @@ -43,15 +43,6 @@ public partial class NewAzNetworkFabricInternalNetwork_CreateViaIdentityL3Isolat /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Switch configuration description. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Switch configuration description.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Body)] @@ -434,11 +425,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.NewAzNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -776,24 +762,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetwork var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricInternalNetwork_CreateViaJsonFilePath.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricInternalNetwork_CreateViaJsonFilePath.cs index 94e9a2698341..5319274ed11b 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricInternalNetwork_CreateViaJsonFilePath.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricInternalNetwork_CreateViaJsonFilePath.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Cmdlets; using System; - /// Create InternalNetwork PUT method. + /// create InternalNetwork PUT method. /// /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/{l3IsolationDomainName}/internalNetworks/{internalNetworkName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzNetworkFabricInternalNetwork_CreateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetwork))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"Create InternalNetwork PUT method.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"create InternalNetwork PUT method.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/{l3IsolationDomainName}/internalNetworks/{internalNetworkName}", ApiVersion = "2023-06-15")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.NotSuggestDefaultParameterSet] @@ -41,17 +41,8 @@ public partial class NewAzNetworkFabricInternalNetwork_CreateViaJsonFilePath : g /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -278,11 +269,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.NewAzNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -598,24 +584,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetwork var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricInternalNetwork_CreateViaJsonString.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricInternalNetwork_CreateViaJsonString.cs index 07bf3dba8a41..5cb48f0464c6 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricInternalNetwork_CreateViaJsonString.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricInternalNetwork_CreateViaJsonString.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Cmdlets; using System; - /// Create InternalNetwork PUT method. + /// create InternalNetwork PUT method. /// /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/{l3IsolationDomainName}/internalNetworks/{internalNetworkName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzNetworkFabricInternalNetwork_CreateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetwork))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"Create InternalNetwork PUT method.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"create InternalNetwork PUT method.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/{l3IsolationDomainName}/internalNetworks/{internalNetworkName}", ApiVersion = "2023-06-15")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.NotSuggestDefaultParameterSet] @@ -41,15 +41,6 @@ public partial class NewAzNetworkFabricInternalNetwork_CreateViaJsonString : glo /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -276,11 +267,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.NewAzNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -596,24 +582,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternalNetwork var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricInternetGatewayRule_CreateExpanded.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricInternetGatewayRule_CreateExpanded.cs index 2a86138545f3..7bd1283e68f0 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricInternetGatewayRule_CreateExpanded.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricInternetGatewayRule_CreateExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Cmdlets; using System; - /// Create an Internet Gateway rule resource. + /// create an Internet Gateway rule resource. /// /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/internetGatewayRules/{internetGatewayRuleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzNetworkFabricInternetGatewayRule_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternetGatewayRule))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"Create an Internet Gateway rule resource.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"create an Internet Gateway rule resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/internetGatewayRules/{internetGatewayRuleName}", ApiVersion = "2023-06-15")] public partial class NewAzNetworkFabricInternetGatewayRule_CreateExpanded : global::System.Management.Automation.PSCmdlet, @@ -43,15 +43,6 @@ public partial class NewAzNetworkFabricInternetGatewayRule_CreateExpanded : glob /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Switch configuration description. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Switch configuration description.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Body)] @@ -295,11 +286,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.NewAzNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -615,24 +601,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternetGatewayRule var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricInternetGatewayRule_CreateViaJsonFilePath.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricInternetGatewayRule_CreateViaJsonFilePath.cs index 642eaecd07a1..986164164163 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricInternetGatewayRule_CreateViaJsonFilePath.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricInternetGatewayRule_CreateViaJsonFilePath.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Cmdlets; using System; - /// Create an Internet Gateway rule resource. + /// create an Internet Gateway rule resource. /// /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/internetGatewayRules/{internetGatewayRuleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzNetworkFabricInternetGatewayRule_CreateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternetGatewayRule))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"Create an Internet Gateway rule resource.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"create an Internet Gateway rule resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/internetGatewayRules/{internetGatewayRuleName}", ApiVersion = "2023-06-15")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.NotSuggestDefaultParameterSet] @@ -41,17 +41,8 @@ public partial class NewAzNetworkFabricInternetGatewayRule_CreateViaJsonFilePath /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -265,11 +256,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.NewAzNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -585,24 +571,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternetGatewayRule var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricInternetGatewayRule_CreateViaJsonString.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricInternetGatewayRule_CreateViaJsonString.cs index af5642003341..c0abc693c4ba 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricInternetGatewayRule_CreateViaJsonString.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricInternetGatewayRule_CreateViaJsonString.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Cmdlets; using System; - /// Create an Internet Gateway rule resource. + /// create an Internet Gateway rule resource. /// /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/internetGatewayRules/{internetGatewayRuleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzNetworkFabricInternetGatewayRule_CreateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternetGatewayRule))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"Create an Internet Gateway rule resource.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"create an Internet Gateway rule resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/internetGatewayRules/{internetGatewayRuleName}", ApiVersion = "2023-06-15")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.NotSuggestDefaultParameterSet] @@ -41,15 +41,6 @@ public partial class NewAzNetworkFabricInternetGatewayRule_CreateViaJsonString : /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.NewAzNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -583,24 +569,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternetGatewayRule var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricL2Domain_CreateExpanded.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricL2Domain_CreateExpanded.cs index 113df9f0b338..2557054f079a 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricL2Domain_CreateExpanded.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricL2Domain_CreateExpanded.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets using System; /// - /// Create layer 2 network connectivity between compute nodes within a rack and across racks.The configuration is applied + /// create layer 2 network connectivity between compute nodes within a rack and across racks.The configuration is applied /// on the devices only after the isolation domain is enabled. /// /// @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzNetworkFabricL2Domain_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL2IsolationDomain))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"Create layer 2 network connectivity between compute nodes within a rack and across racks.The configuration is applied on the devices only after the isolation domain is enabled.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"create layer 2 network connectivity between compute nodes within a rack and across racks.The configuration is applied on the devices only after the isolation domain is enabled.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/l2IsolationDomains/{l2IsolationDomainName}", ApiVersion = "2023-06-15")] public partial class NewAzNetworkFabricL2Domain_CreateExpanded : global::System.Management.Automation.PSCmdlet, @@ -46,15 +46,6 @@ public partial class NewAzNetworkFabricL2Domain_CreateExpanded : global::System. /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Switch configuration description. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Switch configuration description.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Body)] @@ -320,11 +311,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.NewAzNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -640,24 +626,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL2IsolationDomain var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricL2Domain_CreateViaJsonFilePath.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricL2Domain_CreateViaJsonFilePath.cs index 3f94c31125a3..4fb5b04c1aef 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricL2Domain_CreateViaJsonFilePath.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricL2Domain_CreateViaJsonFilePath.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets using System; /// - /// Create layer 2 network connectivity between compute nodes within a rack and across racks.The configuration is applied + /// create layer 2 network connectivity between compute nodes within a rack and across racks.The configuration is applied /// on the devices only after the isolation domain is enabled. /// /// @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzNetworkFabricL2Domain_CreateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL2IsolationDomain))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"Create layer 2 network connectivity between compute nodes within a rack and across racks.The configuration is applied on the devices only after the isolation domain is enabled.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"create layer 2 network connectivity between compute nodes within a rack and across racks.The configuration is applied on the devices only after the isolation domain is enabled.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/l2IsolationDomains/{l2IsolationDomainName}", ApiVersion = "2023-06-15")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.NotSuggestDefaultParameterSet] @@ -44,17 +44,8 @@ public partial class NewAzNetworkFabricL2Domain_CreateViaJsonFilePath : global:: /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -266,11 +257,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.NewAzNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -586,24 +572,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL2IsolationDomain var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricL2Domain_CreateViaJsonString.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricL2Domain_CreateViaJsonString.cs index 21bbad1ef0fc..6162dc122309 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricL2Domain_CreateViaJsonString.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricL2Domain_CreateViaJsonString.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets using System; /// - /// Create layer 2 network connectivity between compute nodes within a rack and across racks.The configuration is applied + /// create layer 2 network connectivity between compute nodes within a rack and across racks.The configuration is applied /// on the devices only after the isolation domain is enabled. /// /// @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzNetworkFabricL2Domain_CreateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL2IsolationDomain))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"Create layer 2 network connectivity between compute nodes within a rack and across racks.The configuration is applied on the devices only after the isolation domain is enabled.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"create layer 2 network connectivity between compute nodes within a rack and across racks.The configuration is applied on the devices only after the isolation domain is enabled.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/l2IsolationDomains/{l2IsolationDomainName}", ApiVersion = "2023-06-15")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.NotSuggestDefaultParameterSet] @@ -44,15 +44,6 @@ public partial class NewAzNetworkFabricL2Domain_CreateViaJsonString : global::Sy /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -264,11 +255,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.NewAzNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -584,24 +570,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL2IsolationDomain var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricL3Domain_CreateExpanded.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricL3Domain_CreateExpanded.cs index 18748ed9d47a..760149bb433c 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricL3Domain_CreateExpanded.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricL3Domain_CreateExpanded.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets using System; /// - /// Create isolation domain resources for layer 3 connectivity between compute nodes and for communication with external services + /// create isolation domain resources for layer 3 connectivity between compute nodes and for communication with external services /// .This configuration is applied on the devices only after the creation of networks is completed and isolation domain is /// enabled. /// @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzNetworkFabricL3Domain_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL3IsolationDomain))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"Create isolation domain resources for layer 3 connectivity between compute nodes and for communication with external services .This configuration is applied on the devices only after the creation of networks is completed and isolation domain is enabled. ")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"create isolation domain resources for layer 3 connectivity between compute nodes and for communication with external services .This configuration is applied on the devices only after the creation of networks is completed and isolation domain is enabled. ")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/{l3IsolationDomainName}", ApiVersion = "2023-06-15")] public partial class NewAzNetworkFabricL3Domain_CreateExpanded : global::System.Management.Automation.PSCmdlet, @@ -47,15 +47,6 @@ public partial class NewAzNetworkFabricL3Domain_CreateExpanded : global::System. /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Aggregate route configurations. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Aggregate route configurations.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Body)] @@ -345,11 +336,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.NewAzNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -665,24 +651,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL3IsolationDomain var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricL3Domain_CreateViaJsonFilePath.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricL3Domain_CreateViaJsonFilePath.cs index c05023a6a364..4df15f37b561 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricL3Domain_CreateViaJsonFilePath.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricL3Domain_CreateViaJsonFilePath.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets using System; /// - /// Create isolation domain resources for layer 3 connectivity between compute nodes and for communication with external services + /// create isolation domain resources for layer 3 connectivity between compute nodes and for communication with external services /// .This configuration is applied on the devices only after the creation of networks is completed and isolation domain is /// enabled. /// @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzNetworkFabricL3Domain_CreateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL3IsolationDomain))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"Create isolation domain resources for layer 3 connectivity between compute nodes and for communication with external services .This configuration is applied on the devices only after the creation of networks is completed and isolation domain is enabled. ")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"create isolation domain resources for layer 3 connectivity between compute nodes and for communication with external services .This configuration is applied on the devices only after the creation of networks is completed and isolation domain is enabled. ")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/{l3IsolationDomainName}", ApiVersion = "2023-06-15")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.NotSuggestDefaultParameterSet] @@ -45,17 +45,8 @@ public partial class NewAzNetworkFabricL3Domain_CreateViaJsonFilePath : global:: /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -267,11 +258,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.NewAzNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -587,24 +573,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL3IsolationDomain var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricL3Domain_CreateViaJsonString.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricL3Domain_CreateViaJsonString.cs index c443e2a7f8dd..f0c6a6c4e2e2 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricL3Domain_CreateViaJsonString.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricL3Domain_CreateViaJsonString.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets using System; /// - /// Create isolation domain resources for layer 3 connectivity between compute nodes and for communication with external services + /// create isolation domain resources for layer 3 connectivity between compute nodes and for communication with external services /// .This configuration is applied on the devices only after the creation of networks is completed and isolation domain is /// enabled. /// @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzNetworkFabricL3Domain_CreateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL3IsolationDomain))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"Create isolation domain resources for layer 3 connectivity between compute nodes and for communication with external services .This configuration is applied on the devices only after the creation of networks is completed and isolation domain is enabled. ")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"create isolation domain resources for layer 3 connectivity between compute nodes and for communication with external services .This configuration is applied on the devices only after the creation of networks is completed and isolation domain is enabled. ")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/{l3IsolationDomainName}", ApiVersion = "2023-06-15")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.NotSuggestDefaultParameterSet] @@ -45,15 +45,6 @@ public partial class NewAzNetworkFabricL3Domain_CreateViaJsonString : global::Sy /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -265,11 +256,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.NewAzNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -585,24 +571,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IL3IsolationDomain var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricNeighborGroup_CreateExpanded.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricNeighborGroup_CreateExpanded.cs index 1bd41d085211..c8b585d247c1 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricNeighborGroup_CreateExpanded.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricNeighborGroup_CreateExpanded.cs @@ -43,15 +43,6 @@ public partial class NewAzNetworkFabricNeighborGroup_CreateExpanded : global::Sy /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Switch configuration description. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Switch configuration description.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Body)] @@ -295,11 +286,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.NewAzNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -615,24 +601,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INeighborGroup var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricNeighborGroup_CreateViaJsonFilePath.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricNeighborGroup_CreateViaJsonFilePath.cs index 3879ca48138e..d10f719390ab 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricNeighborGroup_CreateViaJsonFilePath.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricNeighborGroup_CreateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class NewAzNetworkFabricNeighborGroup_CreateViaJsonFilePath : glo /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.NewAzNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -583,24 +569,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INeighborGroup var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricNeighborGroup_CreateViaJsonString.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricNeighborGroup_CreateViaJsonString.cs index 90b94acb6299..fb9def2b4f01 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricNeighborGroup_CreateViaJsonString.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricNeighborGroup_CreateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class NewAzNetworkFabricNeighborGroup_CreateViaJsonString : globa /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.NewAzNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -581,24 +567,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INeighborGroup var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricNni_CreateExpanded.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricNni_CreateExpanded.cs index c146a6cfcad8..630c7d4f6e75 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricNni_CreateExpanded.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricNni_CreateExpanded.cs @@ -43,15 +43,6 @@ public partial class NewAzNetworkFabricNni_CreateExpanded : global::System.Manag /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -378,11 +369,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.NewAzNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -698,24 +684,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkToNetworkInterconnect var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricNni_CreateViaIdentityNetworkFabric.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricNni_CreateViaIdentityNetworkFabric.cs index 27c3c09d26da..6fc0b7f13da0 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricNni_CreateViaIdentityNetworkFabric.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricNni_CreateViaIdentityNetworkFabric.cs @@ -40,15 +40,6 @@ public partial class NewAzNetworkFabricNni_CreateViaIdentityNetworkFabric : glob /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -234,11 +225,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.NewAzNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -575,24 +561,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkToNetworkInterconnect var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricNni_CreateViaIdentityNetworkFabricExpanded.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricNni_CreateViaIdentityNetworkFabricExpanded.cs index 952cde95cbb2..f24b5554b46d 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricNni_CreateViaIdentityNetworkFabricExpanded.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricNni_CreateViaIdentityNetworkFabricExpanded.cs @@ -43,15 +43,6 @@ public partial class NewAzNetworkFabricNni_CreateViaIdentityNetworkFabricExpande /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -338,11 +329,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.NewAzNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -679,24 +665,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkToNetworkInterconnect var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricNni_CreateViaJsonFilePath.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricNni_CreateViaJsonFilePath.cs index 3cf4289b832c..95f7a49548e6 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricNni_CreateViaJsonFilePath.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricNni_CreateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class NewAzNetworkFabricNni_CreateViaJsonFilePath : global::Syste /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -278,11 +269,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.NewAzNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -598,24 +584,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkToNetworkInterconnect var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricNni_CreateViaJsonString.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricNni_CreateViaJsonString.cs index 2c313746cba8..cbcc8119783b 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricNni_CreateViaJsonString.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricNni_CreateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class NewAzNetworkFabricNni_CreateViaJsonString : global::System. /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -276,11 +267,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.NewAzNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -596,24 +582,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkToNetworkInterconnect var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricRoutePolicy_CreateExpanded.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricRoutePolicy_CreateExpanded.cs index ef133844f303..c064219dc2ae 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricRoutePolicy_CreateExpanded.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricRoutePolicy_CreateExpanded.cs @@ -43,15 +43,6 @@ public partial class NewAzNetworkFabricRoutePolicy_CreateExpanded : global::Syst /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// /// AddressFamilyType. This parameter decides whether the given ipv4 or ipv6 route policy. /// @@ -335,11 +326,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.NewAzNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -655,24 +641,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IRoutePolicy var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricRoutePolicy_CreateViaJsonFilePath.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricRoutePolicy_CreateViaJsonFilePath.cs index e3547015eb4c..3b5bfdf784a8 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricRoutePolicy_CreateViaJsonFilePath.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricRoutePolicy_CreateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class NewAzNetworkFabricRoutePolicy_CreateViaJsonFilePath : globa /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.NewAzNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -583,24 +569,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IRoutePolicy var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricRoutePolicy_CreateViaJsonString.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricRoutePolicy_CreateViaJsonString.cs index 16e1633c439b..143ab85dd92c 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricRoutePolicy_CreateViaJsonString.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricRoutePolicy_CreateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class NewAzNetworkFabricRoutePolicy_CreateViaJsonString : global: /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.NewAzNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -581,24 +567,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IRoutePolicy var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricTapRule_CreateExpanded.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricTapRule_CreateExpanded.cs index f1b29cd13778..5a19b6dda8c4 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricTapRule_CreateExpanded.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricTapRule_CreateExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Cmdlets; using System; - /// Create Network Tap Rule resource. + /// create Network Tap Rule resource. /// /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkTapRules/{networkTapRuleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzNetworkFabricTapRule_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapRule))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"Create Network Tap Rule resource.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"create Network Tap Rule resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkTapRules/{networkTapRuleName}", ApiVersion = "2023-06-15")] public partial class NewAzNetworkFabricTapRule_CreateExpanded : global::System.Management.Automation.PSCmdlet, @@ -43,15 +43,6 @@ public partial class NewAzNetworkFabricTapRule_CreateExpanded : global::System.M /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Switch configuration description. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Switch configuration description.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Body)] @@ -343,11 +334,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.NewAzNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -663,24 +649,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapRule var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricTapRule_CreateViaJsonFilePath.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricTapRule_CreateViaJsonFilePath.cs index 38e8a17161b2..f37ff11bad56 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricTapRule_CreateViaJsonFilePath.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricTapRule_CreateViaJsonFilePath.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Cmdlets; using System; - /// Create Network Tap Rule resource. + /// create Network Tap Rule resource. /// /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkTapRules/{networkTapRuleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzNetworkFabricTapRule_CreateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapRule))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"Create Network Tap Rule resource.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"create Network Tap Rule resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkTapRules/{networkTapRuleName}", ApiVersion = "2023-06-15")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.NotSuggestDefaultParameterSet] @@ -41,17 +41,8 @@ public partial class NewAzNetworkFabricTapRule_CreateViaJsonFilePath : global::S /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.NewAzNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -583,24 +569,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapRule var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricTapRule_CreateViaJsonString.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricTapRule_CreateViaJsonString.cs index 06d40a1d5a15..f7b6181656c0 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricTapRule_CreateViaJsonString.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricTapRule_CreateViaJsonString.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Cmdlets; using System; - /// Create Network Tap Rule resource. + /// create Network Tap Rule resource. /// /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkTapRules/{networkTapRuleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzNetworkFabricTapRule_CreateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapRule))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"Create Network Tap Rule resource.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"create Network Tap Rule resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkTapRules/{networkTapRuleName}", ApiVersion = "2023-06-15")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.NotSuggestDefaultParameterSet] @@ -41,15 +41,6 @@ public partial class NewAzNetworkFabricTapRule_CreateViaJsonString : global::Sys /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.NewAzNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -581,24 +567,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTapRule var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricTap_CreateExpanded.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricTap_CreateExpanded.cs index 50f01e8d4ef5..31156c5108e2 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricTap_CreateExpanded.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricTap_CreateExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Cmdlets; using System; - /// Create a Network Tap. + /// create a Network Tap. /// /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkTaps/{networkTapName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzNetworkFabricTap_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTap))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"Create a Network Tap.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"create a Network Tap.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkTaps/{networkTapName}", ApiVersion = "2023-06-15")] public partial class NewAzNetworkFabricTap_CreateExpanded : global::System.Management.Automation.PSCmdlet, @@ -43,15 +43,6 @@ public partial class NewAzNetworkFabricTap_CreateExpanded : global::System.Manag /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Switch configuration description. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Switch configuration description.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Body)] @@ -319,11 +310,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.NewAzNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -639,24 +625,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTap var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricTap_CreateViaJsonFilePath.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricTap_CreateViaJsonFilePath.cs index 39dbd279971a..c72d52b6b7e5 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricTap_CreateViaJsonFilePath.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricTap_CreateViaJsonFilePath.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Cmdlets; using System; - /// Create a Network Tap. + /// create a Network Tap. /// /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkTaps/{networkTapName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzNetworkFabricTap_CreateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTap))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"Create a Network Tap.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"create a Network Tap.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkTaps/{networkTapName}", ApiVersion = "2023-06-15")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.NotSuggestDefaultParameterSet] @@ -41,17 +41,8 @@ public partial class NewAzNetworkFabricTap_CreateViaJsonFilePath : global::Syste /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.NewAzNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -583,24 +569,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTap var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricTap_CreateViaJsonString.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricTap_CreateViaJsonString.cs index e41632ef4f6f..2ff637ccbbd4 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricTap_CreateViaJsonString.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabricTap_CreateViaJsonString.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Cmdlets; using System; - /// Create a Network Tap. + /// create a Network Tap. /// /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkTaps/{networkTapName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzNetworkFabricTap_CreateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTap))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"Create a Network Tap.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"create a Network Tap.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkTaps/{networkTapName}", ApiVersion = "2023-06-15")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.NotSuggestDefaultParameterSet] @@ -41,15 +41,6 @@ public partial class NewAzNetworkFabricTap_CreateViaJsonString : global::System. /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.NewAzNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -581,24 +567,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkTap var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabric_CreateExpanded.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabric_CreateExpanded.cs index ede66a88a63b..1eac1016ea7d 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabric_CreateExpanded.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabric_CreateExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Cmdlets; using System; - /// Create Network Fabric resource. + /// create Network Fabric resource. /// /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkFabrics/{networkFabricName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzNetworkFabric_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabric))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"Create Network Fabric resource.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"create Network Fabric resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkFabrics/{networkFabricName}", ApiVersion = "2023-06-15")] public partial class NewAzNetworkFabric_CreateExpanded : global::System.Management.Automation.PSCmdlet, @@ -43,15 +43,6 @@ public partial class NewAzNetworkFabric_CreateExpanded : global::System.Manageme /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Switch configuration description. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Switch configuration description.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Body)] @@ -386,11 +377,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.NewAzNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -706,24 +692,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabric var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabric_CreateViaJsonFilePath.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabric_CreateViaJsonFilePath.cs index 87cf3e1a9f9e..d9e2f591cf45 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabric_CreateViaJsonFilePath.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabric_CreateViaJsonFilePath.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Cmdlets; using System; - /// Create Network Fabric resource. + /// create Network Fabric resource. /// /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkFabrics/{networkFabricName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzNetworkFabric_CreateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabric))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"Create Network Fabric resource.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"create Network Fabric resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkFabrics/{networkFabricName}", ApiVersion = "2023-06-15")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.NotSuggestDefaultParameterSet] @@ -41,17 +41,8 @@ public partial class NewAzNetworkFabric_CreateViaJsonFilePath : global::System.M /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.NewAzNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -583,24 +569,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabric var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabric_CreateViaJsonString.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabric_CreateViaJsonString.cs index 3eebe1d2b20e..c56fe80cdb33 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabric_CreateViaJsonString.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/NewAzNetworkFabric_CreateViaJsonString.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Cmdlets; using System; - /// Create Network Fabric resource. + /// create Network Fabric resource. /// /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkFabrics/{networkFabricName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzNetworkFabric_CreateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabric))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"Create Network Fabric resource.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"create Network Fabric resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkFabrics/{networkFabricName}", ApiVersion = "2023-06-15")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.NotSuggestDefaultParameterSet] @@ -41,15 +41,6 @@ public partial class NewAzNetworkFabric_CreateViaJsonString : global::System.Man /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.NewAzNetw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -581,24 +567,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkFabric var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricAcl_Delete.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricAcl_Delete.cs index 320facb058bc..0935b862984a 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricAcl_Delete.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricAcl_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzNetworkFabricAcl_Delete : global::System.Management /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.RemoveAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -577,7 +563,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -601,7 +587,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricAcl_DeleteViaIdentity.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricAcl_DeleteViaIdentity.cs index 5d5656425943..7840661c6aec 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricAcl_DeleteViaIdentity.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricAcl_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzNetworkFabricAcl_DeleteViaIdentity : global::System /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.RemoveAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -554,7 +540,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -578,7 +564,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricController_Delete.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricController_Delete.cs index fe53774dc6fa..f43fc0bd400a 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricController_Delete.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricController_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzNetworkFabricController_Delete : global::System.Man /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.RemoveAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -577,7 +563,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -601,7 +587,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricController_DeleteViaIdentity.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricController_DeleteViaIdentity.cs index d5588451d70d..fb3f3cbbd44f 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricController_DeleteViaIdentity.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricController_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzNetworkFabricController_DeleteViaIdentity : global: /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.RemoveAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -554,7 +540,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -578,7 +564,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricExternalNetwork_Delete.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricExternalNetwork_Delete.cs index b2688795d48b..abec878ae0ca 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricExternalNetwork_Delete.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricExternalNetwork_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzNetworkFabricExternalNetwork_Delete : global::Syste /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -276,11 +267,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.RemoveAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -592,7 +578,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -616,7 +602,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricExternalNetwork_DeleteViaIdentity.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricExternalNetwork_DeleteViaIdentity.cs index 8cf29bf6899f..6460fec47cd1 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricExternalNetwork_DeleteViaIdentity.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricExternalNetwork_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzNetworkFabricExternalNetwork_DeleteViaIdentity : gl /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.RemoveAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -558,7 +544,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -582,7 +568,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricExternalNetwork_DeleteViaIdentityL3IsolationDomain.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricExternalNetwork_DeleteViaIdentityL3IsolationDomain.cs index 4f21f7022d0c..f8873a4e9074 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricExternalNetwork_DeleteViaIdentityL3IsolationDomain.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricExternalNetwork_DeleteViaIdentityL3IsolationDomain.cs @@ -40,15 +40,6 @@ public partial class RemoveAzNetworkFabricExternalNetwork_DeleteViaIdentityL3Iso /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -236,11 +227,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.RemoveAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -574,7 +560,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -598,7 +584,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricIPCommunity_Delete.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricIPCommunity_Delete.cs index e1e5ba9d7e96..5afc7742b89e 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricIPCommunity_Delete.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricIPCommunity_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzNetworkFabricIPCommunity_Delete : global::System.Ma /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.RemoveAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -577,7 +563,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -601,7 +587,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricIPCommunity_DeleteViaIdentity.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricIPCommunity_DeleteViaIdentity.cs index f17b3c4c68e3..9263e2bcebba 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricIPCommunity_DeleteViaIdentity.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricIPCommunity_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzNetworkFabricIPCommunity_DeleteViaIdentity : global /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.RemoveAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -554,7 +540,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -578,7 +564,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricIPExtendedCommunity_Delete.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricIPExtendedCommunity_Delete.cs index f71a64e9caf4..a4b89e9ced71 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricIPExtendedCommunity_Delete.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricIPExtendedCommunity_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzNetworkFabricIPExtendedCommunity_Delete : global::S /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.RemoveAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -577,7 +563,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -601,7 +587,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricIPExtendedCommunity_DeleteViaIdentity.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricIPExtendedCommunity_DeleteViaIdentity.cs index aefbdbcffdfe..18cf099bba63 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricIPExtendedCommunity_DeleteViaIdentity.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricIPExtendedCommunity_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzNetworkFabricIPExtendedCommunity_DeleteViaIdentity /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -220,11 +211,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.RemoveAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -556,7 +542,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -580,7 +566,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricIPPrefix_Delete.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricIPPrefix_Delete.cs index 65650bd8690d..170bd29c67c3 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricIPPrefix_Delete.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricIPPrefix_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzNetworkFabricIPPrefix_Delete : global::System.Manag /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.RemoveAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -577,7 +563,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -601,7 +587,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricIPPrefix_DeleteViaIdentity.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricIPPrefix_DeleteViaIdentity.cs index 6a454095a9a8..d280a60c9f13 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricIPPrefix_DeleteViaIdentity.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricIPPrefix_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzNetworkFabricIPPrefix_DeleteViaIdentity : global::S /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.RemoveAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -554,7 +540,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -578,7 +564,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricInternalNetwork_Delete.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricInternalNetwork_Delete.cs index 0d5ae0f3f873..89412b106476 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricInternalNetwork_Delete.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricInternalNetwork_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzNetworkFabricInternalNetwork_Delete : global::Syste /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -276,11 +267,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.RemoveAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -592,7 +578,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -616,7 +602,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricInternalNetwork_DeleteViaIdentity.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricInternalNetwork_DeleteViaIdentity.cs index 061f5faa32b3..bba9debb266f 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricInternalNetwork_DeleteViaIdentity.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricInternalNetwork_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzNetworkFabricInternalNetwork_DeleteViaIdentity : gl /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.RemoveAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -558,7 +544,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -582,7 +568,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricInternalNetwork_DeleteViaIdentityL3IsolationDomain.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricInternalNetwork_DeleteViaIdentityL3IsolationDomain.cs index ebd6c1ca7c8d..53bcd5bed66b 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricInternalNetwork_DeleteViaIdentityL3IsolationDomain.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricInternalNetwork_DeleteViaIdentityL3IsolationDomain.cs @@ -40,15 +40,6 @@ public partial class RemoveAzNetworkFabricInternalNetwork_DeleteViaIdentityL3Iso /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -236,11 +227,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.RemoveAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -574,7 +560,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -598,7 +584,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricInternetGatewayRule_Delete.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricInternetGatewayRule_Delete.cs index 2d05a5c33360..be7f2039e7c0 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricInternetGatewayRule_Delete.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricInternetGatewayRule_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzNetworkFabricInternetGatewayRule_Delete : global::S /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.RemoveAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -577,7 +563,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -601,7 +587,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricInternetGatewayRule_DeleteViaIdentity.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricInternetGatewayRule_DeleteViaIdentity.cs index 2b59f4a901da..f4fa47538f75 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricInternetGatewayRule_DeleteViaIdentity.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricInternetGatewayRule_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzNetworkFabricInternetGatewayRule_DeleteViaIdentity /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -220,11 +211,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.RemoveAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -556,7 +542,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -580,7 +566,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricL2Domain_Delete.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricL2Domain_Delete.cs index e8770a397f57..4e03db1665b7 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricL2Domain_Delete.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricL2Domain_Delete.cs @@ -42,15 +42,6 @@ public partial class RemoveAzNetworkFabricL2Domain_Delete : global::System.Manag /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.RemoveAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -579,7 +565,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -603,7 +589,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricL2Domain_DeleteViaIdentity.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricL2Domain_DeleteViaIdentity.cs index a8bff7e0f847..306bb0032e90 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricL2Domain_DeleteViaIdentity.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricL2Domain_DeleteViaIdentity.cs @@ -42,15 +42,6 @@ public partial class RemoveAzNetworkFabricL2Domain_DeleteViaIdentity : global::S /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -220,11 +211,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.RemoveAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -556,7 +542,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -580,7 +566,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricL3Domain_Delete.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricL3Domain_Delete.cs index 50c9c9da5f1a..78584d40a35b 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricL3Domain_Delete.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricL3Domain_Delete.cs @@ -42,15 +42,6 @@ public partial class RemoveAzNetworkFabricL3Domain_Delete : global::System.Manag /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.RemoveAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -579,7 +565,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -603,7 +589,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricL3Domain_DeleteViaIdentity.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricL3Domain_DeleteViaIdentity.cs index 3dbb308fb4be..2fe783768d39 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricL3Domain_DeleteViaIdentity.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricL3Domain_DeleteViaIdentity.cs @@ -42,15 +42,6 @@ public partial class RemoveAzNetworkFabricL3Domain_DeleteViaIdentity : global::S /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -220,11 +211,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.RemoveAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -556,7 +542,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -580,7 +566,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricNeighborGroup_Delete.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricNeighborGroup_Delete.cs index 3d7eda421939..e655e1f26714 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricNeighborGroup_Delete.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricNeighborGroup_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzNetworkFabricNeighborGroup_Delete : global::System. /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.RemoveAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -577,7 +563,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -601,7 +587,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricNeighborGroup_DeleteViaIdentity.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricNeighborGroup_DeleteViaIdentity.cs index 3fc5015bfbd4..3d2bbbe3fdbd 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricNeighborGroup_DeleteViaIdentity.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricNeighborGroup_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzNetworkFabricNeighborGroup_DeleteViaIdentity : glob /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.RemoveAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -554,7 +540,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -578,7 +564,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricNni_Delete.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricNni_Delete.cs index 182b6fcb667a..71f380959969 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricNni_Delete.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricNni_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzNetworkFabricNni_Delete : global::System.Management /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -276,11 +267,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.RemoveAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -592,7 +578,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -616,7 +602,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricNni_DeleteViaIdentity.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricNni_DeleteViaIdentity.cs index c6e3f81c7e67..15bae5692c37 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricNni_DeleteViaIdentity.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricNni_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzNetworkFabricNni_DeleteViaIdentity : global::System /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.RemoveAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -558,7 +544,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -582,7 +568,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricNni_DeleteViaIdentityNetworkFabric.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricNni_DeleteViaIdentityNetworkFabric.cs index 9a1f65450d28..de9019989c9a 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricNni_DeleteViaIdentityNetworkFabric.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricNni_DeleteViaIdentityNetworkFabric.cs @@ -40,15 +40,6 @@ public partial class RemoveAzNetworkFabricNni_DeleteViaIdentityNetworkFabric : g /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -234,11 +225,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.RemoveAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -571,7 +557,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -595,7 +581,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricRoutePolicy_Delete.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricRoutePolicy_Delete.cs index 5a1c6b46c40a..35d138c6f05f 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricRoutePolicy_Delete.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricRoutePolicy_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzNetworkFabricRoutePolicy_Delete : global::System.Ma /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.RemoveAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -577,7 +563,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -601,7 +587,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricRoutePolicy_DeleteViaIdentity.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricRoutePolicy_DeleteViaIdentity.cs index d41bcb1f0849..b75113125bdc 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricRoutePolicy_DeleteViaIdentity.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricRoutePolicy_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzNetworkFabricRoutePolicy_DeleteViaIdentity : global /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.RemoveAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -554,7 +540,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -578,7 +564,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricTapRule_Delete.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricTapRule_Delete.cs index dae48efaa142..e419ad1cfc92 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricTapRule_Delete.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricTapRule_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzNetworkFabricTapRule_Delete : global::System.Manage /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.RemoveAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -577,7 +563,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -601,7 +587,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricTapRule_DeleteViaIdentity.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricTapRule_DeleteViaIdentity.cs index 2ad5b3e087e0..90ebfff3feab 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricTapRule_DeleteViaIdentity.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricTapRule_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzNetworkFabricTapRule_DeleteViaIdentity : global::Sy /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.RemoveAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -554,7 +540,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -578,7 +564,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricTap_Delete.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricTap_Delete.cs index 67797109140b..89693465bc88 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricTap_Delete.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricTap_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzNetworkFabricTap_Delete : global::System.Management /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.RemoveAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -577,7 +563,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -601,7 +587,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricTap_DeleteViaIdentity.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricTap_DeleteViaIdentity.cs index ef760ff297da..f28ee73abb96 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricTap_DeleteViaIdentity.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabricTap_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzNetworkFabricTap_DeleteViaIdentity : global::System /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.RemoveAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -554,7 +540,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -578,7 +564,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabric_Delete.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabric_Delete.cs index 17a15360f52d..0c487d4d17cd 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabric_Delete.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabric_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzNetworkFabric_Delete : global::System.Management.Au /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.RemoveAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -577,7 +563,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -601,7 +587,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabric_DeleteViaIdentity.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabric_DeleteViaIdentity.cs index bb2304130efa..c0a45ca6a360 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabric_DeleteViaIdentity.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/RemoveAzNetworkFabric_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzNetworkFabric_DeleteViaIdentity : global::System.Ma /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.RemoveAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -554,7 +540,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -578,7 +564,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/UpdateAzNetworkFabricDevice_UpdateExpanded.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/UpdateAzNetworkFabricDevice_UpdateExpanded.cs index 87cdd90e8a26..b0c1fbe8f94c 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/UpdateAzNetworkFabricDevice_UpdateExpanded.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/UpdateAzNetworkFabricDevice_UpdateExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Cmdlets; using System; - /// Update certain properties of the Network Device resource. + /// update certain properties of the Network Device resource. /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkDevices/{networkDeviceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzNetworkFabricDevice_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDevice))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"Update certain properties of the Network Device resource.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"update certain properties of the Network Device resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkDevices/{networkDeviceName}", ApiVersion = "2023-06-15")] public partial class UpdateAzNetworkFabricDevice_UpdateExpanded : global::System.Management.Automation.PSCmdlet, @@ -45,15 +45,6 @@ public partial class UpdateAzNetworkFabricDevice_UpdateExpanded : global::System /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Switch configuration description. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Switch configuration description.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Body)] @@ -299,11 +290,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.UpdateAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -619,24 +605,7 @@ public UpdateAzNetworkFabricDevice_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDevice var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/UpdateAzNetworkFabricDevice_UpdateViaIdentityExpanded.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/UpdateAzNetworkFabricDevice_UpdateViaIdentityExpanded.cs index 610d0e047d47..dc42f9b1bcec 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/UpdateAzNetworkFabricDevice_UpdateViaIdentityExpanded.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/UpdateAzNetworkFabricDevice_UpdateViaIdentityExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Cmdlets; using System; - /// Update certain properties of the Network Device resource. + /// update certain properties of the Network Device resource. /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkDevices/{networkDeviceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzNetworkFabricDevice_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDevice))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"Update certain properties of the Network Device resource.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"update certain properties of the Network Device resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkDevices/{networkDeviceName}", ApiVersion = "2023-06-15")] public partial class UpdateAzNetworkFabricDevice_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, @@ -45,15 +45,6 @@ public partial class UpdateAzNetworkFabricDevice_UpdateViaIdentityExpanded : glo /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Switch configuration description. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Switch configuration description.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Body)] @@ -256,11 +247,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.UpdateAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -596,24 +582,7 @@ public UpdateAzNetworkFabricDevice_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDevice var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/UpdateAzNetworkFabricDevice_UpdateViaJsonFilePath.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/UpdateAzNetworkFabricDevice_UpdateViaJsonFilePath.cs index 313bc66e7e1f..89a1926f5e86 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/UpdateAzNetworkFabricDevice_UpdateViaJsonFilePath.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/UpdateAzNetworkFabricDevice_UpdateViaJsonFilePath.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Cmdlets; using System; - /// Update certain properties of the Network Device resource. + /// update certain properties of the Network Device resource. /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkDevices/{networkDeviceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzNetworkFabricDevice_UpdateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDevice))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"Update certain properties of the Network Device resource.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"update certain properties of the Network Device resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkDevices/{networkDeviceName}", ApiVersion = "2023-06-15")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.NotSuggestDefaultParameterSet] @@ -41,17 +41,8 @@ public partial class UpdateAzNetworkFabricDevice_UpdateViaJsonFilePath : global: /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.UpdateAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -583,24 +569,7 @@ public UpdateAzNetworkFabricDevice_UpdateViaJsonFilePath() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDevice var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/UpdateAzNetworkFabricDevice_UpdateViaJsonString.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/UpdateAzNetworkFabricDevice_UpdateViaJsonString.cs index 9326be4ab702..3bc57736f883 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/UpdateAzNetworkFabricDevice_UpdateViaJsonString.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/UpdateAzNetworkFabricDevice_UpdateViaJsonString.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Cmdlets; using System; - /// Update certain properties of the Network Device resource. + /// update certain properties of the Network Device resource. /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkDevices/{networkDeviceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzNetworkFabricDevice_UpdateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDevice))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"Update certain properties of the Network Device resource.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"update certain properties of the Network Device resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkDevices/{networkDeviceName}", ApiVersion = "2023-06-15")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.NotSuggestDefaultParameterSet] @@ -41,15 +41,6 @@ public partial class UpdateAzNetworkFabricDevice_UpdateViaJsonString : global::S /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.UpdateAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -581,24 +567,7 @@ public UpdateAzNetworkFabricDevice_UpdateViaJsonString() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INetworkDevice var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/UpdateAzNetworkFabricInternetGateway_UpdateExpanded.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/UpdateAzNetworkFabricInternetGateway_UpdateExpanded.cs index afa1fa59e6c8..321861a4304e 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/UpdateAzNetworkFabricInternetGateway_UpdateExpanded.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/UpdateAzNetworkFabricInternetGateway_UpdateExpanded.cs @@ -43,15 +43,6 @@ public partial class UpdateAzNetworkFabricInternetGateway_UpdateExpanded : globa /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -273,11 +264,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.UpdateAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -593,24 +579,7 @@ public UpdateAzNetworkFabricInternetGateway_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternetGateway var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/UpdateAzNetworkFabricInternetGateway_UpdateViaIdentityExpanded.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/UpdateAzNetworkFabricInternetGateway_UpdateViaIdentityExpanded.cs index bf151e92444b..03b293ccdbf8 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/UpdateAzNetworkFabricInternetGateway_UpdateViaIdentityExpanded.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/UpdateAzNetworkFabricInternetGateway_UpdateViaIdentityExpanded.cs @@ -43,15 +43,6 @@ public partial class UpdateAzNetworkFabricInternetGateway_UpdateViaIdentityExpan /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -232,11 +223,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.UpdateAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -573,24 +559,7 @@ public UpdateAzNetworkFabricInternetGateway_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternetGateway var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/UpdateAzNetworkFabricInternetGateway_UpdateViaJsonFilePath.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/UpdateAzNetworkFabricInternetGateway_UpdateViaJsonFilePath.cs index a27adf7c49d6..3b38c657fb47 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/UpdateAzNetworkFabricInternetGateway_UpdateViaJsonFilePath.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/UpdateAzNetworkFabricInternetGateway_UpdateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class UpdateAzNetworkFabricInternetGateway_UpdateViaJsonFilePath /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -265,11 +256,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.UpdateAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -585,24 +571,7 @@ public UpdateAzNetworkFabricInternetGateway_UpdateViaJsonFilePath() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternetGateway var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/UpdateAzNetworkFabricInternetGateway_UpdateViaJsonString.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/UpdateAzNetworkFabricInternetGateway_UpdateViaJsonString.cs index 22f943d490fa..a97c1e6c5b04 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/UpdateAzNetworkFabricInternetGateway_UpdateViaJsonString.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/UpdateAzNetworkFabricInternetGateway_UpdateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class UpdateAzNetworkFabricInternetGateway_UpdateViaJsonString : /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.UpdateAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -583,24 +569,7 @@ public UpdateAzNetworkFabricInternetGateway_UpdateViaJsonString() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.IInternetGateway var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/UpdateAzNetworkFabricNeighborGroup_UpdateExpanded.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/UpdateAzNetworkFabricNeighborGroup_UpdateExpanded.cs index ee51f589a3de..72217063d1de 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/UpdateAzNetworkFabricNeighborGroup_UpdateExpanded.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/UpdateAzNetworkFabricNeighborGroup_UpdateExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Cmdlets; using System; - /// Update the Neighbor Group. + /// update the Neighbor Group. /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/neighborGroups/{neighborGroupName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzNetworkFabricNeighborGroup_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INeighborGroup))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"Update the Neighbor Group.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"update the Neighbor Group.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/neighborGroups/{neighborGroupName}", ApiVersion = "2023-06-15")] public partial class UpdateAzNetworkFabricNeighborGroup_UpdateExpanded : global::System.Management.Automation.PSCmdlet, @@ -43,15 +43,6 @@ public partial class UpdateAzNetworkFabricNeighborGroup_UpdateExpanded : global: /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Switch configuration description. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Switch configuration description.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Body)] @@ -284,11 +275,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.UpdateAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -604,24 +590,7 @@ public UpdateAzNetworkFabricNeighborGroup_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INeighborGroup var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/UpdateAzNetworkFabricNeighborGroup_UpdateViaIdentityExpanded.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/UpdateAzNetworkFabricNeighborGroup_UpdateViaIdentityExpanded.cs index d2d46e151c52..6680965e926b 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/UpdateAzNetworkFabricNeighborGroup_UpdateViaIdentityExpanded.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/UpdateAzNetworkFabricNeighborGroup_UpdateViaIdentityExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Cmdlets; using System; - /// Update the Neighbor Group. + /// update the Neighbor Group. /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/neighborGroups/{neighborGroupName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzNetworkFabricNeighborGroup_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INeighborGroup))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"Update the Neighbor Group.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"update the Neighbor Group.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/neighborGroups/{neighborGroupName}", ApiVersion = "2023-06-15")] public partial class UpdateAzNetworkFabricNeighborGroup_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, @@ -43,15 +43,6 @@ public partial class UpdateAzNetworkFabricNeighborGroup_UpdateViaIdentityExpande /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Switch configuration description. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Switch configuration description.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Body)] @@ -243,11 +234,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.UpdateAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -583,24 +569,7 @@ public UpdateAzNetworkFabricNeighborGroup_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INeighborGroup var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/UpdateAzNetworkFabricNeighborGroup_UpdateViaJsonFilePath.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/UpdateAzNetworkFabricNeighborGroup_UpdateViaJsonFilePath.cs index 3312fa87467f..0913d3e8f17e 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/UpdateAzNetworkFabricNeighborGroup_UpdateViaJsonFilePath.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/UpdateAzNetworkFabricNeighborGroup_UpdateViaJsonFilePath.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Cmdlets; using System; - /// Update the Neighbor Group. + /// update the Neighbor Group. /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/neighborGroups/{neighborGroupName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzNetworkFabricNeighborGroup_UpdateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INeighborGroup))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"Update the Neighbor Group.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"update the Neighbor Group.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/neighborGroups/{neighborGroupName}", ApiVersion = "2023-06-15")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.NotSuggestDefaultParameterSet] @@ -41,17 +41,8 @@ public partial class UpdateAzNetworkFabricNeighborGroup_UpdateViaJsonFilePath : /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -265,11 +256,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.UpdateAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -585,24 +571,7 @@ public UpdateAzNetworkFabricNeighborGroup_UpdateViaJsonFilePath() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INeighborGroup var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/UpdateAzNetworkFabricNeighborGroup_UpdateViaJsonString.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/UpdateAzNetworkFabricNeighborGroup_UpdateViaJsonString.cs index a42c7fbdfb52..be540a3c99d0 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/UpdateAzNetworkFabricNeighborGroup_UpdateViaJsonString.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/cmdlets/UpdateAzNetworkFabricNeighborGroup_UpdateViaJsonString.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.Cmdlets; using System; - /// Update the Neighbor Group. + /// update the Neighbor Group. /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/neighborGroups/{neighborGroupName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzNetworkFabricNeighborGroup_UpdateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INeighborGroup))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"Update the Neighbor Group.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Description(@"update the Neighbor Group.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/neighborGroups/{neighborGroupName}", ApiVersion = "2023-06-15")] [global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.NotSuggestDefaultParameterSet] @@ -41,15 +41,6 @@ public partial class UpdateAzNetworkFabricNeighborGroup_UpdateViaJsonString : gl /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ManagedNetworkFabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Cmdlets.UpdateAzN /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -581,24 +567,7 @@ public UpdateAzNetworkFabricNeighborGroup_UpdateViaJsonString() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Models.INeighborGroup var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs index 8e114cc4c601..d9e2c6466d68 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs @@ -36,14 +36,23 @@ internal class PsHelpInfo public object Role { get; } public string NonTerminatingErrors { get; } + public static string CapitalizeFirstLetter(string text) + { + if (string.IsNullOrEmpty(text)) + return text; + + return char.ToUpper(text[0]) + text.Substring(1); + } + public PsHelpInfo(PSObject helpObject = null) { helpObject = helpObject ?? new PSObject(); CmdletName = helpObject.GetProperty("Name").NullIfEmpty() ?? helpObject.GetNestedProperty("details", "name"); ModuleName = helpObject.GetProperty("ModuleName"); - Synopsis = helpObject.GetProperty("Synopsis"); + Synopsis = CapitalizeFirstLetter(helpObject.GetProperty("Synopsis")); Description = helpObject.GetProperty("description").EmptyIfNull().ToDescriptionText().NullIfEmpty() ?? helpObject.GetNestedProperty("details", "description").EmptyIfNull().ToDescriptionText(); + Description = CapitalizeFirstLetter(Description); AlertText = helpObject.GetNestedProperty("alertSet", "alert").EmptyIfNull().ToDescriptionText(); Category = helpObject.GetProperty("Category"); HasCommonParameters = helpObject.GetProperty("CommonParameters").ToNullableBool(); diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index b6531abe794e..afb1e122ebb7 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -216,6 +216,20 @@ public string GetProcessCustomAttributesAtRuntime() {Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)"; } + private string GetLoginVerification() + { + if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) + { + return $@" +{Indent}{Indent}$context = Get-AzContext +{Indent}{Indent}if (-not $context -and -not $testPlayback) {{ +{Indent}{Indent}{Indent}throw ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" +{Indent}{Indent}}} +"; + } + return ""; + } + private string GetTelemetry() { if (!VariantGroup.IsInternal && IsAzure) @@ -248,10 +262,16 @@ public override string ToString() => $@"begin {{ {Indent}{Indent}{Indent}$PSBoundParameters['OutBuffer'] = 1 {Indent}{Indent}}} {Indent}{Indent}$parameterSet = $PSCmdlet.ParameterSetName -{GetTelemetry()} +{Indent}{Indent} +{Indent}{Indent}$testPlayback = $false +{Indent}{Indent}$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object {{ if ($_) {{ $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) }} }} +{GetLoginVerification()}{GetTelemetry()} {GetParameterSetToCmdletMapping()}{GetDefaultValuesStatements()} {GetProcessCustomAttributesAtRuntime()} {Indent}{Indent}$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) +{Indent}{Indent}if ($wrappedCmd -eq $null) {{ +{Indent}{Indent}{Indent}$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) +{Indent}{Indent}}} {Indent}{Indent}$scriptCmd = {{& $wrappedCmd @PSBoundParameters}} {Indent}{Indent}$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) {Indent}{Indent}$steppablePipeline.Begin($PSCmdlet) @@ -295,8 +315,6 @@ private string GetDefaultValuesStatements() if ("SubscriptionId".Equals(parameterName)) { sb.AppendLine($"{Indent}{Indent}if (({variantListString}) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('{parameterName}'){setCondition}) {{"); - sb.AppendLine($"{Indent}{Indent}{Indent}$testPlayback = $false"); - sb.AppendLine($"{Indent}{Indent}{Indent}$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object {{ if ($_) {{ $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.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 {{"); diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs index 365a299fe846..2ff6ed506091 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs @@ -49,6 +49,7 @@ internal class VariantGroup public PsHelpInfo HelpInfo { get; } public bool IsGenerated { get; } public bool IsInternal { get; } + public bool IsModelCmdlet { get; } public string OutputFolder { get; } public string FileName { get; } public string FilePath { get; } @@ -83,6 +84,7 @@ public VariantGroup(string moduleName, string cmdletName, Variant[] variants, st HelpInfo = Variants.Select(v => v.HelpInfo).FirstOrDefault() ?? new PsHelpInfo(); IsGenerated = Variants.All(v => v.Attributes.OfType().Any()); IsInternal = isInternal; + IsModelCmdlet = Variants.All(v => v.IsModelCmdlet); OutputFolder = outputFolder; FileName = $"{CmdletName}{(isTest ? ".Tests" : String.Empty)}.ps1"; FilePath = Path.Combine(OutputFolder, FileName); @@ -143,6 +145,7 @@ internal class Variant public Parameter[] Parameters { get; } public Parameter[] CmdletOnlyParameters { get; } public bool IsInternal { get; } + public bool IsModelCmdlet { get; } public bool IsDoNotExport { get; } public bool IsNotSuggestDefaultParameterSet { get; } public string[] Profiles { get; } @@ -165,6 +168,7 @@ public Variant(string cmdletName, string variantName, CommandInfo info, CommandM Parameters = this.ToParameters().OrderBy(p => p.OrderCategory).ThenByDescending(p => p.IsMandatory).ToArray(); IsInternal = Attributes.OfType().Any(); IsDoNotExport = Attributes.OfType().Any(); + IsModelCmdlet = Attributes.OfType().Any(); IsNotSuggestDefaultParameterSet = Attributes.OfType().Any(); CmdletOnlyParameters = Parameters.Where(p => !p.Categories.Any(c => c == ParameterCategory.Azure || c == ParameterCategory.Runtime)).ToArray(); Profiles = Attributes.OfType().SelectMany(pa => pa.Profiles).ToArray(); @@ -388,6 +392,7 @@ public CommentInfo(VariantGroup variantGroup) var helpInfo = variantGroup.HelpInfo; Description = variantGroup.Variants.SelectMany(v => v.Attributes).OfType().FirstOrDefault()?.Description.NullIfEmpty() ?? helpInfo.Description.EmptyIfNull(); + Description = PsHelpInfo.CapitalizeFirstLetter(Description); // If there is no Synopsis, PowerShell may put in the Syntax string as the Synopsis. This seems unintended, so we remove the Synopsis in this situation. var synopsis = helpInfo.Synopsis.EmptyIfNull().Trim().StartsWith(variantGroup.CmdletName) ? String.Empty : helpInfo.Synopsis; Synopsis = synopsis.NullIfEmpty() ?? Description; diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/runtime/BuildTime/PsAttributes.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/runtime/BuildTime/PsAttributes.cs index fea19a9d05d5..204faa0694ed 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/runtime/BuildTime/PsAttributes.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/runtime/BuildTime/PsAttributes.cs @@ -22,6 +22,11 @@ public class DoNotExportAttribute : Attribute { } + [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property)] + public class ModelCmdletAttribute : Attribute + { + } + [AttributeUsage(AttributeTargets.Class)] public class InternalExportAttribute : Attribute { diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/runtime/Context.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/runtime/Context.cs index 1baac1d86fac..2ba10f89654c 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/runtime/Context.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime /// The IContext Interface defines the communication mechanism for input customization. /// /// - /// In the context, we will have client, pipeline, PSBoundParamters, default EventListener, Cancellation. + /// In the context, we will have client, pipeline, PSBoundParameters, default EventListener, Cancellation. /// public interface IContext { diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/runtime/MessageAttribute.cs b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/runtime/MessageAttribute.cs index 0a59cccaea2a..0c4768a66041 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/runtime/MessageAttribute.cs +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/runtime/MessageAttribute.cs @@ -16,9 +16,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime public class GenericBreakingChangeAttribute : Attribute { private string _message; - //A dexcription of what the change is about, non mandatory + //A description of what the change is about, non mandatory public string ChangeDescription { get; set; } = null; + //Name of the module that is being deprecated + public string moduleName { get; set; } = String.IsNullOrEmpty(@"") ? @"Az.ManagedNetworkFabric" : @""; + //The version the change is effective from, non mandatory public string DeprecateByVersion { get; } public string DeprecateByAzVersion { get; } @@ -82,7 +85,7 @@ public void PrintCustomAttributeInfo(Action writeOutput) } writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByAzVersion, this.DeprecateByAzVersion)); - writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.DeprecateByVersion)); + writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.moduleName, this.DeprecateByVersion)); if (OldWay != null && NewWay != null) { @@ -191,11 +194,11 @@ public PreviewMessageAttribute(string message, string estimatedDateOfGa) : this( this.IsEstimatedGaDateSet = true; } } - + public void PrintCustomAttributeInfo(Action writeOutput) { writeOutput(this._message); - + if (IsEstimatedGaDateSet) { writeOutput(string.Format(Resources.PreviewCmdletETAMessage, this.EstimatedGaDate.ToShortDateString())); diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/runtime/Properties/Resources.resx b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/runtime/Properties/Resources.resx index a08a2e50172b..4ef90b70573d 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/generated/runtime/Properties/Resources.resx +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.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 version : '{0}' +- The change is expected to take effect in '{0}' from version : '{1}' ```powershell diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/internal/Get-AzNetworkFabricOperation.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/internal/Get-AzNetworkFabricOperation.ps1 index f609b8643af0..9529d759ad98 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/internal/Get-AzNetworkFabricOperation.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/internal/Get-AzNetworkFabricOperation.ps1 @@ -90,11 +90,17 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ List = 'Az.ManagedNetworkFabric.private\Get-AzNetworkFabricOperation_List'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/internal/ProxyCmdletDefinitions.ps1 b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/internal/ProxyCmdletDefinitions.ps1 index f609b8643af0..9529d759ad98 100644 --- a/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/internal/ProxyCmdletDefinitions.ps1 +++ b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/internal/ProxyCmdletDefinitions.ps1 @@ -90,11 +90,17 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ManagedNetworkFabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ List = 'Az.ManagedNetworkFabric.private\Get-AzNetworkFabricOperation_List'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/src/KeyVault/KeyVault.Autorest/resources/README.md b/generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/resources/README.md similarity index 100% rename from src/KeyVault/KeyVault.Autorest/resources/README.md rename to generated/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/resources/README.md diff --git a/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/exports/Get-AzFederatedIdentityCredential.ps1 b/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/exports/Get-AzFederatedIdentityCredential.ps1 index e33978e43c32..f6f1f0cf5453 100644 --- a/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/exports/Get-AzFederatedIdentityCredential.ps1 +++ b/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/exports/Get-AzFederatedIdentityCredential.ps1 @@ -162,8 +162,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/exports/Get-AzSystemAssignedIdentity.ps1 b/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/exports/Get-AzSystemAssignedIdentity.ps1 index a7618bb14ed7..24fe678c3083 100644 --- a/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/exports/Get-AzSystemAssignedIdentity.ps1 +++ b/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/exports/Get-AzSystemAssignedIdentity.ps1 @@ -100,8 +100,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/exports/Get-AzUserAssignedIdentity.ps1 b/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/exports/Get-AzUserAssignedIdentity.ps1 index 1699467cb2cb..bd9dad9b68b9 100644 --- a/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/exports/Get-AzUserAssignedIdentity.ps1 +++ b/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/exports/Get-AzUserAssignedIdentity.ps1 @@ -142,8 +142,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/exports/Get-AzUserAssignedIdentityAssociatedResource.ps1 b/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/exports/Get-AzUserAssignedIdentityAssociatedResource.ps1 index 07bfa01df97e..8da24ee09a5e 100644 --- a/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/exports/Get-AzUserAssignedIdentityAssociatedResource.ps1 +++ b/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/exports/Get-AzUserAssignedIdentityAssociatedResource.ps1 @@ -146,8 +146,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/exports/New-AzFederatedIdentityCredential.ps1 b/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/exports/New-AzFederatedIdentityCredential.ps1 index 10eaf70c30e9..bd67c96e2e68 100644 --- a/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/exports/New-AzFederatedIdentityCredential.ps1 +++ b/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/exports/New-AzFederatedIdentityCredential.ps1 @@ -157,8 +157,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/exports/New-AzUserAssignedIdentity.ps1 b/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/exports/New-AzUserAssignedIdentity.ps1 index 1dcdf3db79ea..a5633ed858b5 100644 --- a/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/exports/New-AzUserAssignedIdentity.ps1 +++ b/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/exports/New-AzUserAssignedIdentity.ps1 @@ -137,8 +137,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/exports/ProxyCmdletDefinitions.ps1 index 25f9568a7e7c..fa46ff858810 100644 --- a/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -162,8 +162,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -334,8 +333,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -543,8 +541,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -755,8 +752,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -985,8 +981,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1197,8 +1192,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1417,8 +1411,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1628,8 +1621,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1886,8 +1878,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2129,8 +2120,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/exports/Remove-AzFederatedIdentityCredential.ps1 b/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/exports/Remove-AzFederatedIdentityCredential.ps1 index 943ae35f2420..c38ee47ba09a 100644 --- a/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/exports/Remove-AzFederatedIdentityCredential.ps1 +++ b/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/exports/Remove-AzFederatedIdentityCredential.ps1 @@ -148,8 +148,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/exports/Remove-AzUserAssignedIdentity.ps1 b/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/exports/Remove-AzUserAssignedIdentity.ps1 index 729e30c8f34d..7852712d2bf3 100644 --- a/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/exports/Remove-AzUserAssignedIdentity.ps1 +++ b/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/exports/Remove-AzUserAssignedIdentity.ps1 @@ -140,8 +140,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/exports/Update-AzFederatedIdentityCredential.ps1 b/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/exports/Update-AzFederatedIdentityCredential.ps1 index aadb93a1830e..35f247a03132 100644 --- a/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/exports/Update-AzFederatedIdentityCredential.ps1 +++ b/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/exports/Update-AzFederatedIdentityCredential.ps1 @@ -187,8 +187,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/exports/Update-AzUserAssignedIdentity.ps1 b/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/exports/Update-AzUserAssignedIdentity.ps1 index 5cb95897856a..e025857017dd 100644 --- a/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/exports/Update-AzUserAssignedIdentity.ps1 +++ b/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/exports/Update-AzUserAssignedIdentity.ps1 @@ -167,8 +167,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/generated/cmdlets/RemoveAzFederatedIdentityCredential_Delete.cs b/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/generated/cmdlets/RemoveAzFederatedIdentityCredential_Delete.cs index 0ee7d7ad88c3..10541602c4e7 100644 --- a/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/generated/cmdlets/RemoveAzFederatedIdentityCredential_Delete.cs +++ b/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/generated/cmdlets/RemoveAzFederatedIdentityCredential_Delete.cs @@ -509,7 +509,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -533,7 +533,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/generated/cmdlets/RemoveAzFederatedIdentityCredential_DeleteViaIdentity.cs b/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/generated/cmdlets/RemoveAzFederatedIdentityCredential_DeleteViaIdentity.cs index af7ea56b4747..c3ad42fe645b 100644 --- a/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/generated/cmdlets/RemoveAzFederatedIdentityCredential_DeleteViaIdentity.cs +++ b/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/generated/cmdlets/RemoveAzFederatedIdentityCredential_DeleteViaIdentity.cs @@ -480,7 +480,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -504,7 +504,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/generated/cmdlets/RemoveAzUserAssignedIdentity_Delete.cs b/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/generated/cmdlets/RemoveAzUserAssignedIdentity_Delete.cs index 0789d95311e5..6c38656b0699 100644 --- a/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/generated/cmdlets/RemoveAzUserAssignedIdentity_Delete.cs +++ b/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/generated/cmdlets/RemoveAzUserAssignedIdentity_Delete.cs @@ -494,7 +494,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -518,7 +518,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/generated/cmdlets/RemoveAzUserAssignedIdentity_DeleteViaIdentity.cs b/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/generated/cmdlets/RemoveAzUserAssignedIdentity_DeleteViaIdentity.cs index 5b40405e7165..de38a9eef769 100644 --- a/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/generated/cmdlets/RemoveAzUserAssignedIdentity_DeleteViaIdentity.cs +++ b/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/generated/cmdlets/RemoveAzUserAssignedIdentity_DeleteViaIdentity.cs @@ -475,7 +475,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -499,7 +499,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 56ba8c16f688..b71273008b9e 100644 --- a/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -218,13 +218,12 @@ public string GetProcessCustomAttributesAtRuntime() private string GetLoginVerification() { - if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) + if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) { return $@" {Indent}{Indent}$context = Get-AzContext {Indent}{Indent}if (-not $context -and -not $testPlayback) {{ -{Indent}{Indent}{Indent}Write-Error ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" -{Indent}{Indent}{Indent}exit +{Indent}{Indent}{Indent}throw ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" {Indent}{Indent}}} "; } diff --git a/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/generated/runtime/Context.cs b/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/generated/runtime/Context.cs index 3c8509643eea..aa30417f9a04 100644 --- a/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/generated/runtime/Context.cs +++ b/generated/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedServiceIdentity.Runtime /// The IContext Interface defines the communication mechanism for input customization. /// /// - /// In the context, we will have client, pipeline, PSBoundParamters, default EventListener, Cancellation. + /// In the context, we will have client, pipeline, PSBoundParameters, default EventListener, Cancellation. /// public interface IContext { diff --git a/generated/Maps/Maps.Autorest/exports/Get-AzMapsAccount.ps1 b/generated/Maps/Maps.Autorest/exports/Get-AzMapsAccount.ps1 index b3c95493a78d..2a3562e42516 100644 --- a/generated/Maps/Maps.Autorest/exports/Get-AzMapsAccount.ps1 +++ b/generated/Maps/Maps.Autorest/exports/Get-AzMapsAccount.ps1 @@ -142,8 +142,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Maps/Maps.Autorest/exports/Get-AzMapsAccountKey.ps1 b/generated/Maps/Maps.Autorest/exports/Get-AzMapsAccountKey.ps1 index 7798dca8c9ea..a7aca6ef6b81 100644 --- a/generated/Maps/Maps.Autorest/exports/Get-AzMapsAccountKey.ps1 +++ b/generated/Maps/Maps.Autorest/exports/Get-AzMapsAccountKey.ps1 @@ -117,8 +117,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Maps/Maps.Autorest/exports/Get-AzMapsCreator.ps1 b/generated/Maps/Maps.Autorest/exports/Get-AzMapsCreator.ps1 index 1ab2ee30f232..62d2ad84cc88 100644 --- a/generated/Maps/Maps.Autorest/exports/Get-AzMapsCreator.ps1 +++ b/generated/Maps/Maps.Autorest/exports/Get-AzMapsCreator.ps1 @@ -160,8 +160,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Maps/Maps.Autorest/exports/Get-AzMapsSubscriptionOperation.ps1 b/generated/Maps/Maps.Autorest/exports/Get-AzMapsSubscriptionOperation.ps1 index 238811dd097f..cb7c14186638 100644 --- a/generated/Maps/Maps.Autorest/exports/Get-AzMapsSubscriptionOperation.ps1 +++ b/generated/Maps/Maps.Autorest/exports/Get-AzMapsSubscriptionOperation.ps1 @@ -100,8 +100,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Maps/Maps.Autorest/exports/New-AzMapsAccount.ps1 b/generated/Maps/Maps.Autorest/exports/New-AzMapsAccount.ps1 index 5da3cb1a8d39..135053199447 100644 --- a/generated/Maps/Maps.Autorest/exports/New-AzMapsAccount.ps1 +++ b/generated/Maps/Maps.Autorest/exports/New-AzMapsAccount.ps1 @@ -16,10 +16,10 @@ <# .Synopsis -create a Maps Account. +Create a Maps Account. A Maps Account holds the keys which allow access to the Maps REST APIs. .Description -create a Maps Account. +Create a Maps Account. A Maps Account holds the keys which allow access to the Maps REST APIs. .Example New-AzMapsAccount -ResourceGroupName azure-rg-test -Name pwsh-mapsAccount01 -SkuName S0 -Location eastus @@ -162,8 +162,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Maps/Maps.Autorest/exports/New-AzMapsAccountKey.ps1 b/generated/Maps/Maps.Autorest/exports/New-AzMapsAccountKey.ps1 index b8e06536faa0..e8026384a115 100644 --- a/generated/Maps/Maps.Autorest/exports/New-AzMapsAccountKey.ps1 +++ b/generated/Maps/Maps.Autorest/exports/New-AzMapsAccountKey.ps1 @@ -162,8 +162,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Maps/Maps.Autorest/exports/New-AzMapsCreator.ps1 b/generated/Maps/Maps.Autorest/exports/New-AzMapsCreator.ps1 index d21b5dc77d0b..bbef85a0fe3b 100644 --- a/generated/Maps/Maps.Autorest/exports/New-AzMapsCreator.ps1 +++ b/generated/Maps/Maps.Autorest/exports/New-AzMapsCreator.ps1 @@ -16,11 +16,11 @@ <# .Synopsis -create a Maps Creator resource. +Create a Maps Creator resource. Creator resource will manage Azure resources required to populate a custom set of mapping data. It requires an account to exist before it can be created. .Description -create a Maps Creator resource. +Create a Maps Creator resource. Creator resource will manage Azure resources required to populate a custom set of mapping data. It requires an account to exist before it can be created. .Example @@ -184,8 +184,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Maps/Maps.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/Maps/Maps.Autorest/exports/ProxyCmdletDefinitions.ps1 index 56fe15eb6805..f778471eb5d2 100644 --- a/generated/Maps/Maps.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/Maps/Maps.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -117,8 +117,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -329,8 +328,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -562,8 +560,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -735,8 +732,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -967,8 +963,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1056,10 +1051,10 @@ end { <# .Synopsis -create a Maps Account. +Create a Maps Account. A Maps Account holds the keys which allow access to the Maps REST APIs. .Description -create a Maps Account. +Create a Maps Account. A Maps Account holds the keys which allow access to the Maps REST APIs. .Example New-AzMapsAccount -ResourceGroupName azure-rg-test -Name pwsh-mapsAccount01 -SkuName S0 -Location eastus @@ -1202,8 +1197,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1290,11 +1284,11 @@ end { <# .Synopsis -create a Maps Creator resource. +Create a Maps Creator resource. Creator resource will manage Azure resources required to populate a custom set of mapping data. It requires an account to exist before it can be created. .Description -create a Maps Creator resource. +Create a Maps Creator resource. Creator resource will manage Azure resources required to populate a custom set of mapping data. It requires an account to exist before it can be created. .Example @@ -1458,8 +1452,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1672,8 +1665,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1904,8 +1896,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1992,10 +1983,10 @@ end { <# .Synopsis -update a Maps Account. +Update a Maps Account. Only a subset of the parameters may be updated after creation, such as Sku, Tags, Properties. .Description -update a Maps Account. +Update a Maps Account. Only a subset of the parameters may be updated after creation, such as Sku, Tags, Properties. .Example Update-AzMapsAccount -ResourceGroupName azure-rg-test -Name pwsh-mapsAccount03 -Tag @{'key1'='value1'; 'key2'='value2'} @@ -2166,8 +2157,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2255,10 +2245,10 @@ end { <# .Synopsis -update the Maps Creator resource. +Update the Maps Creator resource. Only a subset of the parameters may be updated after creation, such as Tags. .Description -update the Maps Creator resource. +Update the Maps Creator resource. Only a subset of the parameters may be updated after creation, such as Tags. .Example Update-AzMapsCreator -ResourceGroupName azure-rg-test -AccountName pwsh-mapsAccount03 -Name creator-01 -Tag @{'key1'='value1'; 'key2'='value2'} @@ -2437,8 +2427,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Maps/Maps.Autorest/exports/Remove-AzMapsAccount.ps1 b/generated/Maps/Maps.Autorest/exports/Remove-AzMapsAccount.ps1 index 16c33e61f312..f979f81073dc 100644 --- a/generated/Maps/Maps.Autorest/exports/Remove-AzMapsAccount.ps1 +++ b/generated/Maps/Maps.Autorest/exports/Remove-AzMapsAccount.ps1 @@ -141,8 +141,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Maps/Maps.Autorest/exports/Remove-AzMapsCreator.ps1 b/generated/Maps/Maps.Autorest/exports/Remove-AzMapsCreator.ps1 index 820c6e6cbceb..ee796072e912 100644 --- a/generated/Maps/Maps.Autorest/exports/Remove-AzMapsCreator.ps1 +++ b/generated/Maps/Maps.Autorest/exports/Remove-AzMapsCreator.ps1 @@ -161,8 +161,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Maps/Maps.Autorest/exports/Update-AzMapsAccount.ps1 b/generated/Maps/Maps.Autorest/exports/Update-AzMapsAccount.ps1 index 0871bf71bb42..2f1a485a99dd 100644 --- a/generated/Maps/Maps.Autorest/exports/Update-AzMapsAccount.ps1 +++ b/generated/Maps/Maps.Autorest/exports/Update-AzMapsAccount.ps1 @@ -16,10 +16,10 @@ <# .Synopsis -update a Maps Account. +Update a Maps Account. Only a subset of the parameters may be updated after creation, such as Sku, Tags, Properties. .Description -update a Maps Account. +Update a Maps Account. Only a subset of the parameters may be updated after creation, such as Sku, Tags, Properties. .Example Update-AzMapsAccount -ResourceGroupName azure-rg-test -Name pwsh-mapsAccount03 -Tag @{'key1'='value1'; 'key2'='value2'} @@ -190,8 +190,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Maps/Maps.Autorest/exports/Update-AzMapsCreator.ps1 b/generated/Maps/Maps.Autorest/exports/Update-AzMapsCreator.ps1 index f1b9dd0faf17..863704ef8d7d 100644 --- a/generated/Maps/Maps.Autorest/exports/Update-AzMapsCreator.ps1 +++ b/generated/Maps/Maps.Autorest/exports/Update-AzMapsCreator.ps1 @@ -16,10 +16,10 @@ <# .Synopsis -update the Maps Creator resource. +Update the Maps Creator resource. Only a subset of the parameters may be updated after creation, such as Tags. .Description -update the Maps Creator resource. +Update the Maps Creator resource. Only a subset of the parameters may be updated after creation, such as Tags. .Example Update-AzMapsCreator -ResourceGroupName azure-rg-test -AccountName pwsh-mapsAccount03 -Name creator-01 -Tag @{'key1'='value1'; 'key2'='value2'} @@ -198,8 +198,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Maps/Maps.Autorest/generated/api/Models/Creator.cs b/generated/Maps/Maps.Autorest/generated/api/Models/Creator.cs index 9e6a36a40573..76ebba422945 100644 --- a/generated/Maps/Maps.Autorest/generated/api/Models/Creator.cs +++ b/generated/Maps/Maps.Autorest/generated/api/Models/Creator.cs @@ -34,16 +34,16 @@ public partial class Creator : Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.ICreatorProperties Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.ICreatorInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.CreatorProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.ICreatorInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.ICreatorPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.ICreatorPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.ICreatorInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.ICreatorPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.ICreatorPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Maps.Origin(Microsoft.Azure.PowerShell.Cmdlets.Maps.PropertyOrigin.Inherited)] diff --git a/generated/Maps/Maps.Autorest/generated/api/Models/CreatorUpdateParameters.cs b/generated/Maps/Maps.Autorest/generated/api/Models/CreatorUpdateParameters.cs index d7ad3858ac5c..e5dc9e0128c0 100644 --- a/generated/Maps/Maps.Autorest/generated/api/Models/CreatorUpdateParameters.cs +++ b/generated/Maps/Maps.Autorest/generated/api/Models/CreatorUpdateParameters.cs @@ -17,7 +17,7 @@ public partial class CreatorUpdateParameters : Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.ICreatorProperties Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.ICreatorUpdateParametersInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.CreatorProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.ICreatorUpdateParametersInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.ICreatorPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.ICreatorPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.ICreatorUpdateParametersInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.ICreatorPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.ICreatorPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.ICreatorProperties _property; diff --git a/generated/Maps/Maps.Autorest/generated/api/Models/ErrorResponse.cs b/generated/Maps/Maps.Autorest/generated/api/Models/ErrorResponse.cs index 8dd31ebf8541..ef5950eaa818 100644 --- a/generated/Maps/Maps.Autorest/generated/api/Models/ErrorResponse.cs +++ b/generated/Maps/Maps.Autorest/generated/api/Models/ErrorResponse.cs @@ -40,22 +40,22 @@ public partial class ErrorResponse : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IErrorDetailInternal)Error).Message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IErrorDetailInternal)Error).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IErrorDetailInternal)Error).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IErrorDetailInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IErrorDetailInternal)Error).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IErrorDetailInternal)Error).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IErrorDetailInternal)Error).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for Error Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.ErrorDetail()); set { {_error = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IErrorDetailInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IErrorDetailInternal)Error).Message = value ?? null; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IErrorDetailInternal)Error).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IErrorDetailInternal)Error).Target = value ?? null; } /// The error target. [Microsoft.Azure.PowerShell.Cmdlets.Maps.Origin(Microsoft.Azure.PowerShell.Cmdlets.Maps.PropertyOrigin.Inlined)] diff --git a/generated/Maps/Maps.Autorest/generated/api/Models/MapsAccount.cs b/generated/Maps/Maps.Autorest/generated/api/Models/MapsAccount.cs index 0fec047fb1cf..35337b408f7b 100644 --- a/generated/Maps/Maps.Autorest/generated/api/Models/MapsAccount.cs +++ b/generated/Maps/Maps.Autorest/generated/api/Models/MapsAccount.cs @@ -46,46 +46,46 @@ public partial class MapsAccount : Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IMapsAccountProperties Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IMapsAccountInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.MapsAccountProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IMapsAccountInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IMapsAccountPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IMapsAccountPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IMapsAccountInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IMapsAccountPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IMapsAccountPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Sku Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.ISku Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IMapsAccountInternal.Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.Sku()); set { {_sku = value;} } } /// Internal Acessors for SkuTier - string Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IMapsAccountInternal.SkuTier { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.ISkuInternal)Sku).Tier; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.ISkuInternal)Sku).Tier = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IMapsAccountInternal.SkuTier { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.ISkuInternal)Sku).Tier; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.ISkuInternal)Sku).Tier = value ?? null; } /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IMapsAccountInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.SystemData()); set { {_systemData = value;} } } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IMapsAccountInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.ISystemDataInternal)SystemData).CreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IMapsAccountInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IMapsAccountInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.ISystemDataInternal)SystemData).CreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IMapsAccountInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IMapsAccountInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.ISystemDataInternal)SystemData).CreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IMapsAccountInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IMapsAccountInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.ISystemDataInternal)SystemData).LastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IMapsAccountInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IMapsAccountInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.ISystemDataInternal)SystemData).LastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IMapsAccountInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IMapsAccountInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.ISystemDataInternal)SystemData).LastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IMapsAccountInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } /// Internal Acessors for UniqueId - string Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IMapsAccountInternal.UniqueId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IMapsAccountPropertiesInternal)Property).UniqueId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IMapsAccountPropertiesInternal)Property).UniqueId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IMapsAccountInternal.UniqueId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IMapsAccountPropertiesInternal)Property).UniqueId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IMapsAccountPropertiesInternal)Property).UniqueId = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Maps.Origin(Microsoft.Azure.PowerShell.Cmdlets.Maps.PropertyOrigin.Inherited)] diff --git a/generated/Maps/Maps.Autorest/generated/api/Models/MapsAccountUpdateParameters.cs b/generated/Maps/Maps.Autorest/generated/api/Models/MapsAccountUpdateParameters.cs index 378d2a1ef3dd..3737cea1cdb6 100644 --- a/generated/Maps/Maps.Autorest/generated/api/Models/MapsAccountUpdateParameters.cs +++ b/generated/Maps/Maps.Autorest/generated/api/Models/MapsAccountUpdateParameters.cs @@ -31,16 +31,16 @@ public partial class MapsAccountUpdateParameters : Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IMapsAccountProperties Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IMapsAccountUpdateParametersInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.MapsAccountProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IMapsAccountUpdateParametersInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IMapsAccountPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IMapsAccountPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IMapsAccountUpdateParametersInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IMapsAccountPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IMapsAccountPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Sku Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.ISku Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IMapsAccountUpdateParametersInternal.Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.Sku()); set { {_sku = value;} } } /// Internal Acessors for SkuTier - string Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IMapsAccountUpdateParametersInternal.SkuTier { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.ISkuInternal)Sku).Tier; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.ISkuInternal)Sku).Tier = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IMapsAccountUpdateParametersInternal.SkuTier { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.ISkuInternal)Sku).Tier; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.ISkuInternal)Sku).Tier = value ?? null; } /// Internal Acessors for UniqueId - string Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IMapsAccountUpdateParametersInternal.UniqueId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IMapsAccountPropertiesInternal)Property).UniqueId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IMapsAccountPropertiesInternal)Property).UniqueId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IMapsAccountUpdateParametersInternal.UniqueId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IMapsAccountPropertiesInternal)Property).UniqueId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IMapsAccountPropertiesInternal)Property).UniqueId = value ?? null; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IMapsAccountProperties _property; diff --git a/generated/Maps/Maps.Autorest/generated/api/Models/OperationDetail.cs b/generated/Maps/Maps.Autorest/generated/api/Models/OperationDetail.cs index 5082d56e67b7..7aaa3f48883d 100644 --- a/generated/Maps/Maps.Autorest/generated/api/Models/OperationDetail.cs +++ b/generated/Maps/Maps.Autorest/generated/api/Models/OperationDetail.cs @@ -50,7 +50,7 @@ public partial class OperationDetail : Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IOperationProperties Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IOperationDetailInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.OperationProperties()); set { {_property = value;} } } /// Internal Acessors for ServiceSpecification - Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IServiceSpecification Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IOperationDetailInternal.ServiceSpecification { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IOperationPropertiesInternal)Property).ServiceSpecification; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IOperationPropertiesInternal)Property).ServiceSpecification = value; } + Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IServiceSpecification Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IOperationDetailInternal.ServiceSpecification { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IOperationPropertiesInternal)Property).ServiceSpecification; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IOperationPropertiesInternal)Property).ServiceSpecification = value ?? null /* model class */; } /// Backing field for property. private string _name; diff --git a/generated/Maps/Maps.Autorest/generated/api/Models/TrackedResource.cs b/generated/Maps/Maps.Autorest/generated/api/Models/TrackedResource.cs index 6c92d801f4f0..17f992d908fc 100644 --- a/generated/Maps/Maps.Autorest/generated/api/Models/TrackedResource.cs +++ b/generated/Maps/Maps.Autorest/generated/api/Models/TrackedResource.cs @@ -34,13 +34,13 @@ public partial class TrackedResource : public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Maps.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Maps.Origin(Microsoft.Azure.PowerShell.Cmdlets.Maps.PropertyOrigin.Inherited)] diff --git a/generated/Maps/Maps.Autorest/generated/cmdlets/RemoveAzMapsAccount_Delete.cs b/generated/Maps/Maps.Autorest/generated/cmdlets/RemoveAzMapsAccount_Delete.cs index b3f2b41fa9d2..923902b56953 100644 --- a/generated/Maps/Maps.Autorest/generated/cmdlets/RemoveAzMapsAccount_Delete.cs +++ b/generated/Maps/Maps.Autorest/generated/cmdlets/RemoveAzMapsAccount_Delete.cs @@ -495,7 +495,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -519,7 +519,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Maps/Maps.Autorest/generated/cmdlets/RemoveAzMapsAccount_DeleteViaIdentity.cs b/generated/Maps/Maps.Autorest/generated/cmdlets/RemoveAzMapsAccount_DeleteViaIdentity.cs index d1a7e0c0427d..2793db5c2b66 100644 --- a/generated/Maps/Maps.Autorest/generated/cmdlets/RemoveAzMapsAccount_DeleteViaIdentity.cs +++ b/generated/Maps/Maps.Autorest/generated/cmdlets/RemoveAzMapsAccount_DeleteViaIdentity.cs @@ -475,7 +475,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -499,7 +499,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Maps/Maps.Autorest/generated/cmdlets/RemoveAzMapsCreator_Delete.cs b/generated/Maps/Maps.Autorest/generated/cmdlets/RemoveAzMapsCreator_Delete.cs index 852378458cc9..9263a88ad504 100644 --- a/generated/Maps/Maps.Autorest/generated/cmdlets/RemoveAzMapsCreator_Delete.cs +++ b/generated/Maps/Maps.Autorest/generated/cmdlets/RemoveAzMapsCreator_Delete.cs @@ -509,7 +509,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -533,7 +533,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Maps/Maps.Autorest/generated/cmdlets/RemoveAzMapsCreator_DeleteViaIdentity.cs b/generated/Maps/Maps.Autorest/generated/cmdlets/RemoveAzMapsCreator_DeleteViaIdentity.cs index c11ad5d0f875..b0b6d9eca33f 100644 --- a/generated/Maps/Maps.Autorest/generated/cmdlets/RemoveAzMapsCreator_DeleteViaIdentity.cs +++ b/generated/Maps/Maps.Autorest/generated/cmdlets/RemoveAzMapsCreator_DeleteViaIdentity.cs @@ -479,7 +479,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -503,7 +503,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Maps/Maps.Autorest/generated/cmdlets/RemoveAzMapsCreator_DeleteViaIdentityAccount.cs b/generated/Maps/Maps.Autorest/generated/cmdlets/RemoveAzMapsCreator_DeleteViaIdentityAccount.cs index 27ac65addfbc..51bd0dc7ee0d 100644 --- a/generated/Maps/Maps.Autorest/generated/cmdlets/RemoveAzMapsCreator_DeleteViaIdentityAccount.cs +++ b/generated/Maps/Maps.Autorest/generated/cmdlets/RemoveAzMapsCreator_DeleteViaIdentityAccount.cs @@ -491,7 +491,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -515,7 +515,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Maps/Maps.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/Maps/Maps.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs index 17a2c10d659d..ffb7bffaad7d 100644 --- a/generated/Maps/Maps.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/generated/Maps/Maps.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs @@ -36,14 +36,23 @@ internal class PsHelpInfo public object Role { get; } public string NonTerminatingErrors { get; } + public static string CapitalizeFirstLetter(string text) + { + if (string.IsNullOrEmpty(text)) + return text; + + return char.ToUpper(text[0]) + text.Substring(1); + } + public PsHelpInfo(PSObject helpObject = null) { helpObject = helpObject ?? new PSObject(); CmdletName = helpObject.GetProperty("Name").NullIfEmpty() ?? helpObject.GetNestedProperty("details", "name"); ModuleName = helpObject.GetProperty("ModuleName"); - Synopsis = helpObject.GetProperty("Synopsis"); + Synopsis = CapitalizeFirstLetter(helpObject.GetProperty("Synopsis")); Description = helpObject.GetProperty("description").EmptyIfNull().ToDescriptionText().NullIfEmpty() ?? helpObject.GetNestedProperty("details", "description").EmptyIfNull().ToDescriptionText(); + Description = CapitalizeFirstLetter(Description); AlertText = helpObject.GetNestedProperty("alertSet", "alert").EmptyIfNull().ToDescriptionText(); Category = helpObject.GetProperty("Category"); HasCommonParameters = helpObject.GetProperty("CommonParameters").ToNullableBool(); diff --git a/generated/Maps/Maps.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/Maps/Maps.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index ff234d230ca7..23742f91bd51 100644 --- a/generated/Maps/Maps.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/Maps/Maps.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -218,13 +218,12 @@ public string GetProcessCustomAttributesAtRuntime() private string GetLoginVerification() { - if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) + if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) { return $@" {Indent}{Indent}$context = Get-AzContext {Indent}{Indent}if (-not $context -and -not $testPlayback) {{ -{Indent}{Indent}{Indent}Write-Error ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" -{Indent}{Indent}{Indent}exit +{Indent}{Indent}{Indent}throw ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" {Indent}{Indent}}} "; } diff --git a/generated/Maps/Maps.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/Maps/Maps.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs index 39d17bd3da6e..68235994c61e 100644 --- a/generated/Maps/Maps.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/generated/Maps/Maps.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs @@ -392,6 +392,7 @@ public CommentInfo(VariantGroup variantGroup) var helpInfo = variantGroup.HelpInfo; Description = variantGroup.Variants.SelectMany(v => v.Attributes).OfType().FirstOrDefault()?.Description.NullIfEmpty() ?? helpInfo.Description.EmptyIfNull(); + Description = PsHelpInfo.CapitalizeFirstLetter(Description); // If there is no Synopsis, PowerShell may put in the Syntax string as the Synopsis. This seems unintended, so we remove the Synopsis in this situation. var synopsis = helpInfo.Synopsis.EmptyIfNull().Trim().StartsWith(variantGroup.CmdletName) ? String.Empty : helpInfo.Synopsis; Synopsis = synopsis.NullIfEmpty() ?? Description; diff --git a/generated/Maps/Maps.Autorest/generated/runtime/Context.cs b/generated/Maps/Maps.Autorest/generated/runtime/Context.cs index 53c3d5210937..ad6f167178ef 100644 --- a/generated/Maps/Maps.Autorest/generated/runtime/Context.cs +++ b/generated/Maps/Maps.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Maps.Runtime /// The IContext Interface defines the communication mechanism for input customization. /// /// - /// In the context, we will have client, pipeline, PSBoundParamters, default EventListener, Cancellation. + /// In the context, we will have client, pipeline, PSBoundParameters, default EventListener, Cancellation. /// public interface IContext { diff --git a/generated/Maps/Maps.Autorest/generated/runtime/MessageAttribute.cs b/generated/Maps/Maps.Autorest/generated/runtime/MessageAttribute.cs index 3c23a8834af2..a1d35e99b9da 100644 --- a/generated/Maps/Maps.Autorest/generated/runtime/MessageAttribute.cs +++ b/generated/Maps/Maps.Autorest/generated/runtime/MessageAttribute.cs @@ -16,9 +16,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Maps.Runtime public class GenericBreakingChangeAttribute : Attribute { private string _message; - //A dexcription of what the change is about, non mandatory + //A description of what the change is about, non mandatory public string ChangeDescription { get; set; } = null; + //Name of the module that is being deprecated + public string moduleName { get; set; } = String.IsNullOrEmpty(@"") ? @"Az.Maps" : @""; + //The version the change is effective from, non mandatory public string DeprecateByVersion { get; } public string DeprecateByAzVersion { get; } @@ -82,7 +85,7 @@ public void PrintCustomAttributeInfo(Action writeOutput) } writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByAzVersion, this.DeprecateByAzVersion)); - writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.DeprecateByVersion)); + writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.moduleName, this.DeprecateByVersion)); if (OldWay != null && NewWay != null) { @@ -191,11 +194,11 @@ public PreviewMessageAttribute(string message, string estimatedDateOfGa) : this( this.IsEstimatedGaDateSet = true; } } - + public void PrintCustomAttributeInfo(Action writeOutput) { writeOutput(this._message); - + if (IsEstimatedGaDateSet) { writeOutput(string.Format(Resources.PreviewCmdletETAMessage, this.EstimatedGaDate.ToShortDateString())); diff --git a/generated/Maps/Maps.Autorest/generated/runtime/Properties/Resources.resx b/generated/Maps/Maps.Autorest/generated/runtime/Properties/Resources.resx index a08a2e50172b..4ef90b70573d 100644 --- a/generated/Maps/Maps.Autorest/generated/runtime/Properties/Resources.resx +++ b/generated/Maps/Maps.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 version : '{0}' +- The change is expected to take effect in '{0}' from version : '{1}' ```powershell diff --git a/generated/Marketplace/Marketplace.Autorest/Properties/AssemblyInfo.cs b/generated/Marketplace/Marketplace.Autorest/Properties/AssemblyInfo.cs deleted file mode 100644 index e43f107e0554..000000000000 --- a/generated/Marketplace/Marketplace.Autorest/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,28 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// 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. -// ---------------------------------------------------------------------------------- - -using System; -using System.Reflection; -using System.Runtime.InteropServices; - -[assembly: AssemblyTitle("Microsoft Azure Powershell - Marketplace")] -[assembly: AssemblyCompany(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCompany)] -[assembly: AssemblyProduct(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyProduct)] -[assembly: AssemblyCopyright(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCopyright)] - -[assembly: ComVisible(false)] -[assembly: CLSCompliant(false)] -[assembly: Guid("35228a81-bd64-4b3b-b479-2d4acc2cdbab")] -[assembly: AssemblyVersion("0.5.2")] -[assembly: AssemblyFileVersion("0.5.2")] diff --git a/generated/Marketplace/Marketplace.Autorest/exports/Copy-AzMarketplacePrivateStoreCollectionOffer.ps1 b/generated/Marketplace/Marketplace.Autorest/exports/Copy-AzMarketplacePrivateStoreCollectionOffer.ps1 index 43bb08418cd2..4335c13f7645 100644 --- a/generated/Marketplace/Marketplace.Autorest/exports/Copy-AzMarketplacePrivateStoreCollectionOffer.ps1 +++ b/generated/Marketplace/Marketplace.Autorest/exports/Copy-AzMarketplacePrivateStoreCollectionOffer.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -transferring offers (copy or move) from source collection to target collection(s) +Transferring offers (copy or move) from source collection to target collection(s) .Description -transferring offers (copy or move) from source collection to target collection(s) +Transferring offers (copy or move) from source collection to target collection(s) .Example $payload = @{OfferIdsList = "aumatics.azure_managedservices"; Operation = "Copy"; TargetCollection = "3ac32d8c-e888-4dc6-b4ff-be4d755af13a"} Copy-AzMarketplacePrivateStoreCollectionOffer -PrivateStoreId 3ac32d8c-e888-4dc6-b4ff-be4d755af13a -CollectionId fdb889a1-cf3e-49f0-95b8-2bb012fa01f1 -Payload $payload @@ -198,6 +198,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -232,6 +240,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Marketplace/Marketplace.Autorest/exports/Disable-AzMarketplacePrivateStoreCollectionAllItem.ps1 b/generated/Marketplace/Marketplace.Autorest/exports/Disable-AzMarketplacePrivateStoreCollectionAllItem.ps1 index 03f8f4991a61..d912d7668e99 100644 --- a/generated/Marketplace/Marketplace.Autorest/exports/Disable-AzMarketplacePrivateStoreCollectionAllItem.ps1 +++ b/generated/Marketplace/Marketplace.Autorest/exports/Disable-AzMarketplacePrivateStoreCollectionAllItem.ps1 @@ -135,6 +135,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -164,6 +172,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Marketplace/Marketplace.Autorest/exports/Enable-AzMarketplacePrivateStoreCollectionAllItem.ps1 b/generated/Marketplace/Marketplace.Autorest/exports/Enable-AzMarketplacePrivateStoreCollectionAllItem.ps1 index bcadcda198d8..2bf361539ba2 100644 --- a/generated/Marketplace/Marketplace.Autorest/exports/Enable-AzMarketplacePrivateStoreCollectionAllItem.ps1 +++ b/generated/Marketplace/Marketplace.Autorest/exports/Enable-AzMarketplacePrivateStoreCollectionAllItem.ps1 @@ -135,6 +135,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -164,6 +172,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Marketplace/Marketplace.Autorest/exports/Get-AzMarketplaceBillingPrivateStoreAccount.ps1 b/generated/Marketplace/Marketplace.Autorest/exports/Get-AzMarketplaceBillingPrivateStoreAccount.ps1 index 897493fc756d..5556f082e3d0 100644 --- a/generated/Marketplace/Marketplace.Autorest/exports/Get-AzMarketplaceBillingPrivateStoreAccount.ps1 +++ b/generated/Marketplace/Marketplace.Autorest/exports/Get-AzMarketplaceBillingPrivateStoreAccount.ps1 @@ -114,6 +114,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -142,6 +150,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Marketplace/Marketplace.Autorest/exports/Get-AzMarketplaceCollectionToSubscriptionMapping.ps1 b/generated/Marketplace/Marketplace.Autorest/exports/Get-AzMarketplaceCollectionToSubscriptionMapping.ps1 index a2b873673c90..b7f0d12e8384 100644 --- a/generated/Marketplace/Marketplace.Autorest/exports/Get-AzMarketplaceCollectionToSubscriptionMapping.ps1 +++ b/generated/Marketplace/Marketplace.Autorest/exports/Get-AzMarketplaceCollectionToSubscriptionMapping.ps1 @@ -152,6 +152,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -178,8 +186,6 @@ begin { CollectionsViaJsonString = 'Az.Marketplace.private\Get-AzMarketplaceCollectionToSubscriptionMapping_CollectionsViaJsonString'; } if (('CollectionsExpanded', 'CollectionsViaIdentityExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -193,6 +199,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Marketplace/Marketplace.Autorest/exports/Get-AzMarketplacePrivateStoreAllSubscriptionInTenant.ps1 b/generated/Marketplace/Marketplace.Autorest/exports/Get-AzMarketplacePrivateStoreAllSubscriptionInTenant.ps1 index e112f1fde85d..1dc5932e5a33 100644 --- a/generated/Marketplace/Marketplace.Autorest/exports/Get-AzMarketplacePrivateStoreAllSubscriptionInTenant.ps1 +++ b/generated/Marketplace/Marketplace.Autorest/exports/Get-AzMarketplacePrivateStoreAllSubscriptionInTenant.ps1 @@ -120,6 +120,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -148,6 +156,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Marketplace/Marketplace.Autorest/exports/Get-AzMarketplacePrivateStoreCollection.ps1 b/generated/Marketplace/Marketplace.Autorest/exports/Get-AzMarketplacePrivateStoreCollection.ps1 index 1358616d9550..82fc39581d29 100644 --- a/generated/Marketplace/Marketplace.Autorest/exports/Get-AzMarketplacePrivateStoreCollection.ps1 +++ b/generated/Marketplace/Marketplace.Autorest/exports/Get-AzMarketplacePrivateStoreCollection.ps1 @@ -138,6 +138,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -168,6 +176,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Marketplace/Marketplace.Autorest/exports/Get-AzMarketplacePrivateStoreCollectionMapOffersToContext.ps1 b/generated/Marketplace/Marketplace.Autorest/exports/Get-AzMarketplacePrivateStoreCollectionMapOffersToContext.ps1 index e5c65c92a7e7..085e91be369a 100644 --- a/generated/Marketplace/Marketplace.Autorest/exports/Get-AzMarketplacePrivateStoreCollectionMapOffersToContext.ps1 +++ b/generated/Marketplace/Marketplace.Autorest/exports/Get-AzMarketplacePrivateStoreCollectionMapOffersToContext.ps1 @@ -108,6 +108,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -129,8 +137,6 @@ begin { ListExpanded = 'Az.Marketplace.private\Get-AzMarketplacePrivateStoreCollectionMapOffersToContext_ListExpanded'; } if (('ListExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -144,6 +150,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Marketplace/Marketplace.Autorest/exports/Get-AzMarketplacePrivateStoreCollectionOffer.ps1 b/generated/Marketplace/Marketplace.Autorest/exports/Get-AzMarketplacePrivateStoreCollectionOffer.ps1 index fb153ca13b98..80f3cb160f41 100644 --- a/generated/Marketplace/Marketplace.Autorest/exports/Get-AzMarketplacePrivateStoreCollectionOffer.ps1 +++ b/generated/Marketplace/Marketplace.Autorest/exports/Get-AzMarketplacePrivateStoreCollectionOffer.ps1 @@ -159,6 +159,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -190,6 +198,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Marketplace/Marketplace.Autorest/exports/Get-AzMarketplacePrivateStoreCollectionRule.ps1 b/generated/Marketplace/Marketplace.Autorest/exports/Get-AzMarketplacePrivateStoreCollectionRule.ps1 index 11c5bd259af3..861ac99d4456 100644 --- a/generated/Marketplace/Marketplace.Autorest/exports/Get-AzMarketplacePrivateStoreCollectionRule.ps1 +++ b/generated/Marketplace/Marketplace.Autorest/exports/Get-AzMarketplacePrivateStoreCollectionRule.ps1 @@ -135,6 +135,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -164,6 +172,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Marketplace/Marketplace.Autorest/exports/Get-AzMarketplacePrivateStoreNewPlanNotification.ps1 b/generated/Marketplace/Marketplace.Autorest/exports/Get-AzMarketplacePrivateStoreNewPlanNotification.ps1 index 4a2db83431aa..3e43fcdac164 100644 --- a/generated/Marketplace/Marketplace.Autorest/exports/Get-AzMarketplacePrivateStoreNewPlanNotification.ps1 +++ b/generated/Marketplace/Marketplace.Autorest/exports/Get-AzMarketplacePrivateStoreNewPlanNotification.ps1 @@ -94,6 +94,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -121,6 +129,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Marketplace/Marketplace.Autorest/exports/Get-AzMarketplacePrivateStoreSubscription.ps1 b/generated/Marketplace/Marketplace.Autorest/exports/Get-AzMarketplacePrivateStoreSubscription.ps1 index 463787248442..57af2cd7613e 100644 --- a/generated/Marketplace/Marketplace.Autorest/exports/Get-AzMarketplacePrivateStoreSubscription.ps1 +++ b/generated/Marketplace/Marketplace.Autorest/exports/Get-AzMarketplacePrivateStoreSubscription.ps1 @@ -94,6 +94,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -121,6 +129,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Marketplace/Marketplace.Autorest/exports/Get-AzMarketplacePrivateStoreUserOffer.ps1 b/generated/Marketplace/Marketplace.Autorest/exports/Get-AzMarketplacePrivateStoreUserOffer.ps1 index 60b1f38d29ea..87746f8ef49f 100644 --- a/generated/Marketplace/Marketplace.Autorest/exports/Get-AzMarketplacePrivateStoreUserOffer.ps1 +++ b/generated/Marketplace/Marketplace.Autorest/exports/Get-AzMarketplacePrivateStoreUserOffer.ps1 @@ -129,6 +129,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -151,8 +159,6 @@ begin { QueryViaIdentityExpanded = 'Az.Marketplace.private\Get-AzMarketplacePrivateStoreUserOffer_QueryViaIdentityExpanded'; } if (('QueryExpanded', 'QueryViaIdentityExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -166,6 +172,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Marketplace/Marketplace.Autorest/exports/Get-AzMarketplacePrivateStoreUserRule.ps1 b/generated/Marketplace/Marketplace.Autorest/exports/Get-AzMarketplacePrivateStoreUserRule.ps1 index 2ffe8d4a08d1..aa39491dd1fd 100644 --- a/generated/Marketplace/Marketplace.Autorest/exports/Get-AzMarketplacePrivateStoreUserRule.ps1 +++ b/generated/Marketplace/Marketplace.Autorest/exports/Get-AzMarketplacePrivateStoreUserRule.ps1 @@ -122,6 +122,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -144,8 +152,6 @@ begin { QueryViaIdentityExpanded = 'Az.Marketplace.private\Get-AzMarketplacePrivateStoreUserRule_QueryViaIdentityExpanded'; } if (('QueryExpanded', 'QueryViaIdentityExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -159,6 +165,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Marketplace/Marketplace.Autorest/exports/Get-AzMarketplacePrivateStoreV1.ps1 b/generated/Marketplace/Marketplace.Autorest/exports/Get-AzMarketplacePrivateStoreV1.ps1 index e1df55ba46ff..8d8e1271f98b 100644 --- a/generated/Marketplace/Marketplace.Autorest/exports/Get-AzMarketplacePrivateStoreV1.ps1 +++ b/generated/Marketplace/Marketplace.Autorest/exports/Get-AzMarketplacePrivateStoreV1.ps1 @@ -121,6 +121,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -150,6 +158,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Marketplace/Marketplace.Autorest/exports/Get-AzMarketplaceQueryPrivateStoreOffer.ps1 b/generated/Marketplace/Marketplace.Autorest/exports/Get-AzMarketplaceQueryPrivateStoreOffer.ps1 index eca7f0e07720..96f756878638 100644 --- a/generated/Marketplace/Marketplace.Autorest/exports/Get-AzMarketplaceQueryPrivateStoreOffer.ps1 +++ b/generated/Marketplace/Marketplace.Autorest/exports/Get-AzMarketplaceQueryPrivateStoreOffer.ps1 @@ -114,6 +114,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -142,6 +150,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Marketplace/Marketplace.Autorest/exports/New-AzMarketplacePrivateStore.ps1 b/generated/Marketplace/Marketplace.Autorest/exports/New-AzMarketplacePrivateStore.ps1 index b4fa51fd0181..85bf56cf745c 100644 --- a/generated/Marketplace/Marketplace.Autorest/exports/New-AzMarketplacePrivateStore.ps1 +++ b/generated/Marketplace/Marketplace.Autorest/exports/New-AzMarketplacePrivateStore.ps1 @@ -171,6 +171,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -200,6 +208,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Marketplace/Marketplace.Autorest/exports/New-AzMarketplacePrivateStoreCollection.ps1 b/generated/Marketplace/Marketplace.Autorest/exports/New-AzMarketplacePrivateStoreCollection.ps1 index 4e94bf9bd4be..bb79a22c3628 100644 --- a/generated/Marketplace/Marketplace.Autorest/exports/New-AzMarketplacePrivateStoreCollection.ps1 +++ b/generated/Marketplace/Marketplace.Autorest/exports/New-AzMarketplacePrivateStoreCollection.ps1 @@ -188,6 +188,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -219,6 +227,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Marketplace/Marketplace.Autorest/exports/New-AzMarketplacePrivateStoreCollectionOffer.ps1 b/generated/Marketplace/Marketplace.Autorest/exports/New-AzMarketplacePrivateStoreCollectionOffer.ps1 index c636cbb66656..4c28e8eee7cd 100644 --- a/generated/Marketplace/Marketplace.Autorest/exports/New-AzMarketplacePrivateStoreCollectionOffer.ps1 +++ b/generated/Marketplace/Marketplace.Autorest/exports/New-AzMarketplacePrivateStoreCollectionOffer.ps1 @@ -226,6 +226,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -259,6 +267,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Marketplace/Marketplace.Autorest/exports/New-AzMarketplacePrivateStoreCollectionOfferMultiContext.ps1 b/generated/Marketplace/Marketplace.Autorest/exports/New-AzMarketplacePrivateStoreCollectionOfferMultiContext.ps1 index 8dd8902e4308..8e8335767d34 100644 --- a/generated/Marketplace/Marketplace.Autorest/exports/New-AzMarketplacePrivateStoreCollectionOfferMultiContext.ps1 +++ b/generated/Marketplace/Marketplace.Autorest/exports/New-AzMarketplacePrivateStoreCollectionOfferMultiContext.ps1 @@ -192,6 +192,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -222,6 +230,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Marketplace/Marketplace.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/Marketplace/Marketplace.Autorest/exports/ProxyCmdletDefinitions.ps1 index 1b5623b72c49..87e16e19c149 100644 --- a/generated/Marketplace/Marketplace.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/Marketplace/Marketplace.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -transferring offers (copy or move) from source collection to target collection(s) +Transferring offers (copy or move) from source collection to target collection(s) .Description -transferring offers (copy or move) from source collection to target collection(s) +Transferring offers (copy or move) from source collection to target collection(s) .Example $payload = @{OfferIdsList = "aumatics.azure_managedservices"; Operation = "Copy"; TargetCollection = "3ac32d8c-e888-4dc6-b4ff-be4d755af13a"} Copy-AzMarketplacePrivateStoreCollectionOffer -PrivateStoreId 3ac32d8c-e888-4dc6-b4ff-be4d755af13a -CollectionId fdb889a1-cf3e-49f0-95b8-2bb012fa01f1 -Payload $payload @@ -198,6 +198,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -232,6 +240,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -396,6 +407,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -425,6 +444,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -589,6 +611,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -618,6 +648,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -761,6 +794,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -789,6 +830,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -970,6 +1014,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -996,8 +1048,6 @@ begin { CollectionsViaJsonString = 'Az.Marketplace.private\Get-AzMarketplaceCollectionToSubscriptionMapping_CollectionsViaJsonString'; } if (('CollectionsExpanded', 'CollectionsViaIdentityExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -1011,6 +1061,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -1160,6 +1213,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -1188,6 +1249,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -1325,6 +1389,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -1346,8 +1418,6 @@ begin { ListExpanded = 'Az.Marketplace.private\Get-AzMarketplacePrivateStoreCollectionMapOffersToContext_ListExpanded'; } if (('ListExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -1361,6 +1431,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -1549,6 +1622,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -1580,6 +1661,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -1744,6 +1828,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -1773,6 +1865,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -1940,6 +2035,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -1970,6 +2073,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -2093,6 +2199,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -2120,6 +2234,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -2243,6 +2360,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -2270,6 +2395,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -2428,6 +2556,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -2450,8 +2586,6 @@ begin { QueryViaIdentityExpanded = 'Az.Marketplace.private\Get-AzMarketplacePrivateStoreUserOffer_QueryViaIdentityExpanded'; } if (('QueryExpanded', 'QueryViaIdentityExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -2465,6 +2599,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -2616,6 +2753,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -2638,8 +2783,6 @@ begin { QueryViaIdentityExpanded = 'Az.Marketplace.private\Get-AzMarketplacePrivateStoreUserRule_QueryViaIdentityExpanded'; } if (('QueryExpanded', 'QueryViaIdentityExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -2653,6 +2796,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -2803,6 +2949,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -2832,6 +2986,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -2975,6 +3132,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -3003,6 +3168,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -3224,6 +3392,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -3254,6 +3430,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -3509,6 +3688,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -3542,6 +3729,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -3759,6 +3949,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -3790,6 +3988,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -3990,6 +4191,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -4019,6 +4228,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -4211,6 +4423,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -4241,6 +4461,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -4411,6 +4634,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -4440,6 +4671,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -4604,6 +4838,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -4634,6 +4876,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -4823,6 +5068,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -4852,6 +5105,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -5026,6 +5282,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -5055,6 +5319,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -5255,6 +5522,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -5284,6 +5559,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -5427,6 +5705,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -5455,6 +5741,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -5716,6 +6005,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -5748,6 +6045,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -5972,6 +6272,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -6002,6 +6310,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Marketplace/Marketplace.Autorest/exports/Remove-AzMarketplacePrivateStoreCollection.ps1 b/generated/Marketplace/Marketplace.Autorest/exports/Remove-AzMarketplacePrivateStoreCollection.ps1 index 395c20ec6af8..89949851922a 100644 --- a/generated/Marketplace/Marketplace.Autorest/exports/Remove-AzMarketplacePrivateStoreCollection.ps1 +++ b/generated/Marketplace/Marketplace.Autorest/exports/Remove-AzMarketplacePrivateStoreCollection.ps1 @@ -141,6 +141,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -170,6 +178,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Marketplace/Marketplace.Autorest/exports/Remove-AzMarketplacePrivateStoreCollectionOffer.ps1 b/generated/Marketplace/Marketplace.Autorest/exports/Remove-AzMarketplacePrivateStoreCollectionOffer.ps1 index 9a2ef02cc43c..320cf153f75c 100644 --- a/generated/Marketplace/Marketplace.Autorest/exports/Remove-AzMarketplacePrivateStoreCollectionOffer.ps1 +++ b/generated/Marketplace/Marketplace.Autorest/exports/Remove-AzMarketplacePrivateStoreCollectionOffer.ps1 @@ -163,6 +163,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -193,6 +201,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Marketplace/Marketplace.Autorest/exports/Set-AzMarketplaceBulkPrivateStoreCollectionAction.ps1 b/generated/Marketplace/Marketplace.Autorest/exports/Set-AzMarketplaceBulkPrivateStoreCollectionAction.ps1 index ca890bc89e85..c3009fb8d256 100644 --- a/generated/Marketplace/Marketplace.Autorest/exports/Set-AzMarketplaceBulkPrivateStoreCollectionAction.ps1 +++ b/generated/Marketplace/Marketplace.Autorest/exports/Set-AzMarketplaceBulkPrivateStoreCollectionAction.ps1 @@ -135,6 +135,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -165,6 +173,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Marketplace/Marketplace.Autorest/exports/Set-AzMarketplacePrivateStore.ps1 b/generated/Marketplace/Marketplace.Autorest/exports/Set-AzMarketplacePrivateStore.ps1 index c6180aeca4b1..5d38a71cab06 100644 --- a/generated/Marketplace/Marketplace.Autorest/exports/Set-AzMarketplacePrivateStore.ps1 +++ b/generated/Marketplace/Marketplace.Autorest/exports/Set-AzMarketplacePrivateStore.ps1 @@ -171,6 +171,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -200,6 +208,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Marketplace/Marketplace.Autorest/exports/Set-AzMarketplacePrivateStoreCollection.ps1 b/generated/Marketplace/Marketplace.Autorest/exports/Set-AzMarketplacePrivateStoreCollection.ps1 index b2af626364db..ae01df10061f 100644 --- a/generated/Marketplace/Marketplace.Autorest/exports/Set-AzMarketplacePrivateStoreCollection.ps1 +++ b/generated/Marketplace/Marketplace.Autorest/exports/Set-AzMarketplacePrivateStoreCollection.ps1 @@ -145,6 +145,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -174,6 +182,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Marketplace/Marketplace.Autorest/exports/Set-AzMarketplacePrivateStoreCollectionOffer.ps1 b/generated/Marketplace/Marketplace.Autorest/exports/Set-AzMarketplacePrivateStoreCollectionOffer.ps1 index 4fc170c56b2f..621a15a72c59 100644 --- a/generated/Marketplace/Marketplace.Autorest/exports/Set-AzMarketplacePrivateStoreCollectionOffer.ps1 +++ b/generated/Marketplace/Marketplace.Autorest/exports/Set-AzMarketplacePrivateStoreCollectionOffer.ps1 @@ -160,6 +160,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -189,6 +197,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Marketplace/Marketplace.Autorest/exports/Test-AzMarketplacePrivateStoreAnyExistingOffer.ps1 b/generated/Marketplace/Marketplace.Autorest/exports/Test-AzMarketplacePrivateStoreAnyExistingOffer.ps1 index 32cfedb3acef..2d3e8c44f5b6 100644 --- a/generated/Marketplace/Marketplace.Autorest/exports/Test-AzMarketplacePrivateStoreAnyExistingOffer.ps1 +++ b/generated/Marketplace/Marketplace.Autorest/exports/Test-AzMarketplacePrivateStoreAnyExistingOffer.ps1 @@ -114,6 +114,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -142,6 +150,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Marketplace/Marketplace.Autorest/exports/Update-AzMarketplacePrivateStoreCollection.ps1 b/generated/Marketplace/Marketplace.Autorest/exports/Update-AzMarketplacePrivateStoreCollection.ps1 index 19445aa6fbd4..c51a9cd721fa 100644 --- a/generated/Marketplace/Marketplace.Autorest/exports/Update-AzMarketplacePrivateStoreCollection.ps1 +++ b/generated/Marketplace/Marketplace.Autorest/exports/Update-AzMarketplacePrivateStoreCollection.ps1 @@ -195,6 +195,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -225,6 +233,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Marketplace/Marketplace.Autorest/exports/Update-AzMarketplacePrivateStoreCollectionOffer.ps1 b/generated/Marketplace/Marketplace.Autorest/exports/Update-AzMarketplacePrivateStoreCollectionOffer.ps1 index c0c7891aff9e..60c98bdcedc7 100644 --- a/generated/Marketplace/Marketplace.Autorest/exports/Update-AzMarketplacePrivateStoreCollectionOffer.ps1 +++ b/generated/Marketplace/Marketplace.Autorest/exports/Update-AzMarketplacePrivateStoreCollectionOffer.ps1 @@ -232,6 +232,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -264,6 +272,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Marketplace/Marketplace.Autorest/generated/api/Marketplace.cs b/generated/Marketplace/Marketplace.Autorest/generated/api/Marketplace.cs index aa04f5122527..8b2adb5a6e02 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/api/Marketplace.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/api/Marketplace.cs @@ -2136,7 +2136,7 @@ public partial class Marketplace } } - /// Update private store collection + /// update private store collection /// The store ID - must use the tenant ID /// The collection ID /// The Collection data structure. @@ -2182,7 +2182,7 @@ public partial class Marketplace } } - /// Update private store collection + /// update private store collection /// /// The Collection data structure. /// a delegate that is called when the remote service returns 200 (OK). @@ -2238,7 +2238,7 @@ public partial class Marketplace } } - /// Update private store collection + /// update private store collection /// /// The Collection data structure. /// an instance that will receive events. @@ -2292,7 +2292,7 @@ public partial class Marketplace } } - /// Update private store collection + /// update private store collection /// The store ID - must use the tenant ID /// The collection ID /// Json string supplied to the PrivateStoreCollectionCreateOrUpdate operation @@ -2337,7 +2337,7 @@ public partial class Marketplace } } - /// Update private store collection + /// update private store collection /// The store ID - must use the tenant ID /// The collection ID /// Json string supplied to the PrivateStoreCollectionCreateOrUpdate operation @@ -2380,7 +2380,7 @@ public partial class Marketplace } } - /// Update private store collection + /// update private store collection /// The store ID - must use the tenant ID /// The collection ID /// The Collection data structure. @@ -3645,7 +3645,7 @@ public partial class Marketplace } } - /// Update or add an offer to a specific collection of the private store. + /// update or add an offer to a specific collection of the private store. /// The store ID - must use the tenant ID /// The collection ID /// The offer ID to update or delete @@ -3694,7 +3694,7 @@ public partial class Marketplace } } - /// Update or add an offer to a specific collection of the private store. + /// update or add an offer to a specific collection of the private store. /// /// The privateStore offer data structure. /// a delegate that is called when the remote service returns 200 (OK). @@ -3753,7 +3753,7 @@ public partial class Marketplace } } - /// Update or add an offer to a specific collection of the private store. + /// update or add an offer to a specific collection of the private store. /// /// The privateStore offer data structure. /// an instance that will receive events. @@ -3810,7 +3810,7 @@ public partial class Marketplace } } - /// Update or add an offer to a specific collection of the private store. + /// update or add an offer to a specific collection of the private store. /// The store ID - must use the tenant ID /// The collection ID /// The offer ID to update or delete @@ -3858,7 +3858,7 @@ public partial class Marketplace } } - /// Update or add an offer to a specific collection of the private store. + /// update or add an offer to a specific collection of the private store. /// The store ID - must use the tenant ID /// The collection ID /// The offer ID to update or delete @@ -3904,7 +3904,7 @@ public partial class Marketplace } } - /// Update or add an offer to a specific collection of the private store. + /// update or add an offer to a specific collection of the private store. /// The store ID - must use the tenant ID /// The collection ID /// The offer ID to update or delete @@ -5380,7 +5380,7 @@ public partial class Marketplace await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // set body content - request.Content = null /* serializeToContent doesn't support 'application/json' C:\Users\cloudtest\.autorest\@autorest_powershell@4.0.695\node_modules\@autorest\powershell\dist\llcsharp\schema\string.js*/; + request.Content = null /* serializeToContent doesn't support 'application/json' C:\Users\cloudtest\.autorest\@autorest_powershell@4.0.752\node_modules\@autorest\powershell\dist\llcsharp\schema\string.js*/; request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call @@ -5439,7 +5439,7 @@ public partial class Marketplace await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // set body content - request.Content = null /* serializeToContent doesn't support 'application/json' C:\Users\cloudtest\.autorest\@autorest_powershell@4.0.695\node_modules\@autorest\powershell\dist\llcsharp\schema\string.js*/; + request.Content = null /* serializeToContent doesn't support 'application/json' C:\Users\cloudtest\.autorest\@autorest_powershell@4.0.752\node_modules\@autorest\powershell\dist\llcsharp\schema\string.js*/; request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call @@ -6056,7 +6056,7 @@ public partial class Marketplace await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // set body content - request.Content = null /* serializeToContent doesn't support 'application/json' C:\Users\cloudtest\.autorest\@autorest_powershell@4.0.695\node_modules\@autorest\powershell\dist\llcsharp\schema\string.js*/; + request.Content = null /* serializeToContent doesn't support 'application/json' C:\Users\cloudtest\.autorest\@autorest_powershell@4.0.752\node_modules\@autorest\powershell\dist\llcsharp\schema\string.js*/; request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call @@ -6112,7 +6112,7 @@ public partial class Marketplace await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // set body content - request.Content = null /* serializeToContent doesn't support 'application/json' C:\Users\cloudtest\.autorest\@autorest_powershell@4.0.695\node_modules\@autorest\powershell\dist\llcsharp\schema\string.js*/; + request.Content = null /* serializeToContent doesn't support 'application/json' C:\Users\cloudtest\.autorest\@autorest_powershell@4.0.752\node_modules\@autorest\powershell\dist\llcsharp\schema\string.js*/; request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call @@ -7106,7 +7106,7 @@ public partial class Marketplace } } - /// Create approval request + /// create approval request /// The store ID - must use the tenant ID /// The request approval ID to get create or update /// Request approval resource. @@ -7152,7 +7152,7 @@ public partial class Marketplace } } - /// Create approval request + /// create approval request /// /// Request approval resource. /// a delegate that is called when the remote service returns 200 (OK). @@ -7208,7 +7208,7 @@ public partial class Marketplace } } - /// Create approval request + /// create approval request /// /// Request approval resource. /// an instance that will receive events. @@ -7262,7 +7262,7 @@ public partial class Marketplace } } - /// Create approval request + /// create approval request /// The store ID - must use the tenant ID /// The request approval ID to get create or update /// Json string supplied to the PrivateStoreCreateApprovalRequest operation @@ -7307,7 +7307,7 @@ public partial class Marketplace } } - /// Create approval request + /// create approval request /// The store ID - must use the tenant ID /// The request approval ID to get create or update /// Json string supplied to the PrivateStoreCreateApprovalRequest operation @@ -7350,7 +7350,7 @@ public partial class Marketplace } } - /// Create approval request + /// create approval request /// The store ID - must use the tenant ID /// The request approval ID to get create or update /// Request approval resource. @@ -12587,7 +12587,7 @@ public partial class Marketplace } /// - /// Update the admin action, weather the request is approved or rejected and the approved plans + /// update the admin action, weather the request is approved or rejected and the approved plans /// /// The store ID - must use the tenant ID /// The admin request approval ID to get create or update @@ -12635,7 +12635,7 @@ public partial class Marketplace } /// - /// Update the admin action, weather the request is approved or rejected and the approved plans + /// update the admin action, weather the request is approved or rejected and the approved plans /// /// /// Admin request approval resource. @@ -12693,7 +12693,7 @@ public partial class Marketplace } /// - /// Update the admin action, weather the request is approved or rejected and the approved plans + /// update the admin action, weather the request is approved or rejected and the approved plans /// /// /// Admin request approval resource. @@ -12749,7 +12749,7 @@ public partial class Marketplace } /// - /// Update the admin action, weather the request is approved or rejected and the approved plans + /// update the admin action, weather the request is approved or rejected and the approved plans /// /// The store ID - must use the tenant ID /// The admin request approval ID to get create or update @@ -12796,7 +12796,7 @@ public partial class Marketplace } /// - /// Update the admin action, weather the request is approved or rejected and the approved plans + /// update the admin action, weather the request is approved or rejected and the approved plans /// /// The store ID - must use the tenant ID /// The admin request approval ID to get create or update @@ -12841,7 +12841,7 @@ public partial class Marketplace } /// - /// Update the admin action, weather the request is approved or rejected and the approved plans + /// update the admin action, weather the request is approved or rejected and the approved plans /// /// The store ID - must use the tenant ID /// The admin request approval ID to get create or update diff --git a/generated/Marketplace/Marketplace.Autorest/generated/api/Models/AdminRequestApprovalsResource.cs b/generated/Marketplace/Marketplace.Autorest/generated/api/Models/AdminRequestApprovalsResource.cs index c1e1ccee6439..adb6672dd854 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/api/Models/AdminRequestApprovalsResource.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/api/Models/AdminRequestApprovalsResource.cs @@ -51,28 +51,46 @@ public partial class AdminRequestApprovalsResource : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Id; } /// Internal Acessors for DisplayName - string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IAdminRequestApprovalsResourceInternal.DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IAdminRequestApprovalPropertiesInternal)Property).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IAdminRequestApprovalPropertiesInternal)Property).DisplayName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IAdminRequestApprovalsResourceInternal.DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IAdminRequestApprovalPropertiesInternal)Property).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IAdminRequestApprovalPropertiesInternal)Property).DisplayName = value ?? null; } /// Internal Acessors for Icon - string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IAdminRequestApprovalsResourceInternal.Icon { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IAdminRequestApprovalPropertiesInternal)Property).Icon; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IAdminRequestApprovalPropertiesInternal)Property).Icon = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IAdminRequestApprovalsResourceInternal.Icon { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IAdminRequestApprovalPropertiesInternal)Property).Icon; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IAdminRequestApprovalPropertiesInternal)Property).Icon = value ?? null; } /// Internal Acessors for Plan - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IAdminRequestApprovalsResourceInternal.Plan { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IAdminRequestApprovalPropertiesInternal)Property).Plan; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IAdminRequestApprovalPropertiesInternal)Property).Plan = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IAdminRequestApprovalsResourceInternal.Plan { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IAdminRequestApprovalPropertiesInternal)Property).Plan; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IAdminRequestApprovalPropertiesInternal)Property).Plan = value ?? null /* arrayOf */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IAdminRequestApprovalProperties Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IAdminRequestApprovalsResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.AdminRequestApprovalProperties()); set { {_property = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource. [Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.PropertyOrigin.Inherited)] @@ -103,31 +121,31 @@ public partial class AdminRequestApprovalsResource : /// Metadata pertaining to creation and last modification of the resource [Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedBy; } /// The type of identity that created the resource [Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource [Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; } /// The type of the resource. [Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.PropertyOrigin.Inherited)] diff --git a/generated/Marketplace/Marketplace.Autorest/generated/api/Models/Collection.cs b/generated/Marketplace/Marketplace.Autorest/generated/api/Models/Collection.cs index dacab916cca6..88fdc1996ad4 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/api/Models/Collection.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/api/Models/Collection.cs @@ -57,34 +57,52 @@ public partial class Collection : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Id; } /// Internal Acessors for AppliedRule - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ICollectionInternal.AppliedRule { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ICollectionPropertiesInternal)Property).AppliedRule; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ICollectionPropertiesInternal)Property).AppliedRule = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ICollectionInternal.AppliedRule { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ICollectionPropertiesInternal)Property).AppliedRule; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ICollectionPropertiesInternal)Property).AppliedRule = value ?? null /* arrayOf */; } /// Internal Acessors for ApproveAllItem - bool? Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ICollectionInternal.ApproveAllItem { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ICollectionPropertiesInternal)Property).ApproveAllItem; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ICollectionPropertiesInternal)Property).ApproveAllItem = value; } + bool? Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ICollectionInternal.ApproveAllItem { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ICollectionPropertiesInternal)Property).ApproveAllItem; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ICollectionPropertiesInternal)Property).ApproveAllItem = value ?? default(bool); } /// Internal Acessors for ApproveAllItemsModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ICollectionInternal.ApproveAllItemsModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ICollectionPropertiesInternal)Property).ApproveAllItemsModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ICollectionPropertiesInternal)Property).ApproveAllItemsModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ICollectionInternal.ApproveAllItemsModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ICollectionPropertiesInternal)Property).ApproveAllItemsModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ICollectionPropertiesInternal)Property).ApproveAllItemsModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for CollectionId - string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ICollectionInternal.CollectionId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ICollectionPropertiesInternal)Property).CollectionId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ICollectionPropertiesInternal)Property).CollectionId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ICollectionInternal.CollectionId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ICollectionPropertiesInternal)Property).CollectionId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ICollectionPropertiesInternal)Property).CollectionId = value ?? null; } /// Internal Acessors for NumberOfOffer - long? Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ICollectionInternal.NumberOfOffer { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ICollectionPropertiesInternal)Property).NumberOfOffer; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ICollectionPropertiesInternal)Property).NumberOfOffer = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ICollectionInternal.NumberOfOffer { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ICollectionPropertiesInternal)Property).NumberOfOffer; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ICollectionPropertiesInternal)Property).NumberOfOffer = value ?? default(long); } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ICollectionProperties Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ICollectionInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.CollectionProperties()); set { {_property = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource. [Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.PropertyOrigin.Inherited)] @@ -114,31 +132,31 @@ public partial class Collection : /// Metadata pertaining to creation and last modification of the resource [Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedBy; } /// The type of identity that created the resource [Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource [Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; } /// The type of the resource. [Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.PropertyOrigin.Inherited)] diff --git a/generated/Marketplace/Marketplace.Autorest/generated/api/Models/ErrorResponse.cs b/generated/Marketplace/Marketplace.Autorest/generated/api/Models/ErrorResponse.cs index 14e188127113..b95de30dcedb 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/api/Models/ErrorResponse.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/api/Models/ErrorResponse.cs @@ -32,13 +32,13 @@ public partial class ErrorResponse : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IErrorResponseErrorInternal)Error).Message; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IErrorResponseErrorInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IErrorResponseErrorInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IErrorResponseErrorInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IErrorResponseErrorInternal)Error).Code = value ?? null; } /// Internal Acessors for Error Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IErrorResponseError Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ErrorResponseError()); set { {_error = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IErrorResponseErrorInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IErrorResponseErrorInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IErrorResponseErrorInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IErrorResponseErrorInternal)Error).Message = value ?? null; } /// Creates an new instance. public ErrorResponse() diff --git a/generated/Marketplace/Marketplace.Autorest/generated/api/Models/Offer.cs b/generated/Marketplace/Marketplace.Autorest/generated/api/Models/Offer.cs index 8fc98defbcd7..14ea939636e4 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/api/Models/Offer.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/api/Models/Offer.cs @@ -39,37 +39,55 @@ public partial class Offer : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Id; } /// Internal Acessors for CreatedAt - string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IOfferInternal.CreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IOfferPropertiesInternal)Property).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IOfferPropertiesInternal)Property).CreatedAt = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IOfferInternal.CreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IOfferPropertiesInternal)Property).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IOfferPropertiesInternal)Property).CreatedAt = value ?? null; } /// Internal Acessors for DisplayName - string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IOfferInternal.DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IOfferPropertiesInternal)Property).OfferDisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IOfferPropertiesInternal)Property).OfferDisplayName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IOfferInternal.DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IOfferPropertiesInternal)Property).OfferDisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IOfferPropertiesInternal)Property).OfferDisplayName = value ?? null; } /// Internal Acessors for ModifiedAt - string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IOfferInternal.ModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IOfferPropertiesInternal)Property).ModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IOfferPropertiesInternal)Property).ModifiedAt = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IOfferInternal.ModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IOfferPropertiesInternal)Property).ModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IOfferPropertiesInternal)Property).ModifiedAt = value ?? null; } /// Internal Acessors for PrivateStoreId - string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IOfferInternal.PrivateStoreId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IOfferPropertiesInternal)Property).PrivateStoreId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IOfferPropertiesInternal)Property).PrivateStoreId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IOfferInternal.PrivateStoreId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IOfferPropertiesInternal)Property).PrivateStoreId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IOfferPropertiesInternal)Property).PrivateStoreId = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IOfferProperties Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IOfferInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.OfferProperties()); set { {_property = value;} } } /// Internal Acessors for PublisherDisplayName - string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IOfferInternal.PublisherDisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IOfferPropertiesInternal)Property).PublisherDisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IOfferPropertiesInternal)Property).PublisherDisplayName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IOfferInternal.PublisherDisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IOfferPropertiesInternal)Property).PublisherDisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IOfferPropertiesInternal)Property).PublisherDisplayName = value ?? null; } /// Internal Acessors for UniqueOfferId - string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IOfferInternal.UniqueOfferId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IOfferPropertiesInternal)Property).UniqueOfferId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IOfferPropertiesInternal)Property).UniqueOfferId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IOfferInternal.UniqueOfferId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IOfferPropertiesInternal)Property).UniqueOfferId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IOfferPropertiesInternal)Property).UniqueOfferId = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Type = value ?? null; } /// Private store offer modification date [Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.PropertyOrigin.Inlined)] @@ -108,31 +126,31 @@ public partial class Offer : /// Metadata pertaining to creation and last modification of the resource [Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedBy; } /// The type of identity that created the resource [Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource [Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; } /// The type of the resource. [Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.PropertyOrigin.Inherited)] diff --git a/generated/Marketplace/Marketplace.Autorest/generated/api/Models/PrivateStore.cs b/generated/Marketplace/Marketplace.Autorest/generated/api/Models/PrivateStore.cs index 28b3ba225f43..071a554ed0c9 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/api/Models/PrivateStore.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/api/Models/PrivateStore.cs @@ -43,28 +43,46 @@ public partial class PrivateStore : public bool? IsGov { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IPrivateStorePropertiesInternal)Property).IsGov; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IPrivateStorePropertiesInternal)Property).IsGov = value ?? default(bool); } /// Internal Acessors for CollectionId - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IPrivateStoreInternal.CollectionId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IPrivateStorePropertiesInternal)Property).CollectionId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IPrivateStorePropertiesInternal)Property).CollectionId = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IPrivateStoreInternal.CollectionId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IPrivateStorePropertiesInternal)Property).CollectionId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IPrivateStorePropertiesInternal)Property).CollectionId = value ?? null /* arrayOf */; } /// Internal Acessors for NotificationsSetting - Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.INotificationsSettingsProperties Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IPrivateStoreInternal.NotificationsSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IPrivateStorePropertiesInternal)Property).NotificationsSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IPrivateStorePropertiesInternal)Property).NotificationsSetting = value; } + Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.INotificationsSettingsProperties Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IPrivateStoreInternal.NotificationsSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IPrivateStorePropertiesInternal)Property).NotificationsSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IPrivateStorePropertiesInternal)Property).NotificationsSetting = value ?? null /* model class */; } /// Internal Acessors for PrivateStoreId - string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IPrivateStoreInternal.PrivateStoreId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IPrivateStorePropertiesInternal)Property).PrivateStoreId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IPrivateStorePropertiesInternal)Property).PrivateStoreId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IPrivateStoreInternal.PrivateStoreId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IPrivateStorePropertiesInternal)Property).PrivateStoreId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IPrivateStorePropertiesInternal)Property).PrivateStoreId = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IPrivateStoreProperties Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IPrivateStoreInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.PrivateStoreProperties()); set { {_property = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource. [Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.PropertyOrigin.Inherited)] @@ -99,31 +117,31 @@ public partial class PrivateStore : /// Metadata pertaining to creation and last modification of the resource [Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedBy; } /// The type of identity that created the resource [Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource [Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; } /// Tenant id [Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.PropertyOrigin.Inlined)] diff --git a/generated/Marketplace/Marketplace.Autorest/generated/api/Models/RequestApprovalResource.cs b/generated/Marketplace/Marketplace.Autorest/generated/api/Models/RequestApprovalResource.cs index 97bd50a6c12f..d8fcd8236ecb 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/api/Models/RequestApprovalResource.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/api/Models/RequestApprovalResource.cs @@ -31,25 +31,43 @@ public partial class RequestApprovalResource : public long? MessageCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IRequestApprovalPropertiesInternal)Property).MessageCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IRequestApprovalPropertiesInternal)Property).MessageCode = value ?? default(long); } /// Internal Acessors for IsClosed - bool? Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IRequestApprovalResourceInternal.IsClosed { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IRequestApprovalPropertiesInternal)Property).IsClosed; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IRequestApprovalPropertiesInternal)Property).IsClosed = value; } + bool? Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IRequestApprovalResourceInternal.IsClosed { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IRequestApprovalPropertiesInternal)Property).IsClosed; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IRequestApprovalPropertiesInternal)Property).IsClosed = value ?? default(bool); } /// Internal Acessors for OfferDisplayName - string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IRequestApprovalResourceInternal.OfferDisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IRequestApprovalPropertiesInternal)Property).OfferDisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IRequestApprovalPropertiesInternal)Property).OfferDisplayName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IRequestApprovalResourceInternal.OfferDisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IRequestApprovalPropertiesInternal)Property).OfferDisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IRequestApprovalPropertiesInternal)Property).OfferDisplayName = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IRequestApprovalProperties Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IRequestApprovalResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.RequestApprovalProperties()); set { {_property = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource. [Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.PropertyOrigin.Inherited)] @@ -84,31 +102,31 @@ public partial class RequestApprovalResource : /// Metadata pertaining to creation and last modification of the resource [Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedBy; } /// The type of identity that created the resource [Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource [Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; } /// The type of the resource. [Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.PropertyOrigin.Inherited)] diff --git a/generated/Marketplace/Marketplace.Autorest/generated/api/Models/Resource.cs b/generated/Marketplace/Marketplace.Autorest/generated/api/Models/Resource.cs index e7232e06afc4..11a531cff6a7 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/api/Models/Resource.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/api/Models/Resource.cs @@ -29,6 +29,24 @@ public partial class Resource : /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IResourceInternal.Type { get => this._type; set { {_type = value;} } } @@ -48,27 +66,27 @@ public partial class Resource : /// The timestamp of resource creation (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource [Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource [Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// Backing field for property. private string _type; diff --git a/generated/Marketplace/Marketplace.Autorest/generated/api/Models/SingleOperation.cs b/generated/Marketplace/Marketplace.Autorest/generated/api/Models/SingleOperation.cs index 4fa42fe39701..8067547a9161 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/api/Models/SingleOperation.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/api/Models/SingleOperation.cs @@ -54,16 +54,16 @@ public partial class SingleOperation : Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISingleOperationDisplay Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISingleOperationInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.SingleOperationDisplay()); set { {_display = value;} } } /// Internal Acessors for DisplayDescription - string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISingleOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISingleOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISingleOperationDisplayInternal)Display).Description = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISingleOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISingleOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISingleOperationDisplayInternal)Display).Description = value ?? null; } /// Internal Acessors for DisplayOperation - string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISingleOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISingleOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISingleOperationDisplayInternal)Display).Operation = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISingleOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISingleOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISingleOperationDisplayInternal)Display).Operation = value ?? null; } /// Internal Acessors for DisplayProvider - string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISingleOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISingleOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISingleOperationDisplayInternal)Display).Provider = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISingleOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISingleOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISingleOperationDisplayInternal)Display).Provider = value ?? null; } /// Internal Acessors for DisplayResource - string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISingleOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISingleOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISingleOperationDisplayInternal)Display).Resource = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISingleOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISingleOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ISingleOperationDisplayInternal)Display).Resource = value ?? null; } /// Backing field for property. private string _name; diff --git a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStoreCollectionOffer_CreateExpanded.cs b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStoreCollectionOffer_CreateExpanded.cs index dab9ccf872bc..8369609171b9 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStoreCollectionOffer_CreateExpanded.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStoreCollectionOffer_CreateExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Cmdlets; using System; - /// Create or add an offer to a specific collection of the private store. + /// create or add an offer to a specific collection of the private store. /// /// [OpenAPI] CreateOrUpdate=>PUT:"/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}/offers/{offerId}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMarketplacePrivateStoreCollectionOffer_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IOffer))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"Create or add an offer to a specific collection of the private store.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"create or add an offer to a specific collection of the private store.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.HttpPath(Path = "/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}/offers/{offerId}", ApiVersion = "2023-01-01")] public partial class NewAzMarketplacePrivateStoreCollectionOffer_CreateExpanded : global::System.Management.Automation.PSCmdlet, diff --git a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStoreCollectionOffer_CreateViaIdentity.cs b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStoreCollectionOffer_CreateViaIdentity.cs index 867ecf5dfc92..44c2bb88b86f 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStoreCollectionOffer_CreateViaIdentity.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStoreCollectionOffer_CreateViaIdentity.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Cmdlets; using System; - /// Create or add an offer to a specific collection of the private store. + /// create or add an offer to a specific collection of the private store. /// /// [OpenAPI] CreateOrUpdate=>PUT:"/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}/offers/{offerId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMarketplacePrivateStoreCollectionOffer_CreateViaIdentity", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IOffer))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"Create or add an offer to a specific collection of the private store.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"create or add an offer to a specific collection of the private store.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.HttpPath(Path = "/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}/offers/{offerId}", ApiVersion = "2023-01-01")] public partial class NewAzMarketplacePrivateStoreCollectionOffer_CreateViaIdentity : global::System.Management.Automation.PSCmdlet, diff --git a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStoreCollectionOffer_CreateViaIdentityCollection.cs b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStoreCollectionOffer_CreateViaIdentityCollection.cs index 0bb2c641fd9b..3d309d8da5cc 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStoreCollectionOffer_CreateViaIdentityCollection.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStoreCollectionOffer_CreateViaIdentityCollection.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Cmdlets; using System; - /// Create or add an offer to a specific collection of the private store. + /// create or add an offer to a specific collection of the private store. /// /// [OpenAPI] CreateOrUpdate=>PUT:"/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}/offers/{offerId}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMarketplacePrivateStoreCollectionOffer_CreateViaIdentityCollection", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IOffer))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"Create or add an offer to a specific collection of the private store.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"create or add an offer to a specific collection of the private store.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.HttpPath(Path = "/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}/offers/{offerId}", ApiVersion = "2023-01-01")] public partial class NewAzMarketplacePrivateStoreCollectionOffer_CreateViaIdentityCollection : global::System.Management.Automation.PSCmdlet, diff --git a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStoreCollectionOffer_CreateViaIdentityCollectionExpanded.cs b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStoreCollectionOffer_CreateViaIdentityCollectionExpanded.cs index 64ba82834bad..85f968cc90d4 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStoreCollectionOffer_CreateViaIdentityCollectionExpanded.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStoreCollectionOffer_CreateViaIdentityCollectionExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Cmdlets; using System; - /// Create or add an offer to a specific collection of the private store. + /// create or add an offer to a specific collection of the private store. /// /// [OpenAPI] CreateOrUpdate=>PUT:"/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}/offers/{offerId}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMarketplacePrivateStoreCollectionOffer_CreateViaIdentityCollectionExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IOffer))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"Create or add an offer to a specific collection of the private store.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"create or add an offer to a specific collection of the private store.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.HttpPath(Path = "/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}/offers/{offerId}", ApiVersion = "2023-01-01")] public partial class NewAzMarketplacePrivateStoreCollectionOffer_CreateViaIdentityCollectionExpanded : global::System.Management.Automation.PSCmdlet, diff --git a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStoreCollectionOffer_CreateViaIdentityPrivateStore.cs b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStoreCollectionOffer_CreateViaIdentityPrivateStore.cs index 9e3a8e5588a8..d7414826f1fc 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStoreCollectionOffer_CreateViaIdentityPrivateStore.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStoreCollectionOffer_CreateViaIdentityPrivateStore.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Cmdlets; using System; - /// Create or add an offer to a specific collection of the private store. + /// create or add an offer to a specific collection of the private store. /// /// [OpenAPI] CreateOrUpdate=>PUT:"/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}/offers/{offerId}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMarketplacePrivateStoreCollectionOffer_CreateViaIdentityPrivateStore", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IOffer))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"Create or add an offer to a specific collection of the private store.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"create or add an offer to a specific collection of the private store.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.HttpPath(Path = "/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}/offers/{offerId}", ApiVersion = "2023-01-01")] public partial class NewAzMarketplacePrivateStoreCollectionOffer_CreateViaIdentityPrivateStore : global::System.Management.Automation.PSCmdlet, diff --git a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStoreCollectionOffer_CreateViaIdentityPrivateStoreExpanded.cs b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStoreCollectionOffer_CreateViaIdentityPrivateStoreExpanded.cs index 95b070842d35..01e978e7c754 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStoreCollectionOffer_CreateViaIdentityPrivateStoreExpanded.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStoreCollectionOffer_CreateViaIdentityPrivateStoreExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Cmdlets; using System; - /// Create or add an offer to a specific collection of the private store. + /// create or add an offer to a specific collection of the private store. /// /// [OpenAPI] CreateOrUpdate=>PUT:"/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}/offers/{offerId}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMarketplacePrivateStoreCollectionOffer_CreateViaIdentityPrivateStoreExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IOffer))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"Create or add an offer to a specific collection of the private store.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"create or add an offer to a specific collection of the private store.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.HttpPath(Path = "/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}/offers/{offerId}", ApiVersion = "2023-01-01")] public partial class NewAzMarketplacePrivateStoreCollectionOffer_CreateViaIdentityPrivateStoreExpanded : global::System.Management.Automation.PSCmdlet, diff --git a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStoreCollectionOffer_CreateViaJsonFilePath.cs b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStoreCollectionOffer_CreateViaJsonFilePath.cs index d84c02d2ab35..6d7db2853c01 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStoreCollectionOffer_CreateViaJsonFilePath.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStoreCollectionOffer_CreateViaJsonFilePath.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Cmdlets; using System; - /// Create or add an offer to a specific collection of the private store. + /// create or add an offer to a specific collection of the private store. /// /// [OpenAPI] CreateOrUpdate=>PUT:"/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}/offers/{offerId}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMarketplacePrivateStoreCollectionOffer_CreateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IOffer))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"Create or add an offer to a specific collection of the private store.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"create or add an offer to a specific collection of the private store.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.HttpPath(Path = "/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}/offers/{offerId}", ApiVersion = "2023-01-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.NotSuggestDefaultParameterSet] diff --git a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStoreCollectionOffer_CreateViaJsonString.cs b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStoreCollectionOffer_CreateViaJsonString.cs index 3963c19779fb..3ac1b4fb1f6f 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStoreCollectionOffer_CreateViaJsonString.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStoreCollectionOffer_CreateViaJsonString.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Cmdlets; using System; - /// Create or add an offer to a specific collection of the private store. + /// create or add an offer to a specific collection of the private store. /// /// [OpenAPI] CreateOrUpdate=>PUT:"/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}/offers/{offerId}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMarketplacePrivateStoreCollectionOffer_CreateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IOffer))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"Create or add an offer to a specific collection of the private store.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"create or add an offer to a specific collection of the private store.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.HttpPath(Path = "/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}/offers/{offerId}", ApiVersion = "2023-01-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.NotSuggestDefaultParameterSet] diff --git a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStoreCollection_CreateExpanded.cs b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStoreCollection_CreateExpanded.cs index 14f3767ea4c8..9d4631ff4142 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStoreCollection_CreateExpanded.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStoreCollection_CreateExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Cmdlets; using System; - /// Create private store collection + /// create private store collection /// /// [OpenAPI] CreateOrUpdate=>PUT:"/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMarketplacePrivateStoreCollection_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ICollection))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"Create private store collection")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"create private store collection")] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.HttpPath(Path = "/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}", ApiVersion = "2023-01-01")] public partial class NewAzMarketplacePrivateStoreCollection_CreateExpanded : global::System.Management.Automation.PSCmdlet, diff --git a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStoreCollection_CreateViaIdentity.cs b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStoreCollection_CreateViaIdentity.cs index 301bc0eeafeb..5256a793c5da 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStoreCollection_CreateViaIdentity.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStoreCollection_CreateViaIdentity.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Cmdlets; using System; - /// Create private store collection + /// create private store collection /// /// [OpenAPI] CreateOrUpdate=>PUT:"/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMarketplacePrivateStoreCollection_CreateViaIdentity", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ICollection))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"Create private store collection")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"create private store collection")] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.HttpPath(Path = "/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}", ApiVersion = "2023-01-01")] public partial class NewAzMarketplacePrivateStoreCollection_CreateViaIdentity : global::System.Management.Automation.PSCmdlet, diff --git a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStoreCollection_CreateViaIdentityPrivateStore.cs b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStoreCollection_CreateViaIdentityPrivateStore.cs index eb86e4981b91..849e01b6e37e 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStoreCollection_CreateViaIdentityPrivateStore.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStoreCollection_CreateViaIdentityPrivateStore.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Cmdlets; using System; - /// Create private store collection + /// create private store collection /// /// [OpenAPI] CreateOrUpdate=>PUT:"/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMarketplacePrivateStoreCollection_CreateViaIdentityPrivateStore", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ICollection))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"Create private store collection")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"create private store collection")] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.HttpPath(Path = "/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}", ApiVersion = "2023-01-01")] public partial class NewAzMarketplacePrivateStoreCollection_CreateViaIdentityPrivateStore : global::System.Management.Automation.PSCmdlet, diff --git a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStoreCollection_CreateViaIdentityPrivateStoreExpanded.cs b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStoreCollection_CreateViaIdentityPrivateStoreExpanded.cs index dbf40cb12ba8..98704a121a1c 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStoreCollection_CreateViaIdentityPrivateStoreExpanded.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStoreCollection_CreateViaIdentityPrivateStoreExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Cmdlets; using System; - /// Create private store collection + /// create private store collection /// /// [OpenAPI] CreateOrUpdate=>PUT:"/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMarketplacePrivateStoreCollection_CreateViaIdentityPrivateStoreExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ICollection))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"Create private store collection")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"create private store collection")] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.HttpPath(Path = "/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}", ApiVersion = "2023-01-01")] public partial class NewAzMarketplacePrivateStoreCollection_CreateViaIdentityPrivateStoreExpanded : global::System.Management.Automation.PSCmdlet, diff --git a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStoreCollection_CreateViaJsonFilePath.cs b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStoreCollection_CreateViaJsonFilePath.cs index dc48aa7a37c9..bedfda304fec 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStoreCollection_CreateViaJsonFilePath.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStoreCollection_CreateViaJsonFilePath.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Cmdlets; using System; - /// Create private store collection + /// create private store collection /// /// [OpenAPI] CreateOrUpdate=>PUT:"/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMarketplacePrivateStoreCollection_CreateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ICollection))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"Create private store collection")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"create private store collection")] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.HttpPath(Path = "/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}", ApiVersion = "2023-01-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.NotSuggestDefaultParameterSet] diff --git a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStoreCollection_CreateViaJsonString.cs b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStoreCollection_CreateViaJsonString.cs index 24e9c181ac4a..6e109a540543 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStoreCollection_CreateViaJsonString.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStoreCollection_CreateViaJsonString.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Cmdlets; using System; - /// Create private store collection + /// create private store collection /// /// [OpenAPI] CreateOrUpdate=>PUT:"/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMarketplacePrivateStoreCollection_CreateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ICollection))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"Create private store collection")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"create private store collection")] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.HttpPath(Path = "/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}", ApiVersion = "2023-01-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.NotSuggestDefaultParameterSet] diff --git a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStore_CreateExpanded.cs b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStore_CreateExpanded.cs index 0f698521157f..dad64f137e5d 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStore_CreateExpanded.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStore_CreateExpanded.cs @@ -546,7 +546,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStore_CreateViaIdentity.cs b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStore_CreateViaIdentity.cs index 9720c16b2a15..787703b15dfa 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStore_CreateViaIdentity.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStore_CreateViaIdentity.cs @@ -472,7 +472,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStore_CreateViaJsonFilePath.cs b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStore_CreateViaJsonFilePath.cs index a6cbe53b089a..9612bc761f93 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStore_CreateViaJsonFilePath.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStore_CreateViaJsonFilePath.cs @@ -468,7 +468,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStore_CreateViaJsonString.cs b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStore_CreateViaJsonString.cs index 398252f806a6..e9ac4f5f5fd6 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStore_CreateViaJsonString.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/NewAzMarketplacePrivateStore_CreateViaJsonString.cs @@ -466,7 +466,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/RemoveAzMarketplacePrivateStoreCollectionOffer_Delete.cs b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/RemoveAzMarketplacePrivateStoreCollectionOffer_Delete.cs index 1dd77818cc87..8ac86868b287 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/RemoveAzMarketplacePrivateStoreCollectionOffer_Delete.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/RemoveAzMarketplacePrivateStoreCollectionOffer_Delete.cs @@ -489,7 +489,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -513,7 +513,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/RemoveAzMarketplacePrivateStoreCollectionOffer_DeleteViaIdentity.cs b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/RemoveAzMarketplacePrivateStoreCollectionOffer_DeleteViaIdentity.cs index 5a8ce5a88cfd..0659432eb915 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/RemoveAzMarketplacePrivateStoreCollectionOffer_DeleteViaIdentity.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/RemoveAzMarketplacePrivateStoreCollectionOffer_DeleteViaIdentity.cs @@ -476,7 +476,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -500,7 +500,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/RemoveAzMarketplacePrivateStoreCollectionOffer_DeleteViaIdentityCollection.cs b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/RemoveAzMarketplacePrivateStoreCollectionOffer_DeleteViaIdentityCollection.cs index f5f9fdb2f3c8..503f99999e2e 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/RemoveAzMarketplacePrivateStoreCollectionOffer_DeleteViaIdentityCollection.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/RemoveAzMarketplacePrivateStoreCollectionOffer_DeleteViaIdentityCollection.cs @@ -487,7 +487,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -511,7 +511,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/RemoveAzMarketplacePrivateStoreCollectionOffer_DeleteViaIdentityPrivateStore.cs b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/RemoveAzMarketplacePrivateStoreCollectionOffer_DeleteViaIdentityPrivateStore.cs index be5051d7fa0b..4fc1db988a5c 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/RemoveAzMarketplacePrivateStoreCollectionOffer_DeleteViaIdentityPrivateStore.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/RemoveAzMarketplacePrivateStoreCollectionOffer_DeleteViaIdentityPrivateStore.cs @@ -497,7 +497,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -521,7 +521,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/RemoveAzMarketplacePrivateStoreCollection_Delete.cs b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/RemoveAzMarketplacePrivateStoreCollection_Delete.cs index f9f2c0eafd78..64b75049b265 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/RemoveAzMarketplacePrivateStoreCollection_Delete.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/RemoveAzMarketplacePrivateStoreCollection_Delete.cs @@ -475,7 +475,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -499,7 +499,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/RemoveAzMarketplacePrivateStoreCollection_DeleteViaIdentity.cs b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/RemoveAzMarketplacePrivateStoreCollection_DeleteViaIdentity.cs index f09cecc8685e..d8ccdfa6ddc4 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/RemoveAzMarketplacePrivateStoreCollection_DeleteViaIdentity.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/RemoveAzMarketplacePrivateStoreCollection_DeleteViaIdentity.cs @@ -471,7 +471,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -495,7 +495,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/RemoveAzMarketplacePrivateStoreCollection_DeleteViaIdentityPrivateStore.cs b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/RemoveAzMarketplacePrivateStoreCollection_DeleteViaIdentityPrivateStore.cs index 83f90d26718b..1f617b54a4ea 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/RemoveAzMarketplacePrivateStoreCollection_DeleteViaIdentityPrivateStore.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/RemoveAzMarketplacePrivateStoreCollection_DeleteViaIdentityPrivateStore.cs @@ -483,7 +483,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -507,7 +507,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/SetAzMarketplacePrivateStoreCollectionOffer_UpdateExpanded.cs b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/SetAzMarketplacePrivateStoreCollectionOffer_UpdateExpanded.cs index 30b92bad7118..b23fa1859cb0 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/SetAzMarketplacePrivateStoreCollectionOffer_UpdateExpanded.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/SetAzMarketplacePrivateStoreCollectionOffer_UpdateExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Cmdlets; using System; - /// Update or add an offer to a specific collection of the private store. + /// update or add an offer to a specific collection of the private store. /// /// [OpenAPI] CreateOrUpdate=>PUT:"/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}/offers/{offerId}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzMarketplacePrivateStoreCollectionOffer_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IOffer))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"Update or add an offer to a specific collection of the private store.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"update or add an offer to a specific collection of the private store.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.HttpPath(Path = "/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}/offers/{offerId}", ApiVersion = "2023-01-01")] public partial class SetAzMarketplacePrivateStoreCollectionOffer_UpdateExpanded : global::System.Management.Automation.PSCmdlet, diff --git a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/SetAzMarketplacePrivateStoreCollectionOffer_UpdateViaJsonFilePath.cs b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/SetAzMarketplacePrivateStoreCollectionOffer_UpdateViaJsonFilePath.cs index 706439527fd1..3ff17a44f649 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/SetAzMarketplacePrivateStoreCollectionOffer_UpdateViaJsonFilePath.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/SetAzMarketplacePrivateStoreCollectionOffer_UpdateViaJsonFilePath.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Cmdlets; using System; - /// Update or add an offer to a specific collection of the private store. + /// update or add an offer to a specific collection of the private store. /// /// [OpenAPI] CreateOrUpdate=>PUT:"/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}/offers/{offerId}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzMarketplacePrivateStoreCollectionOffer_UpdateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IOffer))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"Update or add an offer to a specific collection of the private store.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"update or add an offer to a specific collection of the private store.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.HttpPath(Path = "/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}/offers/{offerId}", ApiVersion = "2023-01-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.NotSuggestDefaultParameterSet] diff --git a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/SetAzMarketplacePrivateStoreCollectionOffer_UpdateViaJsonString.cs b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/SetAzMarketplacePrivateStoreCollectionOffer_UpdateViaJsonString.cs index 769b1ad9f772..319629df68a8 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/SetAzMarketplacePrivateStoreCollectionOffer_UpdateViaJsonString.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/SetAzMarketplacePrivateStoreCollectionOffer_UpdateViaJsonString.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Cmdlets; using System; - /// Update or add an offer to a specific collection of the private store. + /// update or add an offer to a specific collection of the private store. /// /// [OpenAPI] CreateOrUpdate=>PUT:"/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}/offers/{offerId}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzMarketplacePrivateStoreCollectionOffer_UpdateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IOffer))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"Update or add an offer to a specific collection of the private store.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"update or add an offer to a specific collection of the private store.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.HttpPath(Path = "/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}/offers/{offerId}", ApiVersion = "2023-01-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.NotSuggestDefaultParameterSet] diff --git a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/SetAzMarketplacePrivateStoreCollection_UpdateExpanded.cs b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/SetAzMarketplacePrivateStoreCollection_UpdateExpanded.cs index f8f2ac18ec4e..cb88dca989d8 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/SetAzMarketplacePrivateStoreCollection_UpdateExpanded.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/SetAzMarketplacePrivateStoreCollection_UpdateExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Cmdlets; using System; - /// Update private store collection + /// update private store collection /// /// [OpenAPI] CreateOrUpdate=>PUT:"/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzMarketplacePrivateStoreCollection_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ICollection))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"Update private store collection")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"update private store collection")] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.HttpPath(Path = "/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}", ApiVersion = "2023-01-01")] public partial class SetAzMarketplacePrivateStoreCollection_UpdateExpanded : global::System.Management.Automation.PSCmdlet, diff --git a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/SetAzMarketplacePrivateStoreCollection_UpdateViaJsonFilePath.cs b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/SetAzMarketplacePrivateStoreCollection_UpdateViaJsonFilePath.cs index a37617af1659..fcf3360a8911 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/SetAzMarketplacePrivateStoreCollection_UpdateViaJsonFilePath.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/SetAzMarketplacePrivateStoreCollection_UpdateViaJsonFilePath.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Cmdlets; using System; - /// Update private store collection + /// update private store collection /// /// [OpenAPI] CreateOrUpdate=>PUT:"/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzMarketplacePrivateStoreCollection_UpdateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ICollection))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"Update private store collection")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"update private store collection")] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.HttpPath(Path = "/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}", ApiVersion = "2023-01-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.NotSuggestDefaultParameterSet] diff --git a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/SetAzMarketplacePrivateStoreCollection_UpdateViaJsonString.cs b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/SetAzMarketplacePrivateStoreCollection_UpdateViaJsonString.cs index d3f82f877e9c..43246c46a0c6 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/SetAzMarketplacePrivateStoreCollection_UpdateViaJsonString.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/SetAzMarketplacePrivateStoreCollection_UpdateViaJsonString.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Cmdlets; using System; - /// Update private store collection + /// update private store collection /// /// [OpenAPI] CreateOrUpdate=>PUT:"/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzMarketplacePrivateStoreCollection_UpdateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ICollection))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"Update private store collection")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"update private store collection")] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.HttpPath(Path = "/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}", ApiVersion = "2023-01-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.NotSuggestDefaultParameterSet] diff --git a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/SetAzMarketplacePrivateStore_UpdateExpanded.cs b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/SetAzMarketplacePrivateStore_UpdateExpanded.cs index 4612e5950191..f999dd56fe7d 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/SetAzMarketplacePrivateStore_UpdateExpanded.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/SetAzMarketplacePrivateStore_UpdateExpanded.cs @@ -546,7 +546,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/SetAzMarketplacePrivateStore_UpdateViaJsonFilePath.cs b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/SetAzMarketplacePrivateStore_UpdateViaJsonFilePath.cs index edb3a5a8269d..4df35566d3ff 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/SetAzMarketplacePrivateStore_UpdateViaJsonFilePath.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/SetAzMarketplacePrivateStore_UpdateViaJsonFilePath.cs @@ -468,7 +468,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/SetAzMarketplacePrivateStore_UpdateViaJsonString.cs b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/SetAzMarketplacePrivateStore_UpdateViaJsonString.cs index c3b5049e4d8e..f583e06bc4d6 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/SetAzMarketplacePrivateStore_UpdateViaJsonString.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/SetAzMarketplacePrivateStore_UpdateViaJsonString.cs @@ -466,7 +466,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/UpdateAzMarketplacePrivateStoreCollectionOffer_UpdateExpanded.cs b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/UpdateAzMarketplacePrivateStoreCollectionOffer_UpdateExpanded.cs index de6f6ef71629..6b26d3b282d3 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/UpdateAzMarketplacePrivateStoreCollectionOffer_UpdateExpanded.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/UpdateAzMarketplacePrivateStoreCollectionOffer_UpdateExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Cmdlets; using System; - /// Update or add an offer to a specific collection of the private store. + /// update or add an offer to a specific collection of the private store. /// /// [OpenAPI] Get=>GET:"/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}/offers/{offerId}" /// [OpenAPI] CreateOrUpdate=>PUT:"/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}/offers/{offerId}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMarketplacePrivateStoreCollectionOffer_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IOffer))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"Update or add an offer to a specific collection of the private store.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"update or add an offer to a specific collection of the private store.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Generated] public partial class UpdateAzMarketplacePrivateStoreCollectionOffer_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.IEventListener, diff --git a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/UpdateAzMarketplacePrivateStoreCollectionOffer_UpdateViaIdentityCollection.cs b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/UpdateAzMarketplacePrivateStoreCollectionOffer_UpdateViaIdentityCollection.cs index 99249ccf5e2d..a2bd57cbb3a0 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/UpdateAzMarketplacePrivateStoreCollectionOffer_UpdateViaIdentityCollection.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/UpdateAzMarketplacePrivateStoreCollectionOffer_UpdateViaIdentityCollection.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Cmdlets; using System; - /// Update or add an offer to a specific collection of the private store. + /// update or add an offer to a specific collection of the private store. /// /// [OpenAPI] Get=>GET:"/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}/offers/{offerId}" /// [OpenAPI] CreateOrUpdate=>PUT:"/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}/offers/{offerId}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMarketplacePrivateStoreCollectionOffer_UpdateViaIdentityCollection", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IOffer))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"Update or add an offer to a specific collection of the private store.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"update or add an offer to a specific collection of the private store.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Generated] public partial class UpdateAzMarketplacePrivateStoreCollectionOffer_UpdateViaIdentityCollection : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.IEventListener, diff --git a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/UpdateAzMarketplacePrivateStoreCollectionOffer_UpdateViaIdentityCollectionExpanded.cs b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/UpdateAzMarketplacePrivateStoreCollectionOffer_UpdateViaIdentityCollectionExpanded.cs index 01d90857c032..73a102f70b60 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/UpdateAzMarketplacePrivateStoreCollectionOffer_UpdateViaIdentityCollectionExpanded.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/UpdateAzMarketplacePrivateStoreCollectionOffer_UpdateViaIdentityCollectionExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Cmdlets; using System; - /// Update or add an offer to a specific collection of the private store. + /// update or add an offer to a specific collection of the private store. /// /// [OpenAPI] Get=>GET:"/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}/offers/{offerId}" /// [OpenAPI] CreateOrUpdate=>PUT:"/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}/offers/{offerId}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMarketplacePrivateStoreCollectionOffer_UpdateViaIdentityCollectionExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IOffer))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"Update or add an offer to a specific collection of the private store.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"update or add an offer to a specific collection of the private store.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Generated] public partial class UpdateAzMarketplacePrivateStoreCollectionOffer_UpdateViaIdentityCollectionExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.IEventListener, diff --git a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/UpdateAzMarketplacePrivateStoreCollectionOffer_UpdateViaIdentityExpanded.cs b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/UpdateAzMarketplacePrivateStoreCollectionOffer_UpdateViaIdentityExpanded.cs index 065688a2904e..1e4fc1e8b17b 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/UpdateAzMarketplacePrivateStoreCollectionOffer_UpdateViaIdentityExpanded.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/UpdateAzMarketplacePrivateStoreCollectionOffer_UpdateViaIdentityExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Cmdlets; using System; - /// Update or add an offer to a specific collection of the private store. + /// update or add an offer to a specific collection of the private store. /// /// [OpenAPI] Get=>GET:"/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}/offers/{offerId}" /// [OpenAPI] CreateOrUpdate=>PUT:"/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}/offers/{offerId}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMarketplacePrivateStoreCollectionOffer_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IOffer))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"Update or add an offer to a specific collection of the private store.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"update or add an offer to a specific collection of the private store.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Generated] public partial class UpdateAzMarketplacePrivateStoreCollectionOffer_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.IEventListener, diff --git a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/UpdateAzMarketplacePrivateStoreCollectionOffer_UpdateViaIdentityPrivateStore.cs b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/UpdateAzMarketplacePrivateStoreCollectionOffer_UpdateViaIdentityPrivateStore.cs index f9936b18f62d..6803cc84fc2a 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/UpdateAzMarketplacePrivateStoreCollectionOffer_UpdateViaIdentityPrivateStore.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/UpdateAzMarketplacePrivateStoreCollectionOffer_UpdateViaIdentityPrivateStore.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Cmdlets; using System; - /// Update or add an offer to a specific collection of the private store. + /// update or add an offer to a specific collection of the private store. /// /// [OpenAPI] Get=>GET:"/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}/offers/{offerId}" /// [OpenAPI] CreateOrUpdate=>PUT:"/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}/offers/{offerId}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMarketplacePrivateStoreCollectionOffer_UpdateViaIdentityPrivateStore", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IOffer))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"Update or add an offer to a specific collection of the private store.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"update or add an offer to a specific collection of the private store.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Generated] public partial class UpdateAzMarketplacePrivateStoreCollectionOffer_UpdateViaIdentityPrivateStore : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.IEventListener, diff --git a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/UpdateAzMarketplacePrivateStoreCollectionOffer_UpdateViaIdentityPrivateStoreExpanded.cs b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/UpdateAzMarketplacePrivateStoreCollectionOffer_UpdateViaIdentityPrivateStoreExpanded.cs index 91864c6ad4f9..7c955a1b05e9 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/UpdateAzMarketplacePrivateStoreCollectionOffer_UpdateViaIdentityPrivateStoreExpanded.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/UpdateAzMarketplacePrivateStoreCollectionOffer_UpdateViaIdentityPrivateStoreExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Cmdlets; using System; - /// Update or add an offer to a specific collection of the private store. + /// update or add an offer to a specific collection of the private store. /// /// [OpenAPI] Get=>GET:"/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}/offers/{offerId}" /// [OpenAPI] CreateOrUpdate=>PUT:"/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}/offers/{offerId}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMarketplacePrivateStoreCollectionOffer_UpdateViaIdentityPrivateStoreExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.IOffer))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"Update or add an offer to a specific collection of the private store.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"update or add an offer to a specific collection of the private store.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Generated] public partial class UpdateAzMarketplacePrivateStoreCollectionOffer_UpdateViaIdentityPrivateStoreExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.IEventListener, diff --git a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/UpdateAzMarketplacePrivateStoreCollection_UpdateExpanded.cs b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/UpdateAzMarketplacePrivateStoreCollection_UpdateExpanded.cs index 3d79b27fafd8..03e9a4514aa9 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/UpdateAzMarketplacePrivateStoreCollection_UpdateExpanded.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/UpdateAzMarketplacePrivateStoreCollection_UpdateExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Cmdlets; using System; - /// Update private store collection + /// update private store collection /// /// [OpenAPI] Get=>GET:"/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}" /// [OpenAPI] CreateOrUpdate=>PUT:"/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMarketplacePrivateStoreCollection_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ICollection))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"Update private store collection")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"update private store collection")] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Generated] public partial class UpdateAzMarketplacePrivateStoreCollection_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.IEventListener, diff --git a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/UpdateAzMarketplacePrivateStoreCollection_UpdateViaIdentityExpanded.cs b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/UpdateAzMarketplacePrivateStoreCollection_UpdateViaIdentityExpanded.cs index 2c33e368704b..b177b2c40930 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/UpdateAzMarketplacePrivateStoreCollection_UpdateViaIdentityExpanded.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/UpdateAzMarketplacePrivateStoreCollection_UpdateViaIdentityExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Cmdlets; using System; - /// Update private store collection + /// update private store collection /// /// [OpenAPI] Get=>GET:"/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}" /// [OpenAPI] CreateOrUpdate=>PUT:"/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMarketplacePrivateStoreCollection_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ICollection))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"Update private store collection")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"update private store collection")] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Generated] public partial class UpdateAzMarketplacePrivateStoreCollection_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.IEventListener, diff --git a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/UpdateAzMarketplacePrivateStoreCollection_UpdateViaIdentityPrivateStore.cs b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/UpdateAzMarketplacePrivateStoreCollection_UpdateViaIdentityPrivateStore.cs index f5dda5e25531..77fa74624484 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/UpdateAzMarketplacePrivateStoreCollection_UpdateViaIdentityPrivateStore.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/UpdateAzMarketplacePrivateStoreCollection_UpdateViaIdentityPrivateStore.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Cmdlets; using System; - /// Update private store collection + /// update private store collection /// /// [OpenAPI] Get=>GET:"/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}" /// [OpenAPI] CreateOrUpdate=>PUT:"/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMarketplacePrivateStoreCollection_UpdateViaIdentityPrivateStore", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ICollection))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"Update private store collection")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"update private store collection")] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Generated] public partial class UpdateAzMarketplacePrivateStoreCollection_UpdateViaIdentityPrivateStore : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.IEventListener, diff --git a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/UpdateAzMarketplacePrivateStoreCollection_UpdateViaIdentityPrivateStoreExpanded.cs b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/UpdateAzMarketplacePrivateStoreCollection_UpdateViaIdentityPrivateStoreExpanded.cs index 5ef4d18077c7..891e9fa9431d 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/UpdateAzMarketplacePrivateStoreCollection_UpdateViaIdentityPrivateStoreExpanded.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/cmdlets/UpdateAzMarketplacePrivateStoreCollection_UpdateViaIdentityPrivateStoreExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.Cmdlets; using System; - /// Update private store collection + /// update private store collection /// /// [OpenAPI] Get=>GET:"/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}" /// [OpenAPI] CreateOrUpdate=>PUT:"/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMarketplacePrivateStoreCollection_UpdateViaIdentityPrivateStoreExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Models.ICollection))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"Update private store collection")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Description(@"update private store collection")] [global::Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Generated] public partial class UpdateAzMarketplacePrivateStoreCollection_UpdateViaIdentityPrivateStoreExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.IEventListener, diff --git a/generated/Marketplace/Marketplace.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/Marketplace/Marketplace.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs index be641dfe3a77..b201f3e17f76 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs @@ -36,14 +36,23 @@ internal class PsHelpInfo public object Role { get; } public string NonTerminatingErrors { get; } + public static string CapitalizeFirstLetter(string text) + { + if (string.IsNullOrEmpty(text)) + return text; + + return char.ToUpper(text[0]) + text.Substring(1); + } + public PsHelpInfo(PSObject helpObject = null) { helpObject = helpObject ?? new PSObject(); CmdletName = helpObject.GetProperty("Name").NullIfEmpty() ?? helpObject.GetNestedProperty("details", "name"); ModuleName = helpObject.GetProperty("ModuleName"); - Synopsis = helpObject.GetProperty("Synopsis"); + Synopsis = CapitalizeFirstLetter(helpObject.GetProperty("Synopsis")); Description = helpObject.GetProperty("description").EmptyIfNull().ToDescriptionText().NullIfEmpty() ?? helpObject.GetNestedProperty("details", "description").EmptyIfNull().ToDescriptionText(); + Description = CapitalizeFirstLetter(Description); AlertText = helpObject.GetNestedProperty("alertSet", "alert").EmptyIfNull().ToDescriptionText(); Category = helpObject.GetProperty("Category"); HasCommonParameters = helpObject.GetProperty("CommonParameters").ToNullableBool(); diff --git a/generated/Marketplace/Marketplace.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/Marketplace/Marketplace.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 802f5adedf97..e0ad10529259 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -216,6 +216,20 @@ public string GetProcessCustomAttributesAtRuntime() {Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)"; } + private string GetLoginVerification() + { + if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) + { + return $@" +{Indent}{Indent}$context = Get-AzContext +{Indent}{Indent}if (-not $context -and -not $testPlayback) {{ +{Indent}{Indent}{Indent}throw ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" +{Indent}{Indent}}} +"; + } + return ""; + } + private string GetTelemetry() { if (!VariantGroup.IsInternal && IsAzure) @@ -248,10 +262,16 @@ public override string ToString() => $@"begin {{ {Indent}{Indent}{Indent}$PSBoundParameters['OutBuffer'] = 1 {Indent}{Indent}}} {Indent}{Indent}$parameterSet = $PSCmdlet.ParameterSetName -{GetTelemetry()} +{Indent}{Indent} +{Indent}{Indent}$testPlayback = $false +{Indent}{Indent}$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object {{ if ($_) {{ $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) }} }} +{GetLoginVerification()}{GetTelemetry()} {GetParameterSetToCmdletMapping()}{GetDefaultValuesStatements()} {GetProcessCustomAttributesAtRuntime()} {Indent}{Indent}$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) +{Indent}{Indent}if ($wrappedCmd -eq $null) {{ +{Indent}{Indent}{Indent}$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) +{Indent}{Indent}}} {Indent}{Indent}$scriptCmd = {{& $wrappedCmd @PSBoundParameters}} {Indent}{Indent}$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) {Indent}{Indent}$steppablePipeline.Begin($PSCmdlet) @@ -295,8 +315,6 @@ private string GetDefaultValuesStatements() if ("SubscriptionId".Equals(parameterName)) { sb.AppendLine($"{Indent}{Indent}if (({variantListString}) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('{parameterName}'){setCondition}) {{"); - sb.AppendLine($"{Indent}{Indent}{Indent}$testPlayback = $false"); - sb.AppendLine($"{Indent}{Indent}{Indent}$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object {{ if ($_) {{ $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.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 {{"); diff --git a/generated/Marketplace/Marketplace.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/Marketplace/Marketplace.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs index 5b1b6cf03978..c8a1ead58d85 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs @@ -49,6 +49,7 @@ internal class VariantGroup public PsHelpInfo HelpInfo { get; } public bool IsGenerated { get; } public bool IsInternal { get; } + public bool IsModelCmdlet { get; } public string OutputFolder { get; } public string FileName { get; } public string FilePath { get; } @@ -83,6 +84,7 @@ public VariantGroup(string moduleName, string cmdletName, Variant[] variants, st HelpInfo = Variants.Select(v => v.HelpInfo).FirstOrDefault() ?? new PsHelpInfo(); IsGenerated = Variants.All(v => v.Attributes.OfType().Any()); IsInternal = isInternal; + IsModelCmdlet = Variants.All(v => v.IsModelCmdlet); OutputFolder = outputFolder; FileName = $"{CmdletName}{(isTest ? ".Tests" : String.Empty)}.ps1"; FilePath = Path.Combine(OutputFolder, FileName); @@ -143,6 +145,7 @@ internal class Variant public Parameter[] Parameters { get; } public Parameter[] CmdletOnlyParameters { get; } public bool IsInternal { get; } + public bool IsModelCmdlet { get; } public bool IsDoNotExport { get; } public bool IsNotSuggestDefaultParameterSet { get; } public string[] Profiles { get; } @@ -165,6 +168,7 @@ public Variant(string cmdletName, string variantName, CommandInfo info, CommandM Parameters = this.ToParameters().OrderBy(p => p.OrderCategory).ThenByDescending(p => p.IsMandatory).ToArray(); IsInternal = Attributes.OfType().Any(); IsDoNotExport = Attributes.OfType().Any(); + IsModelCmdlet = Attributes.OfType().Any(); IsNotSuggestDefaultParameterSet = Attributes.OfType().Any(); CmdletOnlyParameters = Parameters.Where(p => !p.Categories.Any(c => c == ParameterCategory.Azure || c == ParameterCategory.Runtime)).ToArray(); Profiles = Attributes.OfType().SelectMany(pa => pa.Profiles).ToArray(); @@ -388,6 +392,7 @@ public CommentInfo(VariantGroup variantGroup) var helpInfo = variantGroup.HelpInfo; Description = variantGroup.Variants.SelectMany(v => v.Attributes).OfType().FirstOrDefault()?.Description.NullIfEmpty() ?? helpInfo.Description.EmptyIfNull(); + Description = PsHelpInfo.CapitalizeFirstLetter(Description); // If there is no Synopsis, PowerShell may put in the Syntax string as the Synopsis. This seems unintended, so we remove the Synopsis in this situation. var synopsis = helpInfo.Synopsis.EmptyIfNull().Trim().StartsWith(variantGroup.CmdletName) ? String.Empty : helpInfo.Synopsis; Synopsis = synopsis.NullIfEmpty() ?? Description; diff --git a/generated/Marketplace/Marketplace.Autorest/generated/runtime/BuildTime/PsAttributes.cs b/generated/Marketplace/Marketplace.Autorest/generated/runtime/BuildTime/PsAttributes.cs index df5a43833757..f7e836bb722d 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/runtime/BuildTime/PsAttributes.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/runtime/BuildTime/PsAttributes.cs @@ -22,6 +22,11 @@ public class DoNotExportAttribute : Attribute { } + [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property)] + public class ModelCmdletAttribute : Attribute + { + } + [AttributeUsage(AttributeTargets.Class)] public class InternalExportAttribute : Attribute { diff --git a/generated/Marketplace/Marketplace.Autorest/generated/runtime/Context.cs b/generated/Marketplace/Marketplace.Autorest/generated/runtime/Context.cs index 3caf79554019..4d8a7cef7fc7 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/runtime/Context.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime /// The IContext Interface defines the communication mechanism for input customization. /// /// - /// In the context, we will have client, pipeline, PSBoundParamters, default EventListener, Cancellation. + /// In the context, we will have client, pipeline, PSBoundParameters, default EventListener, Cancellation. /// public interface IContext { diff --git a/generated/Marketplace/Marketplace.Autorest/generated/runtime/MessageAttribute.cs b/generated/Marketplace/Marketplace.Autorest/generated/runtime/MessageAttribute.cs index 9b6264e22d68..98fcd8109267 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/runtime/MessageAttribute.cs +++ b/generated/Marketplace/Marketplace.Autorest/generated/runtime/MessageAttribute.cs @@ -16,9 +16,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime public class GenericBreakingChangeAttribute : Attribute { private string _message; - //A dexcription of what the change is about, non mandatory + //A description of what the change is about, non mandatory public string ChangeDescription { get; set; } = null; + //Name of the module that is being deprecated + public string moduleName { get; set; } = String.IsNullOrEmpty(@"") ? @"Az.Marketplace" : @""; + //The version the change is effective from, non mandatory public string DeprecateByVersion { get; } public string DeprecateByAzVersion { get; } @@ -82,7 +85,7 @@ public void PrintCustomAttributeInfo(Action writeOutput) } writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByAzVersion, this.DeprecateByAzVersion)); - writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.DeprecateByVersion)); + writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.moduleName, this.DeprecateByVersion)); if (OldWay != null && NewWay != null) { @@ -191,11 +194,11 @@ public PreviewMessageAttribute(string message, string estimatedDateOfGa) : this( this.IsEstimatedGaDateSet = true; } } - + public void PrintCustomAttributeInfo(Action writeOutput) { writeOutput(this._message); - + if (IsEstimatedGaDateSet) { writeOutput(string.Format(Resources.PreviewCmdletETAMessage, this.EstimatedGaDate.ToShortDateString())); diff --git a/generated/Marketplace/Marketplace.Autorest/generated/runtime/Properties/Resources.resx b/generated/Marketplace/Marketplace.Autorest/generated/runtime/Properties/Resources.resx index a08a2e50172b..4ef90b70573d 100644 --- a/generated/Marketplace/Marketplace.Autorest/generated/runtime/Properties/Resources.resx +++ b/generated/Marketplace/Marketplace.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 version : '{0}' +- The change is expected to take effect in '{0}' from version : '{1}' ```powershell diff --git a/generated/Marketplace/Marketplace.Autorest/internal/Get-AzMarketplaceOperation.ps1 b/generated/Marketplace/Marketplace.Autorest/internal/Get-AzMarketplaceOperation.ps1 index c3729ba4955a..055eca8b3afb 100644 --- a/generated/Marketplace/Marketplace.Autorest/internal/Get-AzMarketplaceOperation.ps1 +++ b/generated/Marketplace/Marketplace.Autorest/internal/Get-AzMarketplaceOperation.ps1 @@ -90,11 +90,17 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ List = 'Az.Marketplace.private\Get-AzMarketplaceOperation_List'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Marketplace/Marketplace.Autorest/internal/New-AzMarketplacePrivateStore.ps1 b/generated/Marketplace/Marketplace.Autorest/internal/New-AzMarketplacePrivateStore.ps1 index 9edacc7faf16..47d747c10474 100644 --- a/generated/Marketplace/Marketplace.Autorest/internal/New-AzMarketplacePrivateStore.ps1 +++ b/generated/Marketplace/Marketplace.Autorest/internal/New-AzMarketplacePrivateStore.ps1 @@ -134,11 +134,17 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ CreateViaIdentity = 'Az.Marketplace.private\New-AzMarketplacePrivateStore_CreateViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Marketplace/Marketplace.Autorest/internal/New-AzMarketplacePrivateStoreCollection.ps1 b/generated/Marketplace/Marketplace.Autorest/internal/New-AzMarketplacePrivateStoreCollection.ps1 index eb9dc4bc7b97..ea46487579a7 100644 --- a/generated/Marketplace/Marketplace.Autorest/internal/New-AzMarketplacePrivateStoreCollection.ps1 +++ b/generated/Marketplace/Marketplace.Autorest/internal/New-AzMarketplacePrivateStoreCollection.ps1 @@ -123,11 +123,17 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ CreateViaIdentity = 'Az.Marketplace.private\New-AzMarketplacePrivateStoreCollection_CreateViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Marketplace/Marketplace.Autorest/internal/New-AzMarketplacePrivateStoreCollectionOffer.ps1 b/generated/Marketplace/Marketplace.Autorest/internal/New-AzMarketplacePrivateStoreCollectionOffer.ps1 index a8e5286a12b6..c87aa14de705 100644 --- a/generated/Marketplace/Marketplace.Autorest/internal/New-AzMarketplacePrivateStoreCollectionOffer.ps1 +++ b/generated/Marketplace/Marketplace.Autorest/internal/New-AzMarketplacePrivateStoreCollectionOffer.ps1 @@ -126,11 +126,17 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ CreateViaIdentity = 'Az.Marketplace.private\New-AzMarketplacePrivateStoreCollectionOffer_CreateViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Marketplace/Marketplace.Autorest/internal/ProxyCmdletDefinitions.ps1 b/generated/Marketplace/Marketplace.Autorest/internal/ProxyCmdletDefinitions.ps1 index ba5a689427cc..f55ae5094efb 100644 --- a/generated/Marketplace/Marketplace.Autorest/internal/ProxyCmdletDefinitions.ps1 +++ b/generated/Marketplace/Marketplace.Autorest/internal/ProxyCmdletDefinitions.ps1 @@ -90,11 +90,17 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ List = 'Az.Marketplace.private\Get-AzMarketplaceOperation_List'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -236,11 +242,17 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ CreateViaIdentity = 'Az.Marketplace.private\New-AzMarketplacePrivateStoreCollectionOffer_CreateViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -379,11 +391,17 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ CreateViaIdentity = 'Az.Marketplace.private\New-AzMarketplacePrivateStoreCollection_CreateViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -533,11 +551,17 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Marketplace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ CreateViaIdentity = 'Az.Marketplace.private\New-AzMarketplacePrivateStore_CreateViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/src/KubernetesConfiguration/KubernetesConfiguration.Autorest/resources/README.md b/generated/Marketplace/Marketplace.Autorest/resources/README.md similarity index 100% rename from src/KubernetesConfiguration/KubernetesConfiguration.Autorest/resources/README.md rename to generated/Marketplace/Marketplace.Autorest/resources/README.md diff --git a/generated/MarketplaceOrdering/MarketplaceOrdering.Autorest/exports/Get-AzMarketplaceTerms.ps1 b/generated/MarketplaceOrdering/MarketplaceOrdering.Autorest/exports/Get-AzMarketplaceTerms.ps1 index 93fb6fa1718d..ebb0885eafc6 100644 --- a/generated/MarketplaceOrdering/MarketplaceOrdering.Autorest/exports/Get-AzMarketplaceTerms.ps1 +++ b/generated/MarketplaceOrdering/MarketplaceOrdering.Autorest/exports/Get-AzMarketplaceTerms.ps1 @@ -128,8 +128,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/MarketplaceOrdering/MarketplaceOrdering.Autorest/exports/Invoke-AzMarketplaceSignTerms.ps1 b/generated/MarketplaceOrdering/MarketplaceOrdering.Autorest/exports/Invoke-AzMarketplaceSignTerms.ps1 index 1a777e5966b7..84a71d9b0378 100644 --- a/generated/MarketplaceOrdering/MarketplaceOrdering.Autorest/exports/Invoke-AzMarketplaceSignTerms.ps1 +++ b/generated/MarketplaceOrdering/MarketplaceOrdering.Autorest/exports/Invoke-AzMarketplaceSignTerms.ps1 @@ -171,8 +171,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/MarketplaceOrdering/MarketplaceOrdering.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/MarketplaceOrdering/MarketplaceOrdering.Autorest/exports/ProxyCmdletDefinitions.ps1 index bbe117a925af..c29c72670117 100644 --- a/generated/MarketplaceOrdering/MarketplaceOrdering.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/MarketplaceOrdering/MarketplaceOrdering.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -171,8 +171,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -415,8 +414,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -616,8 +614,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -853,8 +850,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/MarketplaceOrdering/MarketplaceOrdering.Autorest/exports/Set-AzMarketplaceTerms.ps1 b/generated/MarketplaceOrdering/MarketplaceOrdering.Autorest/exports/Set-AzMarketplaceTerms.ps1 index 9f54296bfe20..1321f1c2a125 100644 --- a/generated/MarketplaceOrdering/MarketplaceOrdering.Autorest/exports/Set-AzMarketplaceTerms.ps1 +++ b/generated/MarketplaceOrdering/MarketplaceOrdering.Autorest/exports/Set-AzMarketplaceTerms.ps1 @@ -166,8 +166,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/MarketplaceOrdering/MarketplaceOrdering.Autorest/exports/Stop-AzMarketplaceTerms.ps1 b/generated/MarketplaceOrdering/MarketplaceOrdering.Autorest/exports/Stop-AzMarketplaceTerms.ps1 index 2de145a32b96..5a5d7079cd54 100644 --- a/generated/MarketplaceOrdering/MarketplaceOrdering.Autorest/exports/Stop-AzMarketplaceTerms.ps1 +++ b/generated/MarketplaceOrdering/MarketplaceOrdering.Autorest/exports/Stop-AzMarketplaceTerms.ps1 @@ -171,8 +171,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/MarketplaceOrdering/MarketplaceOrdering.Autorest/generated/api/Models/AgreementTerms.cs b/generated/MarketplaceOrdering/MarketplaceOrdering.Autorest/generated/api/Models/AgreementTerms.cs index 75fe1cf8298f..9690bddfd5b5 100644 --- a/generated/MarketplaceOrdering/MarketplaceOrdering.Autorest/generated/api/Models/AgreementTerms.cs +++ b/generated/MarketplaceOrdering/MarketplaceOrdering.Autorest/generated/api/Models/AgreementTerms.cs @@ -46,31 +46,31 @@ public partial class AgreementTerms : Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.IAgreementTermsInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.SystemData()); set { {_systemData = value;} } } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.IAgreementTermsInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.ISystemDataInternal)SystemData).CreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.IAgreementTermsInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.IAgreementTermsInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.ISystemDataInternal)SystemData).CreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.IAgreementTermsInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.IAgreementTermsInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.ISystemDataInternal)SystemData).CreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.IAgreementTermsInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.IAgreementTermsInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.ISystemDataInternal)SystemData).LastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.IAgreementTermsInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.IAgreementTermsInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.ISystemDataInternal)SystemData).LastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.IAgreementTermsInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.IAgreementTermsInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.ISystemDataInternal)SystemData).LastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.IAgreementTermsInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.IResourceInternal)__resource).Type = value ?? null; } /// Resource name. [Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Origin(Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.PropertyOrigin.Inherited)] diff --git a/generated/MarketplaceOrdering/MarketplaceOrdering.Autorest/generated/api/Models/ErrorResponse.cs b/generated/MarketplaceOrdering/MarketplaceOrdering.Autorest/generated/api/Models/ErrorResponse.cs index 430c0f9bb20b..3eba8403e2d9 100644 --- a/generated/MarketplaceOrdering/MarketplaceOrdering.Autorest/generated/api/Models/ErrorResponse.cs +++ b/generated/MarketplaceOrdering/MarketplaceOrdering.Autorest/generated/api/Models/ErrorResponse.cs @@ -32,13 +32,13 @@ public partial class ErrorResponse : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.IErrorResponseErrorInternal)Error).Message; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.IErrorResponseErrorInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.IErrorResponseErrorInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.IErrorResponseErrorInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.IErrorResponseErrorInternal)Error).Code = value ?? null; } /// Internal Acessors for Error Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.IErrorResponseError Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.ErrorResponseError()); set { {_error = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.IErrorResponseErrorInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.IErrorResponseErrorInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.IErrorResponseErrorInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Models.IErrorResponseErrorInternal)Error).Message = value ?? null; } /// Creates an new instance. public ErrorResponse() diff --git a/generated/MarketplaceOrdering/MarketplaceOrdering.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/MarketplaceOrdering/MarketplaceOrdering.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs index ccef3de11e4d..5d8e7882bc36 100644 --- a/generated/MarketplaceOrdering/MarketplaceOrdering.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/generated/MarketplaceOrdering/MarketplaceOrdering.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs @@ -36,14 +36,23 @@ internal class PsHelpInfo public object Role { get; } public string NonTerminatingErrors { get; } + public static string CapitalizeFirstLetter(string text) + { + if (string.IsNullOrEmpty(text)) + return text; + + return char.ToUpper(text[0]) + text.Substring(1); + } + public PsHelpInfo(PSObject helpObject = null) { helpObject = helpObject ?? new PSObject(); CmdletName = helpObject.GetProperty("Name").NullIfEmpty() ?? helpObject.GetNestedProperty("details", "name"); ModuleName = helpObject.GetProperty("ModuleName"); - Synopsis = helpObject.GetProperty("Synopsis"); + Synopsis = CapitalizeFirstLetter(helpObject.GetProperty("Synopsis")); Description = helpObject.GetProperty("description").EmptyIfNull().ToDescriptionText().NullIfEmpty() ?? helpObject.GetNestedProperty("details", "description").EmptyIfNull().ToDescriptionText(); + Description = CapitalizeFirstLetter(Description); AlertText = helpObject.GetNestedProperty("alertSet", "alert").EmptyIfNull().ToDescriptionText(); Category = helpObject.GetProperty("Category"); HasCommonParameters = helpObject.GetProperty("CommonParameters").ToNullableBool(); diff --git a/generated/MarketplaceOrdering/MarketplaceOrdering.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/MarketplaceOrdering/MarketplaceOrdering.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 6f2192637b69..5a7fef2c662e 100644 --- a/generated/MarketplaceOrdering/MarketplaceOrdering.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/MarketplaceOrdering/MarketplaceOrdering.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -218,13 +218,12 @@ public string GetProcessCustomAttributesAtRuntime() private string GetLoginVerification() { - if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) + if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) { return $@" {Indent}{Indent}$context = Get-AzContext {Indent}{Indent}if (-not $context -and -not $testPlayback) {{ -{Indent}{Indent}{Indent}Write-Error ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" -{Indent}{Indent}{Indent}exit +{Indent}{Indent}{Indent}throw ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" {Indent}{Indent}}} "; } diff --git a/generated/MarketplaceOrdering/MarketplaceOrdering.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/MarketplaceOrdering/MarketplaceOrdering.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs index 8b0eb0b338c8..0248b7c6b1b8 100644 --- a/generated/MarketplaceOrdering/MarketplaceOrdering.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/generated/MarketplaceOrdering/MarketplaceOrdering.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs @@ -392,6 +392,7 @@ public CommentInfo(VariantGroup variantGroup) var helpInfo = variantGroup.HelpInfo; Description = variantGroup.Variants.SelectMany(v => v.Attributes).OfType().FirstOrDefault()?.Description.NullIfEmpty() ?? helpInfo.Description.EmptyIfNull(); + Description = PsHelpInfo.CapitalizeFirstLetter(Description); // If there is no Synopsis, PowerShell may put in the Syntax string as the Synopsis. This seems unintended, so we remove the Synopsis in this situation. var synopsis = helpInfo.Synopsis.EmptyIfNull().Trim().StartsWith(variantGroup.CmdletName) ? String.Empty : helpInfo.Synopsis; Synopsis = synopsis.NullIfEmpty() ?? Description; diff --git a/generated/MarketplaceOrdering/MarketplaceOrdering.Autorest/generated/runtime/Context.cs b/generated/MarketplaceOrdering/MarketplaceOrdering.Autorest/generated/runtime/Context.cs index b02b5376401a..128a25c8ce94 100644 --- a/generated/MarketplaceOrdering/MarketplaceOrdering.Autorest/generated/runtime/Context.cs +++ b/generated/MarketplaceOrdering/MarketplaceOrdering.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Runtime /// The IContext Interface defines the communication mechanism for input customization. /// /// - /// In the context, we will have client, pipeline, PSBoundParamters, default EventListener, Cancellation. + /// In the context, we will have client, pipeline, PSBoundParameters, default EventListener, Cancellation. /// public interface IContext { diff --git a/generated/MarketplaceOrdering/MarketplaceOrdering.Autorest/generated/runtime/MessageAttribute.cs b/generated/MarketplaceOrdering/MarketplaceOrdering.Autorest/generated/runtime/MessageAttribute.cs index be2b46c8748c..c04309353d69 100644 --- a/generated/MarketplaceOrdering/MarketplaceOrdering.Autorest/generated/runtime/MessageAttribute.cs +++ b/generated/MarketplaceOrdering/MarketplaceOrdering.Autorest/generated/runtime/MessageAttribute.cs @@ -16,9 +16,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.Runtime public class GenericBreakingChangeAttribute : Attribute { private string _message; - //A dexcription of what the change is about, non mandatory + //A description of what the change is about, non mandatory public string ChangeDescription { get; set; } = null; + //Name of the module that is being deprecated + public string moduleName { get; set; } = String.IsNullOrEmpty(@"") ? @"Az.MarketplaceOrdering" : @""; + //The version the change is effective from, non mandatory public string DeprecateByVersion { get; } public string DeprecateByAzVersion { get; } @@ -82,7 +85,7 @@ public void PrintCustomAttributeInfo(Action writeOutput) } writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByAzVersion, this.DeprecateByAzVersion)); - writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.DeprecateByVersion)); + writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.moduleName, this.DeprecateByVersion)); if (OldWay != null && NewWay != null) { @@ -191,11 +194,11 @@ public PreviewMessageAttribute(string message, string estimatedDateOfGa) : this( this.IsEstimatedGaDateSet = true; } } - + public void PrintCustomAttributeInfo(Action writeOutput) { writeOutput(this._message); - + if (IsEstimatedGaDateSet) { writeOutput(string.Format(Resources.PreviewCmdletETAMessage, this.EstimatedGaDate.ToShortDateString())); diff --git a/generated/MarketplaceOrdering/MarketplaceOrdering.Autorest/generated/runtime/Properties/Resources.resx b/generated/MarketplaceOrdering/MarketplaceOrdering.Autorest/generated/runtime/Properties/Resources.resx index a08a2e50172b..4ef90b70573d 100644 --- a/generated/MarketplaceOrdering/MarketplaceOrdering.Autorest/generated/runtime/Properties/Resources.resx +++ b/generated/MarketplaceOrdering/MarketplaceOrdering.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 version : '{0}' +- The change is expected to take effect in '{0}' from version : '{1}' ```powershell diff --git a/generated/Mdp/Mdp.Autorest/exports/Get-AzMdpPool.ps1 b/generated/Mdp/Mdp.Autorest/exports/Get-AzMdpPool.ps1 index b47d9ff5eedd..165ddcd850f2 100644 --- a/generated/Mdp/Mdp.Autorest/exports/Get-AzMdpPool.ps1 +++ b/generated/Mdp/Mdp.Autorest/exports/Get-AzMdpPool.ps1 @@ -140,6 +140,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Mdp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -164,8 +172,6 @@ begin { List1 = 'Az.Mdp.private\Get-AzMdpPool_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Mdp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -179,6 +185,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Mdp/Mdp.Autorest/exports/Get-AzMdpPoolAgent.ps1 b/generated/Mdp/Mdp.Autorest/exports/Get-AzMdpPoolAgent.ps1 index dcf6af07f33f..8dc59cdef16a 100644 --- a/generated/Mdp/Mdp.Autorest/exports/Get-AzMdpPoolAgent.ps1 +++ b/generated/Mdp/Mdp.Autorest/exports/Get-AzMdpPoolAgent.ps1 @@ -110,6 +110,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Mdp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -131,8 +139,6 @@ begin { List = 'Az.Mdp.private\Get-AzMdpPoolAgent_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Mdp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -146,6 +152,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Mdp/Mdp.Autorest/exports/Get-AzMdpSku.ps1 b/generated/Mdp/Mdp.Autorest/exports/Get-AzMdpSku.ps1 index c9af41d07fc4..9d3d8b5226df 100644 --- a/generated/Mdp/Mdp.Autorest/exports/Get-AzMdpSku.ps1 +++ b/generated/Mdp/Mdp.Autorest/exports/Get-AzMdpSku.ps1 @@ -102,6 +102,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Mdp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -123,8 +131,6 @@ begin { List = 'Az.Mdp.private\Get-AzMdpSku_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Mdp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -138,6 +144,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Mdp/Mdp.Autorest/exports/New-AzMdpPool.ps1 b/generated/Mdp/Mdp.Autorest/exports/New-AzMdpPool.ps1 index 23adaa57e949..1543835285ae 100644 --- a/generated/Mdp/Mdp.Autorest/exports/New-AzMdpPool.ps1 +++ b/generated/Mdp/Mdp.Autorest/exports/New-AzMdpPool.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a Pool +Create a Pool .Description -create a Pool +Create a Pool .Example New-AzMdpPool -Name Contoso -ResourceGroupName testRG -Location westus -MaximumConcurrency 2 -DevCenterProjectResourceId "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/example/providers/Microsoft.DevCenter/projects/contoso-proj" -AgentProfile '{"kind": "stateless"}' -OrganizationProfile '{"kind": "AzureDevOps","organizations": [{"url": "https://dev.azure.com/contoso-org","projects": null,"parallelism": 1}],"permissionProfile": {"kind": "CreatorOnly"}}' -FabricProfile '{"kind": "Vmss", "sku": {"name": "Standard_DS12_v2"}, "storageProfile": { "osDiskStorageAccountType": "Standard","dataDisks": []},"images": [{"resourceId": "/Subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/Providers/Microsoft.Compute/Locations/eastus2/Publishers/canonical/ArtifactTypes/VMImage/Offers/0001-com-ubuntu-server-focal/Skus/20_04-lts-gen2/versions/latest","buffer": "*"}]}' .Example @@ -57,7 +57,7 @@ ORGANIZATIONPROFILE : Defines the organization in which th Kind : Discriminator property for OrganizationProfile. RESOURCE : Concrete tracked resource types can be created by aliasing this type using a specific property type. - Location : The geo-location where the resource lives + [Location ]: The geo-location where the resource lives [Tag ]: Resource tags. [(Any) ]: This indicates any property can be added to this object. [AgentProfile ]: Defines how the machine will be handled once it executed a job. @@ -283,6 +283,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Mdp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -309,8 +317,6 @@ begin { CreateViaJsonString = 'Az.Mdp.private\New-AzMdpPool_CreateViaJsonString'; } if (('Create', 'CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Mdp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -324,6 +330,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Mdp/Mdp.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/Mdp/Mdp.Autorest/exports/ProxyCmdletDefinitions.ps1 index 9b8709a3301e..9c63b97c2df0 100644 --- a/generated/Mdp/Mdp.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/Mdp/Mdp.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -110,6 +110,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Mdp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -131,8 +139,6 @@ begin { List = 'Az.Mdp.private\Get-AzMdpPoolAgent_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Mdp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -146,6 +152,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -315,6 +324,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Mdp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -339,8 +356,6 @@ begin { List1 = 'Az.Mdp.private\Get-AzMdpPool_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Mdp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -354,6 +369,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -485,6 +503,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Mdp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -506,8 +532,6 @@ begin { List = 'Az.Mdp.private\Get-AzMdpSku_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Mdp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -521,6 +545,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -566,9 +593,9 @@ end { <# .Synopsis -create a Pool +Create a Pool .Description -create a Pool +Create a Pool .Example New-AzMdpPool -Name Contoso -ResourceGroupName testRG -Location westus -MaximumConcurrency 2 -DevCenterProjectResourceId "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/example/providers/Microsoft.DevCenter/projects/contoso-proj" -AgentProfile '{"kind": "stateless"}' -OrganizationProfile '{"kind": "AzureDevOps","organizations": [{"url": "https://dev.azure.com/contoso-org","projects": null,"parallelism": 1}],"permissionProfile": {"kind": "CreatorOnly"}}' -FabricProfile '{"kind": "Vmss", "sku": {"name": "Standard_DS12_v2"}, "storageProfile": { "osDiskStorageAccountType": "Standard","dataDisks": []},"images": [{"resourceId": "/Subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/Providers/Microsoft.Compute/Locations/eastus2/Publishers/canonical/ArtifactTypes/VMImage/Offers/0001-com-ubuntu-server-focal/Skus/20_04-lts-gen2/versions/latest","buffer": "*"}]}' .Example @@ -607,7 +634,7 @@ ORGANIZATIONPROFILE : Defines the organization in which th Kind : Discriminator property for OrganizationProfile. RESOURCE : Concrete tracked resource types can be created by aliasing this type using a specific property type. - Location : The geo-location where the resource lives + [Location ]: The geo-location where the resource lives [Tag ]: Resource tags. [(Any) ]: This indicates any property can be added to this object. [AgentProfile ]: Defines how the machine will be handled once it executed a job. @@ -833,6 +860,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Mdp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -859,8 +894,6 @@ begin { CreateViaJsonString = 'Az.Mdp.private\New-AzMdpPool_CreateViaJsonString'; } if (('Create', 'CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Mdp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -874,6 +907,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -1055,6 +1091,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Mdp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -1077,8 +1121,6 @@ begin { DeleteViaIdentity = 'Az.Mdp.private\Remove-AzMdpPool_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Mdp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -1092,6 +1134,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -1137,9 +1182,9 @@ end { <# .Synopsis -update a Pool +Update a Pool .Description -update a Pool +Update a Pool .Example Update-AzMdpPool -Name Contoso -ResourceGroupName testRg -MaximumConcurrency 2 -Tag @{"tag1"= "value1"} .Example @@ -1178,7 +1223,7 @@ ORGANIZATIONPROFILE : Defines the organization in which th Kind : Discriminator property for OrganizationProfile. RESOURCE : Concrete tracked resource types can be created by aliasing this type using a specific property type. - Location : The geo-location where the resource lives + [Location ]: The geo-location where the resource lives [Tag ]: Resource tags. [(Any) ]: This indicates any property can be added to this object. [AgentProfile ]: Defines how the machine will be handled once it executed a job. @@ -1379,6 +1424,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Mdp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -1403,8 +1456,6 @@ begin { UpdateViaIdentityExpanded = 'Az.Mdp.private\Update-AzMdpPool_UpdateViaIdentityExpanded'; } if (('Update', 'UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Mdp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -1418,6 +1469,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Mdp/Mdp.Autorest/exports/Remove-AzMdpPool.ps1 b/generated/Mdp/Mdp.Autorest/exports/Remove-AzMdpPool.ps1 index 3099b50b8bf9..afa07619ec51 100644 --- a/generated/Mdp/Mdp.Autorest/exports/Remove-AzMdpPool.ps1 +++ b/generated/Mdp/Mdp.Autorest/exports/Remove-AzMdpPool.ps1 @@ -152,6 +152,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Mdp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -174,8 +182,6 @@ begin { DeleteViaIdentity = 'Az.Mdp.private\Remove-AzMdpPool_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Mdp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -189,6 +195,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Mdp/Mdp.Autorest/exports/Update-AzMdpPool.ps1 b/generated/Mdp/Mdp.Autorest/exports/Update-AzMdpPool.ps1 index f1a42cfa8504..df8cc0d1ab55 100644 --- a/generated/Mdp/Mdp.Autorest/exports/Update-AzMdpPool.ps1 +++ b/generated/Mdp/Mdp.Autorest/exports/Update-AzMdpPool.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update a Pool +Update a Pool .Description -update a Pool +Update a Pool .Example Update-AzMdpPool -Name Contoso -ResourceGroupName testRg -MaximumConcurrency 2 -Tag @{"tag1"= "value1"} .Example @@ -57,7 +57,7 @@ ORGANIZATIONPROFILE : Defines the organization in which th Kind : Discriminator property for OrganizationProfile. RESOURCE : Concrete tracked resource types can be created by aliasing this type using a specific property type. - Location : The geo-location where the resource lives + [Location ]: The geo-location where the resource lives [Tag ]: Resource tags. [(Any) ]: This indicates any property can be added to this object. [AgentProfile ]: Defines how the machine will be handled once it executed a job. @@ -258,6 +258,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Mdp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -282,8 +290,6 @@ begin { UpdateViaIdentityExpanded = 'Az.Mdp.private\Update-AzMdpPool_UpdateViaIdentityExpanded'; } if (('Update', 'UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Mdp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -297,6 +303,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Mdp/Mdp.Autorest/generated/api/ManagedDevOpsPools.cs b/generated/Mdp/Mdp.Autorest/generated/api/ManagedDevOpsPools.cs index 3f9b38901a8d..58c17b5417ac 100644 --- a/generated/Mdp/Mdp.Autorest/generated/api/ManagedDevOpsPools.cs +++ b/generated/Mdp/Mdp.Autorest/generated/api/ManagedDevOpsPools.cs @@ -616,13 +616,13 @@ public partial class ManagedDevOpsPools global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Mdp.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Mdp.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Mdp.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -770,13 +770,13 @@ public partial class ManagedDevOpsPools global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Mdp.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Mdp.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Mdp.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -1039,13 +1039,13 @@ public partial class ManagedDevOpsPools global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Mdp.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Mdp.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Mdp.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); @@ -2448,13 +2448,13 @@ public partial class ManagedDevOpsPools global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Mdp.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Mdp.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Mdp.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); @@ -2603,13 +2603,13 @@ public partial class ManagedDevOpsPools global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Mdp.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Mdp.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Mdp.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); diff --git a/generated/Mdp/Mdp.Autorest/generated/api/Models/ErrorResponse.cs b/generated/Mdp/Mdp.Autorest/generated/api/Models/ErrorResponse.cs index ed89a306c16f..ae3ed5a0c134 100644 --- a/generated/Mdp/Mdp.Autorest/generated/api/Models/ErrorResponse.cs +++ b/generated/Mdp/Mdp.Autorest/generated/api/Models/ErrorResponse.cs @@ -40,22 +40,22 @@ public partial class ErrorResponse : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IErrorDetailInternal)Error).Message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IErrorDetailInternal)Error).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IErrorDetailInternal)Error).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IErrorDetailInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IErrorDetailInternal)Error).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IErrorDetailInternal)Error).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IErrorDetailInternal)Error).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for Error Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ErrorDetail()); set { {_error = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IErrorDetailInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IErrorDetailInternal)Error).Message = value ?? null; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IErrorDetailInternal)Error).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IErrorDetailInternal)Error).Target = value ?? null; } /// The error target. [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inlined)] diff --git a/generated/Mdp/Mdp.Autorest/generated/api/Models/ImageVersion.cs b/generated/Mdp/Mdp.Autorest/generated/api/Models/ImageVersion.cs index 370b1dfaa2e5..908d7a760a71 100644 --- a/generated/Mdp/Mdp.Autorest/generated/api/Models/ImageVersion.cs +++ b/generated/Mdp/Mdp.Autorest/generated/api/Models/ImageVersion.cs @@ -28,16 +28,34 @@ public partial class ImageVersion : Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IImageVersionProperties Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IImageVersionInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ImageVersionProperties()); set { {_property = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inherited)] @@ -54,31 +72,31 @@ public partial class ImageVersion : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" diff --git a/generated/Mdp/Mdp.Autorest/generated/api/Models/OSProfile.PowerShell.cs b/generated/Mdp/Mdp.Autorest/generated/api/Models/OSProfile.PowerShell.cs index 4a0cc42ed4ea..ee6c87340fdd 100644 --- a/generated/Mdp/Mdp.Autorest/generated/api/Models/OSProfile.PowerShell.cs +++ b/generated/Mdp/Mdp.Autorest/generated/api/Models/OSProfile.PowerShell.cs @@ -127,7 +127,7 @@ internal OSProfile(global::System.Collections.IDictionary content) } if (content.Contains("SecretManagementSettingKeyExportable")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IOSProfileInternal)this).SecretManagementSettingKeyExportable = (bool) content.GetValueForProperty("SecretManagementSettingKeyExportable",((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IOSProfileInternal)this).SecretManagementSettingKeyExportable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IOSProfileInternal)this).SecretManagementSettingKeyExportable = (bool?) content.GetValueForProperty("SecretManagementSettingKeyExportable",((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IOSProfileInternal)this).SecretManagementSettingKeyExportable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } AfterDeserializeDictionary(content); } @@ -164,7 +164,7 @@ internal OSProfile(global::System.Management.Automation.PSObject content) } if (content.Contains("SecretManagementSettingKeyExportable")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IOSProfileInternal)this).SecretManagementSettingKeyExportable = (bool) content.GetValueForProperty("SecretManagementSettingKeyExportable",((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IOSProfileInternal)this).SecretManagementSettingKeyExportable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IOSProfileInternal)this).SecretManagementSettingKeyExportable = (bool?) content.GetValueForProperty("SecretManagementSettingKeyExportable",((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IOSProfileInternal)this).SecretManagementSettingKeyExportable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } AfterDeserializePSObject(content); } diff --git a/generated/Mdp/Mdp.Autorest/generated/api/Models/Operation.cs b/generated/Mdp/Mdp.Autorest/generated/api/Models/Operation.cs index dc360c65d63f..f52405e00b71 100644 --- a/generated/Mdp/Mdp.Autorest/generated/api/Models/Operation.cs +++ b/generated/Mdp/Mdp.Autorest/generated/api/Models/Operation.cs @@ -73,16 +73,16 @@ public partial class Operation : Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IOperationDisplay Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IOperationInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.OperationDisplay()); set { {_display = value;} } } /// Internal Acessors for DisplayDescription - string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IOperationDisplayInternal)Display).Description = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IOperationDisplayInternal)Display).Description = value ?? null; } /// Internal Acessors for DisplayOperation - string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IOperationDisplayInternal)Display).Operation = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IOperationDisplayInternal)Display).Operation = value ?? null; } /// Internal Acessors for DisplayProvider - string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IOperationDisplayInternal)Display).Provider = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IOperationDisplayInternal)Display).Provider = value ?? null; } /// Internal Acessors for DisplayResource - string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IOperationDisplayInternal)Display).Resource = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IOperationDisplayInternal)Display).Resource = value ?? null; } /// Internal Acessors for IsDataAction bool? Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IOperationInternal.IsDataAction { get => this._isDataAction; set { {_isDataAction = value;} } } diff --git a/generated/Mdp/Mdp.Autorest/generated/api/Models/Pool.PowerShell.cs b/generated/Mdp/Mdp.Autorest/generated/api/Models/Pool.PowerShell.cs index cbd8b000e898..0c516e34ab73 100644 --- a/generated/Mdp/Mdp.Autorest/generated/api/Models/Pool.PowerShell.cs +++ b/generated/Mdp/Mdp.Autorest/generated/api/Models/Pool.PowerShell.cs @@ -185,7 +185,7 @@ internal Pool(global::System.Collections.IDictionary content) } if (content.Contains("MaximumConcurrency")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IPoolInternal)this).MaximumConcurrency = (int) content.GetValueForProperty("MaximumConcurrency",((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IPoolInternal)this).MaximumConcurrency, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IPoolInternal)this).MaximumConcurrency = (int?) content.GetValueForProperty("MaximumConcurrency",((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IPoolInternal)this).MaximumConcurrency, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("DevCenterProjectResourceId")) { @@ -298,7 +298,7 @@ internal Pool(global::System.Management.Automation.PSObject content) } if (content.Contains("MaximumConcurrency")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IPoolInternal)this).MaximumConcurrency = (int) content.GetValueForProperty("MaximumConcurrency",((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IPoolInternal)this).MaximumConcurrency, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IPoolInternal)this).MaximumConcurrency = (int?) content.GetValueForProperty("MaximumConcurrency",((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IPoolInternal)this).MaximumConcurrency, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("DevCenterProjectResourceId")) { diff --git a/generated/Mdp/Mdp.Autorest/generated/api/Models/Pool.cs b/generated/Mdp/Mdp.Autorest/generated/api/Models/Pool.cs index 980d077c3d28..db74fb9133ef 100644 --- a/generated/Mdp/Mdp.Autorest/generated/api/Models/Pool.cs +++ b/generated/Mdp/Mdp.Autorest/generated/api/Models/Pool.cs @@ -73,7 +73,7 @@ public partial class Pool : /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ITrackedResourceInternal)__trackedResource).Location = value ; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } /// Defines how many resources can there be created at any given time. [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inlined)] @@ -83,25 +83,43 @@ public partial class Pool : Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IManagedServiceIdentity Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IPoolInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ManagedServiceIdentity()); set { {_identity = value;} } } /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IPoolInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IManagedServiceIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IManagedServiceIdentityInternal)Identity).PrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IPoolInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IManagedServiceIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IManagedServiceIdentityInternal)Identity).PrincipalId = value ?? null; } /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IPoolInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IManagedServiceIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IManagedServiceIdentityInternal)Identity).TenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IPoolInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IManagedServiceIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IManagedServiceIdentityInternal)Identity).TenantId = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IPoolProperties Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IPoolInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.PoolProperties()); set { {_property = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inherited)] @@ -130,31 +148,31 @@ public partial class Pool : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__trackedResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inherited)] diff --git a/generated/Mdp/Mdp.Autorest/generated/api/Models/PoolUpdate.cs b/generated/Mdp/Mdp.Autorest/generated/api/Models/PoolUpdate.cs index ff128d8cafd6..ac9bd4761f93 100644 --- a/generated/Mdp/Mdp.Autorest/generated/api/Models/PoolUpdate.cs +++ b/generated/Mdp/Mdp.Autorest/generated/api/Models/PoolUpdate.cs @@ -66,10 +66,10 @@ public partial class PoolUpdate : Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IManagedServiceIdentity Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IPoolUpdateInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ManagedServiceIdentity()); set { {_identity = value;} } } /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IPoolUpdateInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IManagedServiceIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IManagedServiceIdentityInternal)Identity).PrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IPoolUpdateInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IManagedServiceIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IManagedServiceIdentityInternal)Identity).PrincipalId = value ?? null; } /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IPoolUpdateInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IManagedServiceIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IManagedServiceIdentityInternal)Identity).TenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IPoolUpdateInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IManagedServiceIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IManagedServiceIdentityInternal)Identity).TenantId = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IPoolUpdateProperties Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IPoolUpdateInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.PoolUpdateProperties()); set { {_property = value;} } } diff --git a/generated/Mdp/Mdp.Autorest/generated/api/Models/ProxyResource.cs b/generated/Mdp/Mdp.Autorest/generated/api/Models/ProxyResource.cs index a1e65329c8f2..2b27824d95aa 100644 --- a/generated/Mdp/Mdp.Autorest/generated/api/Models/ProxyResource.cs +++ b/generated/Mdp/Mdp.Autorest/generated/api/Models/ProxyResource.cs @@ -27,16 +27,34 @@ public partial class ProxyResource : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).Id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inherited)] @@ -46,31 +64,31 @@ public partial class ProxyResource : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" diff --git a/generated/Mdp/Mdp.Autorest/generated/api/Models/Quota.cs b/generated/Mdp/Mdp.Autorest/generated/api/Models/Quota.cs index 92676bde25cf..721f12a24a2b 100644 --- a/generated/Mdp/Mdp.Autorest/generated/api/Models/Quota.cs +++ b/generated/Mdp/Mdp.Autorest/generated/api/Models/Quota.cs @@ -37,6 +37,12 @@ public partial class Quota : /// Internal Acessors for Name Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IQuotaName Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IQuotaInternal.Name { get => (this._name = this._name ?? new Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.QuotaName()); set { {_name = value;} } } + /// Internal Acessors for NameLocalizedValue + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IQuotaInternal.NameLocalizedValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IQuotaNameInternal)Name).LocalizedValue; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IQuotaNameInternal)Name).LocalizedValue = value ?? null; } + + /// Internal Acessors for NameValue + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IQuotaInternal.NameValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IQuotaNameInternal)Name).Value; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IQuotaNameInternal)Name).Value = value ?? null; } + /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IQuotaName _name; @@ -46,11 +52,11 @@ public partial class Quota : /// The localized name of the resource. [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inlined)] - public string NameLocalizedValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IQuotaNameInternal)Name).LocalizedValue; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IQuotaNameInternal)Name).LocalizedValue = value ?? null; } + public string NameLocalizedValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IQuotaNameInternal)Name).LocalizedValue; } /// The name of the resource. [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inlined)] - public string NameValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IQuotaNameInternal)Name).Value; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IQuotaNameInternal)Name).Value = value ?? null; } + public string NameValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IQuotaNameInternal)Name).Value; } /// Backing field for property. private string _unit; diff --git a/generated/Mdp/Mdp.Autorest/generated/api/Models/Resource.cs b/generated/Mdp/Mdp.Autorest/generated/api/Models/Resource.cs index b9a870352e20..ba7fbce82dbe 100644 --- a/generated/Mdp/Mdp.Autorest/generated/api/Models/Resource.cs +++ b/generated/Mdp/Mdp.Autorest/generated/api/Models/Resource.cs @@ -33,6 +33,24 @@ public partial class Resource : /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.Type { get => this._type; set { {_type = value;} } } @@ -54,27 +72,27 @@ public partial class Resource : /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// Backing field for property. private string _type; diff --git a/generated/Mdp/Mdp.Autorest/generated/api/Models/ResourceDetailsObject.cs b/generated/Mdp/Mdp.Autorest/generated/api/Models/ResourceDetailsObject.cs index 7b496d899c93..821360e92318 100644 --- a/generated/Mdp/Mdp.Autorest/generated/api/Models/ResourceDetailsObject.cs +++ b/generated/Mdp/Mdp.Autorest/generated/api/Models/ResourceDetailsObject.cs @@ -36,16 +36,34 @@ public partial class ResourceDetailsObject : Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceDetailsObjectProperties Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceDetailsObjectInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ResourceDetailsObjectProperties()); set { {_property = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inherited)] @@ -66,31 +84,31 @@ public partial class ResourceDetailsObject : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" diff --git a/generated/Mdp/Mdp.Autorest/generated/api/Models/ResourceSku.cs b/generated/Mdp/Mdp.Autorest/generated/api/Models/ResourceSku.cs index 7130f7b87311..3a7322fc1cf6 100644 --- a/generated/Mdp/Mdp.Autorest/generated/api/Models/ResourceSku.cs +++ b/generated/Mdp/Mdp.Autorest/generated/api/Models/ResourceSku.cs @@ -43,16 +43,34 @@ public partial class ResourceSku : public System.Collections.Generic.List LocationInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceSkuPropertiesInternal)Property).LocationInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceSkuPropertiesInternal)Property).LocationInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceSkuProperties Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceSkuInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ResourceSkuProperties()); set { {_property = value;} } } @@ -84,31 +102,31 @@ public partial class ResourceSku : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// The tier of virtual machines in a scale set [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inlined)] diff --git a/generated/Mdp/Mdp.Autorest/generated/api/Models/TrackedResource.cs b/generated/Mdp/Mdp.Autorest/generated/api/Models/TrackedResource.cs index 0ace4b0250c8..a564a9581196 100644 --- a/generated/Mdp/Mdp.Autorest/generated/api/Models/TrackedResource.cs +++ b/generated/Mdp/Mdp.Autorest/generated/api/Models/TrackedResource.cs @@ -34,16 +34,34 @@ public partial class TrackedResource : public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inherited)] @@ -53,31 +71,31 @@ public partial class TrackedResource : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Origin(Microsoft.Azure.PowerShell.Cmdlets.Mdp.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ITrackedResourceTags _tag; @@ -117,7 +135,7 @@ public partial interface ITrackedResource : { /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.Mdp.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, diff --git a/generated/Mdp/Mdp.Autorest/generated/api/Models/VmssFabricProfile.PowerShell.cs b/generated/Mdp/Mdp.Autorest/generated/api/Models/VmssFabricProfile.PowerShell.cs index 8cc103218493..77ec5e0868e4 100644 --- a/generated/Mdp/Mdp.Autorest/generated/api/Models/VmssFabricProfile.PowerShell.cs +++ b/generated/Mdp/Mdp.Autorest/generated/api/Models/VmssFabricProfile.PowerShell.cs @@ -184,7 +184,7 @@ internal VmssFabricProfile(global::System.Collections.IDictionary content) } if (content.Contains("SecretManagementSettingKeyExportable")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IVmssFabricProfileInternal)this).SecretManagementSettingKeyExportable = (bool) content.GetValueForProperty("SecretManagementSettingKeyExportable",((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IVmssFabricProfileInternal)this).SecretManagementSettingKeyExportable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IVmssFabricProfileInternal)this).SecretManagementSettingKeyExportable = (bool?) content.GetValueForProperty("SecretManagementSettingKeyExportable",((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IVmssFabricProfileInternal)this).SecretManagementSettingKeyExportable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } AfterDeserializeDictionary(content); } @@ -261,7 +261,7 @@ internal VmssFabricProfile(global::System.Management.Automation.PSObject content } if (content.Contains("SecretManagementSettingKeyExportable")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IVmssFabricProfileInternal)this).SecretManagementSettingKeyExportable = (bool) content.GetValueForProperty("SecretManagementSettingKeyExportable",((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IVmssFabricProfileInternal)this).SecretManagementSettingKeyExportable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IVmssFabricProfileInternal)this).SecretManagementSettingKeyExportable = (bool?) content.GetValueForProperty("SecretManagementSettingKeyExportable",((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IVmssFabricProfileInternal)this).SecretManagementSettingKeyExportable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } AfterDeserializePSObject(content); } diff --git a/generated/Mdp/Mdp.Autorest/generated/api/Models/VmssFabricProfile.cs b/generated/Mdp/Mdp.Autorest/generated/api/Models/VmssFabricProfile.cs index 573a7b6cc29d..8900d1c07a8a 100644 --- a/generated/Mdp/Mdp.Autorest/generated/api/Models/VmssFabricProfile.cs +++ b/generated/Mdp/Mdp.Autorest/generated/api/Models/VmssFabricProfile.cs @@ -37,7 +37,7 @@ public partial class VmssFabricProfile : Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IOSProfile Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IVmssFabricProfileInternal.OSProfile { get => (this._oSProfile = this._oSProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.OSProfile()); set { {_oSProfile = value;} } } /// Internal Acessors for OSProfileSecretsManagementSetting - Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISecretsManagementSettings Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IVmssFabricProfileInternal.OSProfileSecretsManagementSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IOSProfileInternal)OSProfile).SecretsManagementSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IOSProfileInternal)OSProfile).SecretsManagementSetting = value; } + Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.ISecretsManagementSettings Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IVmssFabricProfileInternal.OSProfileSecretsManagementSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IOSProfileInternal)OSProfile).SecretsManagementSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IOSProfileInternal)OSProfile).SecretsManagementSetting = value ?? null /* model class */; } /// Internal Acessors for Sku Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IDevOpsAzureSku Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IVmssFabricProfileInternal.Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.DevOpsAzureSku()); set { {_sku = value;} } } diff --git a/generated/Mdp/Mdp.Autorest/generated/cmdlets/NewAzMdpPool_Create.cs b/generated/Mdp/Mdp.Autorest/generated/cmdlets/NewAzMdpPool_Create.cs index 7802e1c3537b..7b28578d19ab 100644 --- a/generated/Mdp/Mdp.Autorest/generated/cmdlets/NewAzMdpPool_Create.cs +++ b/generated/Mdp/Mdp.Autorest/generated/cmdlets/NewAzMdpPool_Create.cs @@ -40,15 +40,6 @@ public partial class NewAzMdpPool_Create : global::System.Management.Automation. /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Mdp.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Mdp.ParameterCategory.Runtime)] @@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Mdp.Cmdlets.NewAzMdpPool_Create Clone( /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Mdp.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -583,24 +569,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IPool var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Mdp/Mdp.Autorest/generated/cmdlets/NewAzMdpPool_CreateExpanded.cs b/generated/Mdp/Mdp.Autorest/generated/cmdlets/NewAzMdpPool_CreateExpanded.cs index 83f6ba97e689..b99835a629c0 100644 --- a/generated/Mdp/Mdp.Autorest/generated/cmdlets/NewAzMdpPool_CreateExpanded.cs +++ b/generated/Mdp/Mdp.Autorest/generated/cmdlets/NewAzMdpPool_CreateExpanded.cs @@ -40,20 +40,11 @@ public partial class NewAzMdpPool_CreateExpanded : global::System.Management.Aut /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// /// Concrete tracked resource types can be created by aliasing this type using a specific property type. /// private Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IPool _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.Pool(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Defines how the machine will be handled once it executed a job. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Defines how the machine will be handled once it executed a job.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Mdp.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Mdp.ParameterCategory.Body)] @@ -354,11 +345,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Mdp.Cmdlets.NewAzMdpPool_CreateExpande /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Mdp.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -700,24 +686,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IPool var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Mdp/Mdp.Autorest/generated/cmdlets/NewAzMdpPool_CreateViaIdentity.cs b/generated/Mdp/Mdp.Autorest/generated/cmdlets/NewAzMdpPool_CreateViaIdentity.cs index f11747e87ca5..a2f364b9faa4 100644 --- a/generated/Mdp/Mdp.Autorest/generated/cmdlets/NewAzMdpPool_CreateViaIdentity.cs +++ b/generated/Mdp/Mdp.Autorest/generated/cmdlets/NewAzMdpPool_CreateViaIdentity.cs @@ -40,15 +40,6 @@ public partial class NewAzMdpPool_CreateViaIdentity : global::System.Management. /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Mdp.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Mdp.ParameterCategory.Runtime)] @@ -220,11 +211,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Mdp.Cmdlets.NewAzMdpPool_CreateViaIden /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Mdp.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -560,24 +546,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IPool var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Mdp/Mdp.Autorest/generated/cmdlets/NewAzMdpPool_CreateViaIdentityExpanded.cs b/generated/Mdp/Mdp.Autorest/generated/cmdlets/NewAzMdpPool_CreateViaIdentityExpanded.cs index a54af83a2858..96b7b0b779a1 100644 --- a/generated/Mdp/Mdp.Autorest/generated/cmdlets/NewAzMdpPool_CreateViaIdentityExpanded.cs +++ b/generated/Mdp/Mdp.Autorest/generated/cmdlets/NewAzMdpPool_CreateViaIdentityExpanded.cs @@ -40,20 +40,11 @@ public partial class NewAzMdpPool_CreateViaIdentityExpanded : global::System.Man /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// /// Concrete tracked resource types can be created by aliasing this type using a specific property type. /// private Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IPool _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.Pool(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Defines how the machine will be handled once it executed a job. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Defines how the machine will be handled once it executed a job.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Mdp.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Mdp.ParameterCategory.Body)] @@ -311,11 +302,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Mdp.Cmdlets.NewAzMdpPool_CreateViaIden /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Mdp.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -678,24 +664,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IPool var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Mdp/Mdp.Autorest/generated/cmdlets/NewAzMdpPool_CreateViaJsonFilePath.cs b/generated/Mdp/Mdp.Autorest/generated/cmdlets/NewAzMdpPool_CreateViaJsonFilePath.cs index ea5308281a8d..02adbb10a33e 100644 --- a/generated/Mdp/Mdp.Autorest/generated/cmdlets/NewAzMdpPool_CreateViaJsonFilePath.cs +++ b/generated/Mdp/Mdp.Autorest/generated/cmdlets/NewAzMdpPool_CreateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class NewAzMdpPool_CreateViaJsonFilePath : global::System.Managem /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Mdp.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Mdp.ParameterCategory.Runtime)] @@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Mdp.Cmdlets.NewAzMdpPool_CreateViaJson /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Mdp.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -583,24 +569,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IPool var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Mdp/Mdp.Autorest/generated/cmdlets/NewAzMdpPool_CreateViaJsonString.cs b/generated/Mdp/Mdp.Autorest/generated/cmdlets/NewAzMdpPool_CreateViaJsonString.cs index 817be3be50b3..2cce33fdde4a 100644 --- a/generated/Mdp/Mdp.Autorest/generated/cmdlets/NewAzMdpPool_CreateViaJsonString.cs +++ b/generated/Mdp/Mdp.Autorest/generated/cmdlets/NewAzMdpPool_CreateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class NewAzMdpPool_CreateViaJsonString : global::System.Managemen /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Mdp.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Mdp.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Mdp.Cmdlets.NewAzMdpPool_CreateViaJson /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Mdp.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -581,24 +567,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IPool var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Mdp/Mdp.Autorest/generated/cmdlets/RemoveAzMdpPool_Delete.cs b/generated/Mdp/Mdp.Autorest/generated/cmdlets/RemoveAzMdpPool_Delete.cs index 5a7505e02d3b..5affae3620bb 100644 --- a/generated/Mdp/Mdp.Autorest/generated/cmdlets/RemoveAzMdpPool_Delete.cs +++ b/generated/Mdp/Mdp.Autorest/generated/cmdlets/RemoveAzMdpPool_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzMdpPool_Delete : global::System.Management.Automati /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Mdp.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Mdp.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Mdp.Cmdlets.RemoveAzMdpPool_Delete Clo /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Mdp.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -577,7 +563,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -601,7 +587,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Mdp/Mdp.Autorest/generated/cmdlets/RemoveAzMdpPool_DeleteViaIdentity.cs b/generated/Mdp/Mdp.Autorest/generated/cmdlets/RemoveAzMdpPool_DeleteViaIdentity.cs index a44f4b401e05..7492047dc7c4 100644 --- a/generated/Mdp/Mdp.Autorest/generated/cmdlets/RemoveAzMdpPool_DeleteViaIdentity.cs +++ b/generated/Mdp/Mdp.Autorest/generated/cmdlets/RemoveAzMdpPool_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzMdpPool_DeleteViaIdentity : global::System.Manageme /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Mdp.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Mdp.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Mdp.Cmdlets.RemoveAzMdpPool_DeleteViaI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Mdp.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -554,7 +540,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -578,7 +564,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Mdp/Mdp.Autorest/generated/cmdlets/SetAzMdpPool_Update.cs b/generated/Mdp/Mdp.Autorest/generated/cmdlets/SetAzMdpPool_Update.cs index b1b902eee248..98dffa36083d 100644 --- a/generated/Mdp/Mdp.Autorest/generated/cmdlets/SetAzMdpPool_Update.cs +++ b/generated/Mdp/Mdp.Autorest/generated/cmdlets/SetAzMdpPool_Update.cs @@ -41,15 +41,6 @@ public partial class SetAzMdpPool_Update : global::System.Management.Automation. /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Mdp.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Mdp.ParameterCategory.Runtime)] @@ -264,11 +255,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Mdp.Cmdlets.SetAzMdpPool_Update Clone( /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Mdp.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -584,24 +570,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IPool var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Mdp/Mdp.Autorest/generated/cmdlets/SetAzMdpPool_UpdateExpanded.cs b/generated/Mdp/Mdp.Autorest/generated/cmdlets/SetAzMdpPool_UpdateExpanded.cs index d589fd5607db..e02b0c61ed27 100644 --- a/generated/Mdp/Mdp.Autorest/generated/cmdlets/SetAzMdpPool_UpdateExpanded.cs +++ b/generated/Mdp/Mdp.Autorest/generated/cmdlets/SetAzMdpPool_UpdateExpanded.cs @@ -41,20 +41,11 @@ public partial class SetAzMdpPool_UpdateExpanded : global::System.Management.Aut /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// /// Concrete tracked resource types can be created by aliasing this type using a specific property type. /// private Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IPool _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.Pool(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Defines how the machine will be handled once it executed a job. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Defines how the machine will be handled once it executed a job.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Mdp.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Mdp.ParameterCategory.Body)] @@ -355,11 +346,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Mdp.Cmdlets.SetAzMdpPool_UpdateExpande /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Mdp.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -701,24 +687,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IPool var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Mdp/Mdp.Autorest/generated/cmdlets/SetAzMdpPool_UpdateViaJsonFilePath.cs b/generated/Mdp/Mdp.Autorest/generated/cmdlets/SetAzMdpPool_UpdateViaJsonFilePath.cs index 8086ff9229ad..8ff972d85af5 100644 --- a/generated/Mdp/Mdp.Autorest/generated/cmdlets/SetAzMdpPool_UpdateViaJsonFilePath.cs +++ b/generated/Mdp/Mdp.Autorest/generated/cmdlets/SetAzMdpPool_UpdateViaJsonFilePath.cs @@ -42,17 +42,8 @@ public partial class SetAzMdpPool_UpdateViaJsonFilePath : global::System.Managem /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Mdp.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Mdp.ParameterCategory.Runtime)] @@ -264,11 +255,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Mdp.Cmdlets.SetAzMdpPool_UpdateViaJson /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Mdp.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -584,24 +570,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IPool var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Mdp/Mdp.Autorest/generated/cmdlets/SetAzMdpPool_UpdateViaJsonString.cs b/generated/Mdp/Mdp.Autorest/generated/cmdlets/SetAzMdpPool_UpdateViaJsonString.cs index 63ab4fce062a..aa3e1312ad86 100644 --- a/generated/Mdp/Mdp.Autorest/generated/cmdlets/SetAzMdpPool_UpdateViaJsonString.cs +++ b/generated/Mdp/Mdp.Autorest/generated/cmdlets/SetAzMdpPool_UpdateViaJsonString.cs @@ -42,15 +42,6 @@ public partial class SetAzMdpPool_UpdateViaJsonString : global::System.Managemen /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Mdp.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Mdp.ParameterCategory.Runtime)] @@ -262,11 +253,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Mdp.Cmdlets.SetAzMdpPool_UpdateViaJson /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Mdp.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -582,24 +568,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IPool var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Mdp/Mdp.Autorest/generated/cmdlets/UpdateAzMdpPool_Update.cs b/generated/Mdp/Mdp.Autorest/generated/cmdlets/UpdateAzMdpPool_Update.cs index bf7802d79374..03dd12ebcb13 100644 --- a/generated/Mdp/Mdp.Autorest/generated/cmdlets/UpdateAzMdpPool_Update.cs +++ b/generated/Mdp/Mdp.Autorest/generated/cmdlets/UpdateAzMdpPool_Update.cs @@ -40,15 +40,6 @@ public partial class UpdateAzMdpPool_Update : global::System.Management.Automati /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Mdp.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Mdp.ParameterCategory.Runtime)] @@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Mdp.Cmdlets.UpdateAzMdpPool_Update Clo /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Mdp.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -583,24 +569,7 @@ public UpdateAzMdpPool_Update() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IPool var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Mdp/Mdp.Autorest/generated/cmdlets/UpdateAzMdpPool_UpdateExpanded.cs b/generated/Mdp/Mdp.Autorest/generated/cmdlets/UpdateAzMdpPool_UpdateExpanded.cs index 9012161b71f1..63076dbc9da3 100644 --- a/generated/Mdp/Mdp.Autorest/generated/cmdlets/UpdateAzMdpPool_UpdateExpanded.cs +++ b/generated/Mdp/Mdp.Autorest/generated/cmdlets/UpdateAzMdpPool_UpdateExpanded.cs @@ -40,20 +40,11 @@ public partial class UpdateAzMdpPool_UpdateExpanded : global::System.Management. /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// /// Concrete tracked resource types can be created by aliasing this type using a specific property type. /// private Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IPool _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.Pool(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Defines how the machine will be handled once it executed a job. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Defines how the machine will be handled once it executed a job.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Mdp.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Mdp.ParameterCategory.Body)] @@ -343,11 +334,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Mdp.Cmdlets.UpdateAzMdpPool_UpdateExpa /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Mdp.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -736,24 +722,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IPool var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Mdp/Mdp.Autorest/generated/cmdlets/UpdateAzMdpPool_UpdateViaIdentity.cs b/generated/Mdp/Mdp.Autorest/generated/cmdlets/UpdateAzMdpPool_UpdateViaIdentity.cs index 802cbfa1e021..62cb392ea533 100644 --- a/generated/Mdp/Mdp.Autorest/generated/cmdlets/UpdateAzMdpPool_UpdateViaIdentity.cs +++ b/generated/Mdp/Mdp.Autorest/generated/cmdlets/UpdateAzMdpPool_UpdateViaIdentity.cs @@ -40,15 +40,6 @@ public partial class UpdateAzMdpPool_UpdateViaIdentity : global::System.Manageme /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Mdp.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Mdp.ParameterCategory.Runtime)] @@ -220,11 +211,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Mdp.Cmdlets.UpdateAzMdpPool_UpdateViaI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Mdp.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -560,24 +546,7 @@ public UpdateAzMdpPool_UpdateViaIdentity() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IPool var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Mdp/Mdp.Autorest/generated/cmdlets/UpdateAzMdpPool_UpdateViaIdentityExpanded.cs b/generated/Mdp/Mdp.Autorest/generated/cmdlets/UpdateAzMdpPool_UpdateViaIdentityExpanded.cs index 5adc6f1bca7b..af5e42b28f00 100644 --- a/generated/Mdp/Mdp.Autorest/generated/cmdlets/UpdateAzMdpPool_UpdateViaIdentityExpanded.cs +++ b/generated/Mdp/Mdp.Autorest/generated/cmdlets/UpdateAzMdpPool_UpdateViaIdentityExpanded.cs @@ -40,20 +40,11 @@ public partial class UpdateAzMdpPool_UpdateViaIdentityExpanded : global::System. /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// /// Concrete tracked resource types can be created by aliasing this type using a specific property type. /// private Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IPool _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.Pool(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Defines how the machine will be handled once it executed a job. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Defines how the machine will be handled once it executed a job.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Mdp.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Mdp.ParameterCategory.Body)] @@ -300,11 +291,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Mdp.Cmdlets.UpdateAzMdpPool_UpdateViaI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Mdp.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -716,24 +702,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IPool var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Mdp/Mdp.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/Mdp/Mdp.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs index 13c341aa0749..fe95d806b401 100644 --- a/generated/Mdp/Mdp.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/generated/Mdp/Mdp.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs @@ -36,14 +36,23 @@ internal class PsHelpInfo public object Role { get; } public string NonTerminatingErrors { get; } + public static string CapitalizeFirstLetter(string text) + { + if (string.IsNullOrEmpty(text)) + return text; + + return char.ToUpper(text[0]) + text.Substring(1); + } + public PsHelpInfo(PSObject helpObject = null) { helpObject = helpObject ?? new PSObject(); CmdletName = helpObject.GetProperty("Name").NullIfEmpty() ?? helpObject.GetNestedProperty("details", "name"); ModuleName = helpObject.GetProperty("ModuleName"); - Synopsis = helpObject.GetProperty("Synopsis"); + Synopsis = CapitalizeFirstLetter(helpObject.GetProperty("Synopsis")); Description = helpObject.GetProperty("description").EmptyIfNull().ToDescriptionText().NullIfEmpty() ?? helpObject.GetNestedProperty("details", "description").EmptyIfNull().ToDescriptionText(); + Description = CapitalizeFirstLetter(Description); AlertText = helpObject.GetNestedProperty("alertSet", "alert").EmptyIfNull().ToDescriptionText(); Category = helpObject.GetProperty("Category"); HasCommonParameters = helpObject.GetProperty("CommonParameters").ToNullableBool(); diff --git a/generated/Mdp/Mdp.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/Mdp/Mdp.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 45727bdb4832..20d269384b1b 100644 --- a/generated/Mdp/Mdp.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/Mdp/Mdp.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -216,6 +216,20 @@ public string GetProcessCustomAttributesAtRuntime() {Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.Mdp.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)"; } + private string GetLoginVerification() + { + if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) + { + return $@" +{Indent}{Indent}$context = Get-AzContext +{Indent}{Indent}if (-not $context -and -not $testPlayback) {{ +{Indent}{Indent}{Indent}throw ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" +{Indent}{Indent}}} +"; + } + return ""; + } + private string GetTelemetry() { if (!VariantGroup.IsInternal && IsAzure) @@ -248,10 +262,16 @@ public override string ToString() => $@"begin {{ {Indent}{Indent}{Indent}$PSBoundParameters['OutBuffer'] = 1 {Indent}{Indent}}} {Indent}{Indent}$parameterSet = $PSCmdlet.ParameterSetName -{GetTelemetry()} +{Indent}{Indent} +{Indent}{Indent}$testPlayback = $false +{Indent}{Indent}$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object {{ if ($_) {{ $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Mdp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) }} }} +{GetLoginVerification()}{GetTelemetry()} {GetParameterSetToCmdletMapping()}{GetDefaultValuesStatements()} {GetProcessCustomAttributesAtRuntime()} {Indent}{Indent}$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) +{Indent}{Indent}if ($wrappedCmd -eq $null) {{ +{Indent}{Indent}{Indent}$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) +{Indent}{Indent}}} {Indent}{Indent}$scriptCmd = {{& $wrappedCmd @PSBoundParameters}} {Indent}{Indent}$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) {Indent}{Indent}$steppablePipeline.Begin($PSCmdlet) @@ -295,8 +315,6 @@ private string GetDefaultValuesStatements() if ("SubscriptionId".Equals(parameterName)) { sb.AppendLine($"{Indent}{Indent}if (({variantListString}) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('{parameterName}'){setCondition}) {{"); - sb.AppendLine($"{Indent}{Indent}{Indent}$testPlayback = $false"); - sb.AppendLine($"{Indent}{Indent}{Indent}$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object {{ if ($_) {{ $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Mdp.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 {{"); diff --git a/generated/Mdp/Mdp.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/Mdp/Mdp.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs index fb05bbcf554f..4c5a4edc506a 100644 --- a/generated/Mdp/Mdp.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/generated/Mdp/Mdp.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs @@ -49,6 +49,7 @@ internal class VariantGroup public PsHelpInfo HelpInfo { get; } public bool IsGenerated { get; } public bool IsInternal { get; } + public bool IsModelCmdlet { get; } public string OutputFolder { get; } public string FileName { get; } public string FilePath { get; } @@ -83,6 +84,7 @@ public VariantGroup(string moduleName, string cmdletName, Variant[] variants, st HelpInfo = Variants.Select(v => v.HelpInfo).FirstOrDefault() ?? new PsHelpInfo(); IsGenerated = Variants.All(v => v.Attributes.OfType().Any()); IsInternal = isInternal; + IsModelCmdlet = Variants.All(v => v.IsModelCmdlet); OutputFolder = outputFolder; FileName = $"{CmdletName}{(isTest ? ".Tests" : String.Empty)}.ps1"; FilePath = Path.Combine(OutputFolder, FileName); @@ -143,6 +145,7 @@ internal class Variant public Parameter[] Parameters { get; } public Parameter[] CmdletOnlyParameters { get; } public bool IsInternal { get; } + public bool IsModelCmdlet { get; } public bool IsDoNotExport { get; } public bool IsNotSuggestDefaultParameterSet { get; } public string[] Profiles { get; } @@ -165,6 +168,7 @@ public Variant(string cmdletName, string variantName, CommandInfo info, CommandM Parameters = this.ToParameters().OrderBy(p => p.OrderCategory).ThenByDescending(p => p.IsMandatory).ToArray(); IsInternal = Attributes.OfType().Any(); IsDoNotExport = Attributes.OfType().Any(); + IsModelCmdlet = Attributes.OfType().Any(); IsNotSuggestDefaultParameterSet = Attributes.OfType().Any(); CmdletOnlyParameters = Parameters.Where(p => !p.Categories.Any(c => c == ParameterCategory.Azure || c == ParameterCategory.Runtime)).ToArray(); Profiles = Attributes.OfType().SelectMany(pa => pa.Profiles).ToArray(); @@ -388,6 +392,7 @@ public CommentInfo(VariantGroup variantGroup) var helpInfo = variantGroup.HelpInfo; Description = variantGroup.Variants.SelectMany(v => v.Attributes).OfType().FirstOrDefault()?.Description.NullIfEmpty() ?? helpInfo.Description.EmptyIfNull(); + Description = PsHelpInfo.CapitalizeFirstLetter(Description); // If there is no Synopsis, PowerShell may put in the Syntax string as the Synopsis. This seems unintended, so we remove the Synopsis in this situation. var synopsis = helpInfo.Synopsis.EmptyIfNull().Trim().StartsWith(variantGroup.CmdletName) ? String.Empty : helpInfo.Synopsis; Synopsis = synopsis.NullIfEmpty() ?? Description; diff --git a/generated/Mdp/Mdp.Autorest/generated/runtime/BuildTime/PsAttributes.cs b/generated/Mdp/Mdp.Autorest/generated/runtime/BuildTime/PsAttributes.cs index c321aa59cbbf..90cc32b2ac88 100644 --- a/generated/Mdp/Mdp.Autorest/generated/runtime/BuildTime/PsAttributes.cs +++ b/generated/Mdp/Mdp.Autorest/generated/runtime/BuildTime/PsAttributes.cs @@ -22,6 +22,11 @@ public class DoNotExportAttribute : Attribute { } + [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property)] + public class ModelCmdletAttribute : Attribute + { + } + [AttributeUsage(AttributeTargets.Class)] public class InternalExportAttribute : Attribute { diff --git a/generated/Mdp/Mdp.Autorest/generated/runtime/Context.cs b/generated/Mdp/Mdp.Autorest/generated/runtime/Context.cs index 9f4decff3cf2..b0429ee0c62b 100644 --- a/generated/Mdp/Mdp.Autorest/generated/runtime/Context.cs +++ b/generated/Mdp/Mdp.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Mdp.Runtime /// The IContext Interface defines the communication mechanism for input customization. /// /// - /// In the context, we will have client, pipeline, PSBoundParamters, default EventListener, Cancellation. + /// In the context, we will have client, pipeline, PSBoundParameters, default EventListener, Cancellation. /// public interface IContext { diff --git a/generated/Mdp/Mdp.Autorest/generated/runtime/MessageAttribute.cs b/generated/Mdp/Mdp.Autorest/generated/runtime/MessageAttribute.cs index d5c3cf3ff495..49478d1c0047 100644 --- a/generated/Mdp/Mdp.Autorest/generated/runtime/MessageAttribute.cs +++ b/generated/Mdp/Mdp.Autorest/generated/runtime/MessageAttribute.cs @@ -16,9 +16,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Mdp.Runtime public class GenericBreakingChangeAttribute : Attribute { private string _message; - //A dexcription of what the change is about, non mandatory + //A description of what the change is about, non mandatory public string ChangeDescription { get; set; } = null; + //Name of the module that is being deprecated + public string moduleName { get; set; } = String.IsNullOrEmpty(@"") ? @"Az.Mdp" : @""; + //The version the change is effective from, non mandatory public string DeprecateByVersion { get; } public string DeprecateByAzVersion { get; } @@ -82,7 +85,7 @@ public void PrintCustomAttributeInfo(Action writeOutput) } writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByAzVersion, this.DeprecateByAzVersion)); - writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.DeprecateByVersion)); + writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.moduleName, this.DeprecateByVersion)); if (OldWay != null && NewWay != null) { @@ -191,11 +194,11 @@ public PreviewMessageAttribute(string message, string estimatedDateOfGa) : this( this.IsEstimatedGaDateSet = true; } } - + public void PrintCustomAttributeInfo(Action writeOutput) { writeOutput(this._message); - + if (IsEstimatedGaDateSet) { writeOutput(string.Format(Resources.PreviewCmdletETAMessage, this.EstimatedGaDate.ToShortDateString())); diff --git a/generated/Mdp/Mdp.Autorest/generated/runtime/Properties/Resources.resx b/generated/Mdp/Mdp.Autorest/generated/runtime/Properties/Resources.resx index a08a2e50172b..4ef90b70573d 100644 --- a/generated/Mdp/Mdp.Autorest/generated/runtime/Properties/Resources.resx +++ b/generated/Mdp/Mdp.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 version : '{0}' +- The change is expected to take effect in '{0}' from version : '{1}' ```powershell diff --git a/generated/Mdp/Mdp.Autorest/internal/Get-AzMdpOperation.ps1 b/generated/Mdp/Mdp.Autorest/internal/Get-AzMdpOperation.ps1 index 6467562c2af9..4704dea5bccd 100644 --- a/generated/Mdp/Mdp.Autorest/internal/Get-AzMdpOperation.ps1 +++ b/generated/Mdp/Mdp.Autorest/internal/Get-AzMdpOperation.ps1 @@ -90,11 +90,17 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Mdp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ List = 'Az.Mdp.private\Get-AzMdpOperation_List'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Mdp/Mdp.Autorest/internal/ProxyCmdletDefinitions.ps1 b/generated/Mdp/Mdp.Autorest/internal/ProxyCmdletDefinitions.ps1 index 0bc017b524de..9f9225f16d82 100644 --- a/generated/Mdp/Mdp.Autorest/internal/ProxyCmdletDefinitions.ps1 +++ b/generated/Mdp/Mdp.Autorest/internal/ProxyCmdletDefinitions.ps1 @@ -90,11 +90,17 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Mdp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ List = 'Az.Mdp.private\Get-AzMdpOperation_List'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -126,9 +132,9 @@ end { <# .Synopsis -update a Pool +Update a Pool .Description -update a Pool +Update a Pool .Example {{ Add code here }} .Example @@ -156,7 +162,7 @@ ORGANIZATIONPROFILE : Defines the organization in which th Kind : Discriminator property for OrganizationProfile. RESOURCE : Concrete tracked resource types can be created by aliasing this type using a specific property type. - Location : The geo-location where the resource lives + [Location ]: The geo-location where the resource lives [Tag ]: Resource tags. [(Any) ]: This indicates any property can be added to this object. [AgentProfile ]: Defines how the machine will be handled once it executed a job. @@ -355,6 +361,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Mdp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Update = 'Az.Mdp.private\Set-AzMdpPool_Update'; UpdateExpanded = 'Az.Mdp.private\Set-AzMdpPool_UpdateExpanded'; @@ -362,8 +371,6 @@ begin { UpdateViaJsonString = 'Az.Mdp.private\Set-AzMdpPool_UpdateViaJsonString'; } if (('Update', 'UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Mdp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -372,6 +379,9 @@ begin { } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Mdp/Mdp.Autorest/internal/Set-AzMdpPool.ps1 b/generated/Mdp/Mdp.Autorest/internal/Set-AzMdpPool.ps1 index cecde6d4c03f..0b3a805fe445 100644 --- a/generated/Mdp/Mdp.Autorest/internal/Set-AzMdpPool.ps1 +++ b/generated/Mdp/Mdp.Autorest/internal/Set-AzMdpPool.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update a Pool +Update a Pool .Description -update a Pool +Update a Pool .Example {{ Add code here }} .Example @@ -46,7 +46,7 @@ ORGANIZATIONPROFILE : Defines the organization in which th Kind : Discriminator property for OrganizationProfile. RESOURCE : Concrete tracked resource types can be created by aliasing this type using a specific property type. - Location : The geo-location where the resource lives + [Location ]: The geo-location where the resource lives [Tag ]: Resource tags. [(Any) ]: This indicates any property can be added to this object. [AgentProfile ]: Defines how the machine will be handled once it executed a job. @@ -245,6 +245,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Mdp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ Update = 'Az.Mdp.private\Set-AzMdpPool_Update'; UpdateExpanded = 'Az.Mdp.private\Set-AzMdpPool_UpdateExpanded'; @@ -252,8 +255,6 @@ begin { UpdateViaJsonString = 'Az.Mdp.private\Set-AzMdpPool_UpdateViaJsonString'; } if (('Update', 'UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Mdp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -262,6 +263,9 @@ begin { } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/src/LabServices/LabServices.Autorest/resources/README.md b/generated/Mdp/Mdp.Autorest/resources/README.md similarity index 100% rename from src/LabServices/LabServices.Autorest/resources/README.md rename to generated/Mdp/Mdp.Autorest/resources/README.md diff --git a/generated/MixedReality/MixedReality.Autorest/exports/Get-AzMixedRealityObjectAnchorsAccount.ps1 b/generated/MixedReality/MixedReality.Autorest/exports/Get-AzMixedRealityObjectAnchorsAccount.ps1 index 8a3709083c53..54e6e9f539fc 100644 --- a/generated/MixedReality/MixedReality.Autorest/exports/Get-AzMixedRealityObjectAnchorsAccount.ps1 +++ b/generated/MixedReality/MixedReality.Autorest/exports/Get-AzMixedRealityObjectAnchorsAccount.ps1 @@ -140,8 +140,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/MixedReality/MixedReality.Autorest/exports/Get-AzMixedRealityObjectAnchorsAccountKey.ps1 b/generated/MixedReality/MixedReality.Autorest/exports/Get-AzMixedRealityObjectAnchorsAccountKey.ps1 index ba804871124d..518392205954 100644 --- a/generated/MixedReality/MixedReality.Autorest/exports/Get-AzMixedRealityObjectAnchorsAccountKey.ps1 +++ b/generated/MixedReality/MixedReality.Autorest/exports/Get-AzMixedRealityObjectAnchorsAccountKey.ps1 @@ -114,8 +114,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/MixedReality/MixedReality.Autorest/exports/Get-AzMixedRealityRemoteRenderingAccount.ps1 b/generated/MixedReality/MixedReality.Autorest/exports/Get-AzMixedRealityRemoteRenderingAccount.ps1 index c2e253ef5e30..5391588cf64a 100644 --- a/generated/MixedReality/MixedReality.Autorest/exports/Get-AzMixedRealityRemoteRenderingAccount.ps1 +++ b/generated/MixedReality/MixedReality.Autorest/exports/Get-AzMixedRealityRemoteRenderingAccount.ps1 @@ -140,8 +140,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/MixedReality/MixedReality.Autorest/exports/Get-AzMixedRealityRemoteRenderingAccountKey.ps1 b/generated/MixedReality/MixedReality.Autorest/exports/Get-AzMixedRealityRemoteRenderingAccountKey.ps1 index 6dbfad28d625..367e3145767f 100644 --- a/generated/MixedReality/MixedReality.Autorest/exports/Get-AzMixedRealityRemoteRenderingAccountKey.ps1 +++ b/generated/MixedReality/MixedReality.Autorest/exports/Get-AzMixedRealityRemoteRenderingAccountKey.ps1 @@ -114,8 +114,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/MixedReality/MixedReality.Autorest/exports/Get-AzMixedRealitySpatialAnchorsAccount.ps1 b/generated/MixedReality/MixedReality.Autorest/exports/Get-AzMixedRealitySpatialAnchorsAccount.ps1 index 182a76e1239b..269dbbb70b05 100644 --- a/generated/MixedReality/MixedReality.Autorest/exports/Get-AzMixedRealitySpatialAnchorsAccount.ps1 +++ b/generated/MixedReality/MixedReality.Autorest/exports/Get-AzMixedRealitySpatialAnchorsAccount.ps1 @@ -140,8 +140,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/MixedReality/MixedReality.Autorest/exports/Get-AzMixedRealitySpatialAnchorsAccountKey.ps1 b/generated/MixedReality/MixedReality.Autorest/exports/Get-AzMixedRealitySpatialAnchorsAccountKey.ps1 index abf87decabdf..9c30af454aa3 100644 --- a/generated/MixedReality/MixedReality.Autorest/exports/Get-AzMixedRealitySpatialAnchorsAccountKey.ps1 +++ b/generated/MixedReality/MixedReality.Autorest/exports/Get-AzMixedRealitySpatialAnchorsAccountKey.ps1 @@ -114,8 +114,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/MixedReality/MixedReality.Autorest/exports/New-AzMixedRealityObjectAnchorsAccount.ps1 b/generated/MixedReality/MixedReality.Autorest/exports/New-AzMixedRealityObjectAnchorsAccount.ps1 index 5e743e348da0..71b3b6344b4a 100644 --- a/generated/MixedReality/MixedReality.Autorest/exports/New-AzMixedRealityObjectAnchorsAccount.ps1 +++ b/generated/MixedReality/MixedReality.Autorest/exports/New-AzMixedRealityObjectAnchorsAccount.ps1 @@ -228,8 +228,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/MixedReality/MixedReality.Autorest/exports/New-AzMixedRealityObjectAnchorsAccountKey.ps1 b/generated/MixedReality/MixedReality.Autorest/exports/New-AzMixedRealityObjectAnchorsAccountKey.ps1 index a5b367d1baf4..cd68c67e6af2 100644 --- a/generated/MixedReality/MixedReality.Autorest/exports/New-AzMixedRealityObjectAnchorsAccountKey.ps1 +++ b/generated/MixedReality/MixedReality.Autorest/exports/New-AzMixedRealityObjectAnchorsAccountKey.ps1 @@ -158,8 +158,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/MixedReality/MixedReality.Autorest/exports/New-AzMixedRealityRemoteRenderingAccount.ps1 b/generated/MixedReality/MixedReality.Autorest/exports/New-AzMixedRealityRemoteRenderingAccount.ps1 index 747d39d3f480..014295678ccf 100644 --- a/generated/MixedReality/MixedReality.Autorest/exports/New-AzMixedRealityRemoteRenderingAccount.ps1 +++ b/generated/MixedReality/MixedReality.Autorest/exports/New-AzMixedRealityRemoteRenderingAccount.ps1 @@ -228,8 +228,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/MixedReality/MixedReality.Autorest/exports/New-AzMixedRealityRemoteRenderingAccountKey.ps1 b/generated/MixedReality/MixedReality.Autorest/exports/New-AzMixedRealityRemoteRenderingAccountKey.ps1 index 1ee7fb2535fa..5351237e6073 100644 --- a/generated/MixedReality/MixedReality.Autorest/exports/New-AzMixedRealityRemoteRenderingAccountKey.ps1 +++ b/generated/MixedReality/MixedReality.Autorest/exports/New-AzMixedRealityRemoteRenderingAccountKey.ps1 @@ -158,8 +158,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/MixedReality/MixedReality.Autorest/exports/New-AzMixedRealitySpatialAnchorsAccount.ps1 b/generated/MixedReality/MixedReality.Autorest/exports/New-AzMixedRealitySpatialAnchorsAccount.ps1 index 6da1610208d3..707523c9e654 100644 --- a/generated/MixedReality/MixedReality.Autorest/exports/New-AzMixedRealitySpatialAnchorsAccount.ps1 +++ b/generated/MixedReality/MixedReality.Autorest/exports/New-AzMixedRealitySpatialAnchorsAccount.ps1 @@ -228,8 +228,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/MixedReality/MixedReality.Autorest/exports/New-AzMixedRealitySpatialAnchorsAccountKey.ps1 b/generated/MixedReality/MixedReality.Autorest/exports/New-AzMixedRealitySpatialAnchorsAccountKey.ps1 index f9c15315f2db..52a04983c45e 100644 --- a/generated/MixedReality/MixedReality.Autorest/exports/New-AzMixedRealitySpatialAnchorsAccountKey.ps1 +++ b/generated/MixedReality/MixedReality.Autorest/exports/New-AzMixedRealitySpatialAnchorsAccountKey.ps1 @@ -158,8 +158,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/MixedReality/MixedReality.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/MixedReality/MixedReality.Autorest/exports/ProxyCmdletDefinitions.ps1 index 5946b2f9d24b..85fd37f24d31 100644 --- a/generated/MixedReality/MixedReality.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/MixedReality/MixedReality.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -114,8 +114,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -324,8 +323,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -511,8 +509,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -721,8 +718,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -908,8 +904,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1118,8 +1113,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1349,8 +1343,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1650,8 +1643,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1880,8 +1872,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2181,8 +2172,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2411,8 +2401,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2712,8 +2701,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2923,8 +2911,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3133,8 +3120,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3343,8 +3329,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3575,8 +3560,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3877,8 +3861,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4177,8 +4160,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4477,8 +4459,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/MixedReality/MixedReality.Autorest/exports/Remove-AzMixedRealityObjectAnchorsAccount.ps1 b/generated/MixedReality/MixedReality.Autorest/exports/Remove-AzMixedRealityObjectAnchorsAccount.ps1 index cfd616c250b1..83c1ce5aa2e2 100644 --- a/generated/MixedReality/MixedReality.Autorest/exports/Remove-AzMixedRealityObjectAnchorsAccount.ps1 +++ b/generated/MixedReality/MixedReality.Autorest/exports/Remove-AzMixedRealityObjectAnchorsAccount.ps1 @@ -139,8 +139,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/MixedReality/MixedReality.Autorest/exports/Remove-AzMixedRealityRemoteRenderingAccount.ps1 b/generated/MixedReality/MixedReality.Autorest/exports/Remove-AzMixedRealityRemoteRenderingAccount.ps1 index b92b4d75b5ec..8b92ae383c5c 100644 --- a/generated/MixedReality/MixedReality.Autorest/exports/Remove-AzMixedRealityRemoteRenderingAccount.ps1 +++ b/generated/MixedReality/MixedReality.Autorest/exports/Remove-AzMixedRealityRemoteRenderingAccount.ps1 @@ -139,8 +139,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/MixedReality/MixedReality.Autorest/exports/Remove-AzMixedRealitySpatialAnchorsAccount.ps1 b/generated/MixedReality/MixedReality.Autorest/exports/Remove-AzMixedRealitySpatialAnchorsAccount.ps1 index 0ec277e1f3b0..9fc331d9422f 100644 --- a/generated/MixedReality/MixedReality.Autorest/exports/Remove-AzMixedRealitySpatialAnchorsAccount.ps1 +++ b/generated/MixedReality/MixedReality.Autorest/exports/Remove-AzMixedRealitySpatialAnchorsAccount.ps1 @@ -139,8 +139,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/MixedReality/MixedReality.Autorest/exports/Test-AzMixedRealityNameAvailability.ps1 b/generated/MixedReality/MixedReality.Autorest/exports/Test-AzMixedRealityNameAvailability.ps1 index eb63c73ea27f..e6d9d85458c2 100644 --- a/generated/MixedReality/MixedReality.Autorest/exports/Test-AzMixedRealityNameAvailability.ps1 +++ b/generated/MixedReality/MixedReality.Autorest/exports/Test-AzMixedRealityNameAvailability.ps1 @@ -161,8 +161,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/MixedReality/MixedReality.Autorest/exports/Update-AzMixedRealityObjectAnchorsAccount.ps1 b/generated/MixedReality/MixedReality.Autorest/exports/Update-AzMixedRealityObjectAnchorsAccount.ps1 index 86c052b1fed8..a77246c6d3a9 100644 --- a/generated/MixedReality/MixedReality.Autorest/exports/Update-AzMixedRealityObjectAnchorsAccount.ps1 +++ b/generated/MixedReality/MixedReality.Autorest/exports/Update-AzMixedRealityObjectAnchorsAccount.ps1 @@ -229,8 +229,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/MixedReality/MixedReality.Autorest/exports/Update-AzMixedRealityRemoteRenderingAccount.ps1 b/generated/MixedReality/MixedReality.Autorest/exports/Update-AzMixedRealityRemoteRenderingAccount.ps1 index 09eb75eec7af..4ee68821fee0 100644 --- a/generated/MixedReality/MixedReality.Autorest/exports/Update-AzMixedRealityRemoteRenderingAccount.ps1 +++ b/generated/MixedReality/MixedReality.Autorest/exports/Update-AzMixedRealityRemoteRenderingAccount.ps1 @@ -229,8 +229,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/MixedReality/MixedReality.Autorest/exports/Update-AzMixedRealitySpatialAnchorsAccount.ps1 b/generated/MixedReality/MixedReality.Autorest/exports/Update-AzMixedRealitySpatialAnchorsAccount.ps1 index 778b73ab7183..4174b094080f 100644 --- a/generated/MixedReality/MixedReality.Autorest/exports/Update-AzMixedRealitySpatialAnchorsAccount.ps1 +++ b/generated/MixedReality/MixedReality.Autorest/exports/Update-AzMixedRealitySpatialAnchorsAccount.ps1 @@ -229,8 +229,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/MixedReality/MixedReality.Autorest/generated/api/Models/ObjectAnchorsAccount.cs b/generated/MixedReality/MixedReality.Autorest/generated/api/Models/ObjectAnchorsAccount.cs index 9c97aaa32569..01c9933574ea 100644 --- a/generated/MixedReality/MixedReality.Autorest/generated/api/Models/ObjectAnchorsAccount.cs +++ b/generated/MixedReality/MixedReality.Autorest/generated/api/Models/ObjectAnchorsAccount.cs @@ -93,19 +93,19 @@ public partial class ObjectAnchorsAccount : public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } /// Internal Acessors for AccountDomain - string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IObjectAnchorsAccountInternal.AccountDomain { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IMixedRealityAccountPropertiesInternal)Property).AccountDomain; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IMixedRealityAccountPropertiesInternal)Property).AccountDomain = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IObjectAnchorsAccountInternal.AccountDomain { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IMixedRealityAccountPropertiesInternal)Property).AccountDomain; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IMixedRealityAccountPropertiesInternal)Property).AccountDomain = value ?? null; } /// Internal Acessors for AccountId - string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IObjectAnchorsAccountInternal.AccountId { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IMixedRealityAccountPropertiesInternal)Property).AccountId; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IMixedRealityAccountPropertiesInternal)Property).AccountId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IObjectAnchorsAccountInternal.AccountId { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IMixedRealityAccountPropertiesInternal)Property).AccountId; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IMixedRealityAccountPropertiesInternal)Property).AccountId = value ?? null; } /// Internal Acessors for Identity Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IObjectAnchorsAccountIdentity Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IObjectAnchorsAccountInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ObjectAnchorsAccountIdentity()); set { {_identity = value;} } } /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IObjectAnchorsAccountInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal)Identity).PrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IObjectAnchorsAccountInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal)Identity).PrincipalId = value ?? null; } /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IObjectAnchorsAccountInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal)Identity).TenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IObjectAnchorsAccountInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal)Identity).TenantId = value ?? null; } /// Internal Acessors for Kind Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISku Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IObjectAnchorsAccountInternal.Kind { get => (this._kind = this._kind ?? new Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.Sku()); set { {_kind = value;} } } @@ -114,10 +114,10 @@ public partial class ObjectAnchorsAccount : Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentity Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IObjectAnchorsAccountInternal.Plan { get => (this._plan = this._plan ?? new Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.Identity()); set { {_plan = value;} } } /// Internal Acessors for PlanPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IObjectAnchorsAccountInternal.PlanPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal)Plan).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal)Plan).PrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IObjectAnchorsAccountInternal.PlanPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal)Plan).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal)Plan).PrincipalId = value ?? null; } /// Internal Acessors for PlanTenantId - string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IObjectAnchorsAccountInternal.PlanTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal)Plan).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal)Plan).TenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IObjectAnchorsAccountInternal.PlanTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal)Plan).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal)Plan).TenantId = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IMixedRealityAccountProperties Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IObjectAnchorsAccountInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.MixedRealityAccountProperties()); set { {_property = value;} } } @@ -129,31 +129,31 @@ public partial class ObjectAnchorsAccount : Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IObjectAnchorsAccountInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.SystemData()); set { {_systemData = value;} } } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IObjectAnchorsAccountInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).CreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IObjectAnchorsAccountInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IObjectAnchorsAccountInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).CreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IObjectAnchorsAccountInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IObjectAnchorsAccountInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).CreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IObjectAnchorsAccountInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IObjectAnchorsAccountInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).LastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IObjectAnchorsAccountInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IObjectAnchorsAccountInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).LastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IObjectAnchorsAccountInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IObjectAnchorsAccountInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).LastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IObjectAnchorsAccountInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Origin(Microsoft.Azure.PowerShell.Cmdlets.MixedReality.PropertyOrigin.Inherited)] diff --git a/generated/MixedReality/MixedReality.Autorest/generated/api/Models/ObjectAnchorsAccountIdentity.cs b/generated/MixedReality/MixedReality.Autorest/generated/api/Models/ObjectAnchorsAccountIdentity.cs index 87935ed0a5a0..1a6d6e118096 100644 --- a/generated/MixedReality/MixedReality.Autorest/generated/api/Models/ObjectAnchorsAccountIdentity.cs +++ b/generated/MixedReality/MixedReality.Autorest/generated/api/Models/ObjectAnchorsAccountIdentity.cs @@ -18,10 +18,10 @@ public partial class ObjectAnchorsAccountIdentity : private Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentity __identity = new Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.Identity(); /// Internal Acessors for PrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal.PrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal)__identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal)__identity).PrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal.PrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal)__identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal)__identity).PrincipalId = value ?? null; } /// Internal Acessors for TenantId - string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal.TenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal)__identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal)__identity).TenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal.TenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal)__identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal)__identity).TenantId = value ?? null; } /// The principal ID of resource identity. [Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Origin(Microsoft.Azure.PowerShell.Cmdlets.MixedReality.PropertyOrigin.Inherited)] diff --git a/generated/MixedReality/MixedReality.Autorest/generated/api/Models/Operation.cs b/generated/MixedReality/MixedReality.Autorest/generated/api/Models/Operation.cs index 430984b75d8a..5f46dc92ccc4 100644 --- a/generated/MixedReality/MixedReality.Autorest/generated/api/Models/Operation.cs +++ b/generated/MixedReality/MixedReality.Autorest/generated/api/Models/Operation.cs @@ -50,7 +50,7 @@ public partial class Operation : Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IOperationProperties Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IOperationInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.OperationProperties()); set { {_property = value;} } } /// Internal Acessors for ServiceSpecification - Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IServiceSpecification Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IOperationInternal.ServiceSpecification { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IOperationPropertiesInternal)Property).ServiceSpecification; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IOperationPropertiesInternal)Property).ServiceSpecification = value; } + Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IServiceSpecification Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IOperationInternal.ServiceSpecification { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IOperationPropertiesInternal)Property).ServiceSpecification; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IOperationPropertiesInternal)Property).ServiceSpecification = value ?? null /* model class */; } /// Backing field for property. private string _name; diff --git a/generated/MixedReality/MixedReality.Autorest/generated/api/Models/RemoteRenderingAccount.cs b/generated/MixedReality/MixedReality.Autorest/generated/api/Models/RemoteRenderingAccount.cs index 556b098282a7..bbc5f225a05e 100644 --- a/generated/MixedReality/MixedReality.Autorest/generated/api/Models/RemoteRenderingAccount.cs +++ b/generated/MixedReality/MixedReality.Autorest/generated/api/Models/RemoteRenderingAccount.cs @@ -94,19 +94,19 @@ public partial class RemoteRenderingAccount : public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } /// Internal Acessors for AccountDomain - string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IRemoteRenderingAccountInternal.AccountDomain { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IMixedRealityAccountPropertiesInternal)Property).AccountDomain; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IMixedRealityAccountPropertiesInternal)Property).AccountDomain = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IRemoteRenderingAccountInternal.AccountDomain { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IMixedRealityAccountPropertiesInternal)Property).AccountDomain; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IMixedRealityAccountPropertiesInternal)Property).AccountDomain = value ?? null; } /// Internal Acessors for AccountId - string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IRemoteRenderingAccountInternal.AccountId { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IMixedRealityAccountPropertiesInternal)Property).AccountId; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IMixedRealityAccountPropertiesInternal)Property).AccountId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IRemoteRenderingAccountInternal.AccountId { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IMixedRealityAccountPropertiesInternal)Property).AccountId; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IMixedRealityAccountPropertiesInternal)Property).AccountId = value ?? null; } /// Internal Acessors for Identity Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentity Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IRemoteRenderingAccountInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.Identity()); set { {_identity = value;} } } /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IRemoteRenderingAccountInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal)Identity).PrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IRemoteRenderingAccountInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal)Identity).PrincipalId = value ?? null; } /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IRemoteRenderingAccountInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal)Identity).TenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IRemoteRenderingAccountInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal)Identity).TenantId = value ?? null; } /// Internal Acessors for Kind Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISku Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IRemoteRenderingAccountInternal.Kind { get => (this._kind = this._kind ?? new Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.Sku()); set { {_kind = value;} } } @@ -115,10 +115,10 @@ public partial class RemoteRenderingAccount : Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentity Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IRemoteRenderingAccountInternal.Plan { get => (this._plan = this._plan ?? new Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.Identity()); set { {_plan = value;} } } /// Internal Acessors for PlanPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IRemoteRenderingAccountInternal.PlanPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal)Plan).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal)Plan).PrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IRemoteRenderingAccountInternal.PlanPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal)Plan).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal)Plan).PrincipalId = value ?? null; } /// Internal Acessors for PlanTenantId - string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IRemoteRenderingAccountInternal.PlanTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal)Plan).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal)Plan).TenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IRemoteRenderingAccountInternal.PlanTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal)Plan).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal)Plan).TenantId = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IMixedRealityAccountProperties Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IRemoteRenderingAccountInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.MixedRealityAccountProperties()); set { {_property = value;} } } @@ -130,31 +130,31 @@ public partial class RemoteRenderingAccount : Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IRemoteRenderingAccountInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.SystemData()); set { {_systemData = value;} } } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IRemoteRenderingAccountInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).CreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IRemoteRenderingAccountInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IRemoteRenderingAccountInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).CreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IRemoteRenderingAccountInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IRemoteRenderingAccountInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).CreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IRemoteRenderingAccountInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IRemoteRenderingAccountInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).LastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IRemoteRenderingAccountInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IRemoteRenderingAccountInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).LastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IRemoteRenderingAccountInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IRemoteRenderingAccountInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).LastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IRemoteRenderingAccountInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Origin(Microsoft.Azure.PowerShell.Cmdlets.MixedReality.PropertyOrigin.Inherited)] diff --git a/generated/MixedReality/MixedReality.Autorest/generated/api/Models/SpatialAnchorsAccount.cs b/generated/MixedReality/MixedReality.Autorest/generated/api/Models/SpatialAnchorsAccount.cs index 7d01b7361620..31f932ea4e4d 100644 --- a/generated/MixedReality/MixedReality.Autorest/generated/api/Models/SpatialAnchorsAccount.cs +++ b/generated/MixedReality/MixedReality.Autorest/generated/api/Models/SpatialAnchorsAccount.cs @@ -94,28 +94,28 @@ public partial class SpatialAnchorsAccount : public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// Internal Acessors for AccountDomain - string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISpatialAnchorsAccountInternal.AccountDomain { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IMixedRealityAccountPropertiesInternal)Property).AccountDomain; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IMixedRealityAccountPropertiesInternal)Property).AccountDomain = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISpatialAnchorsAccountInternal.AccountDomain { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IMixedRealityAccountPropertiesInternal)Property).AccountDomain; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IMixedRealityAccountPropertiesInternal)Property).AccountDomain = value ?? null; } /// Internal Acessors for AccountId - string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISpatialAnchorsAccountInternal.AccountId { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IMixedRealityAccountPropertiesInternal)Property).AccountId; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IMixedRealityAccountPropertiesInternal)Property).AccountId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISpatialAnchorsAccountInternal.AccountId { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IMixedRealityAccountPropertiesInternal)Property).AccountId; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IMixedRealityAccountPropertiesInternal)Property).AccountId = value ?? null; } /// Internal Acessors for Identity Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentity Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISpatialAnchorsAccountInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.Identity()); set { {_identity = value;} } } /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISpatialAnchorsAccountInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal)Identity).PrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISpatialAnchorsAccountInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal)Identity).PrincipalId = value ?? null; } /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISpatialAnchorsAccountInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal)Identity).TenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISpatialAnchorsAccountInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal)Identity).TenantId = value ?? null; } /// Internal Acessors for Kind Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISku Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISpatialAnchorsAccountInternal.Kind { get => (this._kind = this._kind ?? new Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.Sku()); set { {_kind = value;} } } @@ -124,10 +124,10 @@ public partial class SpatialAnchorsAccount : Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentity Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISpatialAnchorsAccountInternal.Plan { get => (this._plan = this._plan ?? new Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.Identity()); set { {_plan = value;} } } /// Internal Acessors for PlanPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISpatialAnchorsAccountInternal.PlanPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal)Plan).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal)Plan).PrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISpatialAnchorsAccountInternal.PlanPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal)Plan).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal)Plan).PrincipalId = value ?? null; } /// Internal Acessors for PlanTenantId - string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISpatialAnchorsAccountInternal.PlanTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal)Plan).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal)Plan).TenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISpatialAnchorsAccountInternal.PlanTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal)Plan).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IIdentityInternal)Plan).TenantId = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IMixedRealityAccountProperties Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISpatialAnchorsAccountInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.MixedRealityAccountProperties()); set { {_property = value;} } } @@ -139,22 +139,22 @@ public partial class SpatialAnchorsAccount : Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISpatialAnchorsAccountInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.SystemData()); set { {_systemData = value;} } } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISpatialAnchorsAccountInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).CreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISpatialAnchorsAccountInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISpatialAnchorsAccountInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).CreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISpatialAnchorsAccountInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISpatialAnchorsAccountInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).CreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISpatialAnchorsAccountInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISpatialAnchorsAccountInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).LastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISpatialAnchorsAccountInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISpatialAnchorsAccountInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).LastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISpatialAnchorsAccountInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISpatialAnchorsAccountInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).LastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISpatialAnchorsAccountInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Origin(Microsoft.Azure.PowerShell.Cmdlets.MixedReality.PropertyOrigin.Inherited)] diff --git a/generated/MixedReality/MixedReality.Autorest/generated/api/Models/TrackedResource.cs b/generated/MixedReality/MixedReality.Autorest/generated/api/Models/TrackedResource.cs index 191b3d83d339..0d0bddc1eb5f 100644 --- a/generated/MixedReality/MixedReality.Autorest/generated/api/Models/TrackedResource.cs +++ b/generated/MixedReality/MixedReality.Autorest/generated/api/Models/TrackedResource.cs @@ -34,13 +34,13 @@ public partial class TrackedResource : public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Origin(Microsoft.Azure.PowerShell.Cmdlets.MixedReality.PropertyOrigin.Inherited)] diff --git a/generated/MixedReality/MixedReality.Autorest/generated/cmdlets/RemoveAzMixedRealityObjectAnchorsAccount_Delete.cs b/generated/MixedReality/MixedReality.Autorest/generated/cmdlets/RemoveAzMixedRealityObjectAnchorsAccount_Delete.cs index 088afadc0617..80bce9e9f223 100644 --- a/generated/MixedReality/MixedReality.Autorest/generated/cmdlets/RemoveAzMixedRealityObjectAnchorsAccount_Delete.cs +++ b/generated/MixedReality/MixedReality.Autorest/generated/cmdlets/RemoveAzMixedRealityObjectAnchorsAccount_Delete.cs @@ -497,7 +497,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -521,7 +521,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/MixedReality/MixedReality.Autorest/generated/cmdlets/RemoveAzMixedRealityObjectAnchorsAccount_DeleteViaIdentity.cs b/generated/MixedReality/MixedReality.Autorest/generated/cmdlets/RemoveAzMixedRealityObjectAnchorsAccount_DeleteViaIdentity.cs index 3698b2e5f952..8c275157efd7 100644 --- a/generated/MixedReality/MixedReality.Autorest/generated/cmdlets/RemoveAzMixedRealityObjectAnchorsAccount_DeleteViaIdentity.cs +++ b/generated/MixedReality/MixedReality.Autorest/generated/cmdlets/RemoveAzMixedRealityObjectAnchorsAccount_DeleteViaIdentity.cs @@ -476,7 +476,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -500,7 +500,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/MixedReality/MixedReality.Autorest/generated/cmdlets/RemoveAzMixedRealityRemoteRenderingAccount_Delete.cs b/generated/MixedReality/MixedReality.Autorest/generated/cmdlets/RemoveAzMixedRealityRemoteRenderingAccount_Delete.cs index 88494c3d54ba..f9a6623e845a 100644 --- a/generated/MixedReality/MixedReality.Autorest/generated/cmdlets/RemoveAzMixedRealityRemoteRenderingAccount_Delete.cs +++ b/generated/MixedReality/MixedReality.Autorest/generated/cmdlets/RemoveAzMixedRealityRemoteRenderingAccount_Delete.cs @@ -497,7 +497,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -521,7 +521,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/MixedReality/MixedReality.Autorest/generated/cmdlets/RemoveAzMixedRealityRemoteRenderingAccount_DeleteViaIdentity.cs b/generated/MixedReality/MixedReality.Autorest/generated/cmdlets/RemoveAzMixedRealityRemoteRenderingAccount_DeleteViaIdentity.cs index d1de58b9bde2..56bdc8dd4151 100644 --- a/generated/MixedReality/MixedReality.Autorest/generated/cmdlets/RemoveAzMixedRealityRemoteRenderingAccount_DeleteViaIdentity.cs +++ b/generated/MixedReality/MixedReality.Autorest/generated/cmdlets/RemoveAzMixedRealityRemoteRenderingAccount_DeleteViaIdentity.cs @@ -476,7 +476,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -500,7 +500,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/MixedReality/MixedReality.Autorest/generated/cmdlets/RemoveAzMixedRealitySpatialAnchorsAccount_Delete.cs b/generated/MixedReality/MixedReality.Autorest/generated/cmdlets/RemoveAzMixedRealitySpatialAnchorsAccount_Delete.cs index 350a455cd8c4..29ae57ffcb0d 100644 --- a/generated/MixedReality/MixedReality.Autorest/generated/cmdlets/RemoveAzMixedRealitySpatialAnchorsAccount_Delete.cs +++ b/generated/MixedReality/MixedReality.Autorest/generated/cmdlets/RemoveAzMixedRealitySpatialAnchorsAccount_Delete.cs @@ -497,7 +497,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -521,7 +521,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/MixedReality/MixedReality.Autorest/generated/cmdlets/RemoveAzMixedRealitySpatialAnchorsAccount_DeleteViaIdentity.cs b/generated/MixedReality/MixedReality.Autorest/generated/cmdlets/RemoveAzMixedRealitySpatialAnchorsAccount_DeleteViaIdentity.cs index 50916735bf6a..01189d6384fb 100644 --- a/generated/MixedReality/MixedReality.Autorest/generated/cmdlets/RemoveAzMixedRealitySpatialAnchorsAccount_DeleteViaIdentity.cs +++ b/generated/MixedReality/MixedReality.Autorest/generated/cmdlets/RemoveAzMixedRealitySpatialAnchorsAccount_DeleteViaIdentity.cs @@ -476,7 +476,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -500,7 +500,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/MixedReality/MixedReality.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/MixedReality/MixedReality.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs index 1830fc9d7b49..945cc2ea3d4d 100644 --- a/generated/MixedReality/MixedReality.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/generated/MixedReality/MixedReality.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs @@ -36,14 +36,23 @@ internal class PsHelpInfo public object Role { get; } public string NonTerminatingErrors { get; } + public static string CapitalizeFirstLetter(string text) + { + if (string.IsNullOrEmpty(text)) + return text; + + return char.ToUpper(text[0]) + text.Substring(1); + } + public PsHelpInfo(PSObject helpObject = null) { helpObject = helpObject ?? new PSObject(); CmdletName = helpObject.GetProperty("Name").NullIfEmpty() ?? helpObject.GetNestedProperty("details", "name"); ModuleName = helpObject.GetProperty("ModuleName"); - Synopsis = helpObject.GetProperty("Synopsis"); + Synopsis = CapitalizeFirstLetter(helpObject.GetProperty("Synopsis")); Description = helpObject.GetProperty("description").EmptyIfNull().ToDescriptionText().NullIfEmpty() ?? helpObject.GetNestedProperty("details", "description").EmptyIfNull().ToDescriptionText(); + Description = CapitalizeFirstLetter(Description); AlertText = helpObject.GetNestedProperty("alertSet", "alert").EmptyIfNull().ToDescriptionText(); Category = helpObject.GetProperty("Category"); HasCommonParameters = helpObject.GetProperty("CommonParameters").ToNullableBool(); diff --git a/generated/MixedReality/MixedReality.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/MixedReality/MixedReality.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index ac8e1545b9ec..4632ed7a4c81 100644 --- a/generated/MixedReality/MixedReality.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/MixedReality/MixedReality.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -218,13 +218,12 @@ public string GetProcessCustomAttributesAtRuntime() private string GetLoginVerification() { - if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) + if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) { return $@" {Indent}{Indent}$context = Get-AzContext {Indent}{Indent}if (-not $context -and -not $testPlayback) {{ -{Indent}{Indent}{Indent}Write-Error ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" -{Indent}{Indent}{Indent}exit +{Indent}{Indent}{Indent}throw ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" {Indent}{Indent}}} "; } diff --git a/generated/MixedReality/MixedReality.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/MixedReality/MixedReality.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs index dd46ab3e107c..396968049b9e 100644 --- a/generated/MixedReality/MixedReality.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/generated/MixedReality/MixedReality.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs @@ -392,6 +392,7 @@ public CommentInfo(VariantGroup variantGroup) var helpInfo = variantGroup.HelpInfo; Description = variantGroup.Variants.SelectMany(v => v.Attributes).OfType().FirstOrDefault()?.Description.NullIfEmpty() ?? helpInfo.Description.EmptyIfNull(); + Description = PsHelpInfo.CapitalizeFirstLetter(Description); // If there is no Synopsis, PowerShell may put in the Syntax string as the Synopsis. This seems unintended, so we remove the Synopsis in this situation. var synopsis = helpInfo.Synopsis.EmptyIfNull().Trim().StartsWith(variantGroup.CmdletName) ? String.Empty : helpInfo.Synopsis; Synopsis = synopsis.NullIfEmpty() ?? Description; diff --git a/generated/MixedReality/MixedReality.Autorest/generated/runtime/Context.cs b/generated/MixedReality/MixedReality.Autorest/generated/runtime/Context.cs index e3c6ef015a8e..00a3beadc320 100644 --- a/generated/MixedReality/MixedReality.Autorest/generated/runtime/Context.cs +++ b/generated/MixedReality/MixedReality.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Runtime /// The IContext Interface defines the communication mechanism for input customization. /// /// - /// In the context, we will have client, pipeline, PSBoundParamters, default EventListener, Cancellation. + /// In the context, we will have client, pipeline, PSBoundParameters, default EventListener, Cancellation. /// public interface IContext { diff --git a/generated/MixedReality/MixedReality.Autorest/generated/runtime/MessageAttribute.cs b/generated/MixedReality/MixedReality.Autorest/generated/runtime/MessageAttribute.cs index 641f5ca8bc14..0a66b8556bd5 100644 --- a/generated/MixedReality/MixedReality.Autorest/generated/runtime/MessageAttribute.cs +++ b/generated/MixedReality/MixedReality.Autorest/generated/runtime/MessageAttribute.cs @@ -16,9 +16,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Runtime public class GenericBreakingChangeAttribute : Attribute { private string _message; - //A dexcription of what the change is about, non mandatory + //A description of what the change is about, non mandatory public string ChangeDescription { get; set; } = null; + //Name of the module that is being deprecated + public string moduleName { get; set; } = String.IsNullOrEmpty(@"") ? @"Az.MixedReality" : @""; + //The version the change is effective from, non mandatory public string DeprecateByVersion { get; } public string DeprecateByAzVersion { get; } @@ -82,7 +85,7 @@ public void PrintCustomAttributeInfo(Action writeOutput) } writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByAzVersion, this.DeprecateByAzVersion)); - writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.DeprecateByVersion)); + writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.moduleName, this.DeprecateByVersion)); if (OldWay != null && NewWay != null) { @@ -191,11 +194,11 @@ public PreviewMessageAttribute(string message, string estimatedDateOfGa) : this( this.IsEstimatedGaDateSet = true; } } - + public void PrintCustomAttributeInfo(Action writeOutput) { writeOutput(this._message); - + if (IsEstimatedGaDateSet) { writeOutput(string.Format(Resources.PreviewCmdletETAMessage, this.EstimatedGaDate.ToShortDateString())); diff --git a/generated/MixedReality/MixedReality.Autorest/generated/runtime/Properties/Resources.resx b/generated/MixedReality/MixedReality.Autorest/generated/runtime/Properties/Resources.resx index a08a2e50172b..4ef90b70573d 100644 --- a/generated/MixedReality/MixedReality.Autorest/generated/runtime/Properties/Resources.resx +++ b/generated/MixedReality/MixedReality.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 version : '{0}' +- The change is expected to take effect in '{0}' from version : '{1}' ```powershell diff --git a/generated/MongoDB/MongoDB.Autorest/exports/Get-AzMongoDBOrganization.ps1 b/generated/MongoDB/MongoDB.Autorest/exports/Get-AzMongoDBOrganization.ps1 index b531c607e01b..db0a207d16ee 100644 --- a/generated/MongoDB/MongoDB.Autorest/exports/Get-AzMongoDBOrganization.ps1 +++ b/generated/MongoDB/MongoDB.Autorest/exports/Get-AzMongoDBOrganization.ps1 @@ -138,8 +138,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/MongoDB/MongoDB.Autorest/exports/New-AzMongoDBOrganization.ps1 b/generated/MongoDB/MongoDB.Autorest/exports/New-AzMongoDBOrganization.ps1 index 32baaf936def..1ed2e08b25ac 100644 --- a/generated/MongoDB/MongoDB.Autorest/exports/New-AzMongoDBOrganization.ps1 +++ b/generated/MongoDB/MongoDB.Autorest/exports/New-AzMongoDBOrganization.ps1 @@ -262,8 +262,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/MongoDB/MongoDB.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/MongoDB/MongoDB.Autorest/exports/ProxyCmdletDefinitions.ps1 index 138e38065bd0..df220833cc43 100644 --- a/generated/MongoDB/MongoDB.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/MongoDB/MongoDB.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -138,8 +138,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -473,8 +472,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -696,8 +694,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/MongoDB/MongoDB.Autorest/exports/Remove-AzMongoDBOrganization.ps1 b/generated/MongoDB/MongoDB.Autorest/exports/Remove-AzMongoDBOrganization.ps1 index 65b1b2f6c50f..2fff00a4cbef 100644 --- a/generated/MongoDB/MongoDB.Autorest/exports/Remove-AzMongoDBOrganization.ps1 +++ b/generated/MongoDB/MongoDB.Autorest/exports/Remove-AzMongoDBOrganization.ps1 @@ -151,8 +151,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/MongoDB/MongoDB.Autorest/generated/cmdlets/NewAzMongoDBOrganization_CreateExpanded.cs b/generated/MongoDB/MongoDB.Autorest/generated/cmdlets/NewAzMongoDBOrganization_CreateExpanded.cs index 454b2e8533f1..1315641d8f5a 100644 --- a/generated/MongoDB/MongoDB.Autorest/generated/cmdlets/NewAzMongoDBOrganization_CreateExpanded.cs +++ b/generated/MongoDB/MongoDB.Autorest/generated/cmdlets/NewAzMongoDBOrganization_CreateExpanded.cs @@ -40,18 +40,9 @@ public partial class NewAzMongoDBOrganization_CreateExpanded : global::System.Ma /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// The resource model definition for an Azure Organization private Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.IOrganizationResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.OrganizationResource(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.MongoDB.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MongoDB.ParameterCategory.Runtime)] @@ -461,11 +452,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Cmdlets.NewAzMongoDBOrganizati /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -807,24 +793,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.IOrganizationResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/MongoDB/MongoDB.Autorest/generated/cmdlets/NewAzMongoDBOrganization_CreateViaJsonFilePath.cs b/generated/MongoDB/MongoDB.Autorest/generated/cmdlets/NewAzMongoDBOrganization_CreateViaJsonFilePath.cs index 259339ef72ac..92c9c191b70a 100644 --- a/generated/MongoDB/MongoDB.Autorest/generated/cmdlets/NewAzMongoDBOrganization_CreateViaJsonFilePath.cs +++ b/generated/MongoDB/MongoDB.Autorest/generated/cmdlets/NewAzMongoDBOrganization_CreateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class NewAzMongoDBOrganization_CreateViaJsonFilePath : global::Sy /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.MongoDB.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MongoDB.ParameterCategory.Runtime)] @@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Cmdlets.NewAzMongoDBOrganizati /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -583,24 +569,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.IOrganizationResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/MongoDB/MongoDB.Autorest/generated/cmdlets/NewAzMongoDBOrganization_CreateViaJsonString.cs b/generated/MongoDB/MongoDB.Autorest/generated/cmdlets/NewAzMongoDBOrganization_CreateViaJsonString.cs index fbfaea247752..534eb53ffacc 100644 --- a/generated/MongoDB/MongoDB.Autorest/generated/cmdlets/NewAzMongoDBOrganization_CreateViaJsonString.cs +++ b/generated/MongoDB/MongoDB.Autorest/generated/cmdlets/NewAzMongoDBOrganization_CreateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class NewAzMongoDBOrganization_CreateViaJsonString : global::Syst /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.MongoDB.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MongoDB.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Cmdlets.NewAzMongoDBOrganizati /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -581,24 +567,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.IOrganizationResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/MongoDB/MongoDB.Autorest/generated/cmdlets/RemoveAzMongoDBOrganization_Delete.cs b/generated/MongoDB/MongoDB.Autorest/generated/cmdlets/RemoveAzMongoDBOrganization_Delete.cs index b0089edc117f..65ce9d8cdc75 100644 --- a/generated/MongoDB/MongoDB.Autorest/generated/cmdlets/RemoveAzMongoDBOrganization_Delete.cs +++ b/generated/MongoDB/MongoDB.Autorest/generated/cmdlets/RemoveAzMongoDBOrganization_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzMongoDBOrganization_Delete : global::System.Managem /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.MongoDB.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MongoDB.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Cmdlets.RemoveAzMongoDBOrganiz /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -577,7 +563,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -601,7 +587,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/MongoDB/MongoDB.Autorest/generated/cmdlets/RemoveAzMongoDBOrganization_DeleteViaIdentity.cs b/generated/MongoDB/MongoDB.Autorest/generated/cmdlets/RemoveAzMongoDBOrganization_DeleteViaIdentity.cs index f891f35b00ec..51df7bf2ba8f 100644 --- a/generated/MongoDB/MongoDB.Autorest/generated/cmdlets/RemoveAzMongoDBOrganization_DeleteViaIdentity.cs +++ b/generated/MongoDB/MongoDB.Autorest/generated/cmdlets/RemoveAzMongoDBOrganization_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzMongoDBOrganization_DeleteViaIdentity : global::Sys /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.MongoDB.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MongoDB.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Cmdlets.RemoveAzMongoDBOrganiz /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -554,7 +540,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -578,7 +564,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/MongoDB/MongoDB.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/MongoDB/MongoDB.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 75309e3d350d..41ce8de79530 100644 --- a/generated/MongoDB/MongoDB.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/MongoDB/MongoDB.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -218,13 +218,12 @@ public string GetProcessCustomAttributesAtRuntime() private string GetLoginVerification() { - if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) + if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) { return $@" {Indent}{Indent}$context = Get-AzContext {Indent}{Indent}if (-not $context -and -not $testPlayback) {{ -{Indent}{Indent}{Indent}Write-Error ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" -{Indent}{Indent}{Indent}exit +{Indent}{Indent}{Indent}throw ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" {Indent}{Indent}}} "; } diff --git a/generated/MongoDB/MongoDB.Autorest/generated/runtime/Context.cs b/generated/MongoDB/MongoDB.Autorest/generated/runtime/Context.cs index 719e22072d13..c19d68d2d434 100644 --- a/generated/MongoDB/MongoDB.Autorest/generated/runtime/Context.cs +++ b/generated/MongoDB/MongoDB.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Runtime /// The IContext Interface defines the communication mechanism for input customization. /// /// - /// In the context, we will have client, pipeline, PSBoundParamters, default EventListener, Cancellation. + /// In the context, we will have client, pipeline, PSBoundParameters, default EventListener, Cancellation. /// public interface IContext { diff --git a/generated/MonitoringSolutions/MonitoringSolutions.Autorest/exports/Get-AzMonitorLogAnalyticsSolution.ps1 b/generated/MonitoringSolutions/MonitoringSolutions.Autorest/exports/Get-AzMonitorLogAnalyticsSolution.ps1 index 968507072e7d..10b579e1e4e9 100644 --- a/generated/MonitoringSolutions/MonitoringSolutions.Autorest/exports/Get-AzMonitorLogAnalyticsSolution.ps1 +++ b/generated/MonitoringSolutions/MonitoringSolutions.Autorest/exports/Get-AzMonitorLogAnalyticsSolution.ps1 @@ -152,8 +152,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/MonitoringSolutions/MonitoringSolutions.Autorest/exports/New-AzMonitorLogAnalyticsSolution.ps1 b/generated/MonitoringSolutions/MonitoringSolutions.Autorest/exports/New-AzMonitorLogAnalyticsSolution.ps1 index 5ff3956447c0..b0ba954f3c70 100644 --- a/generated/MonitoringSolutions/MonitoringSolutions.Autorest/exports/New-AzMonitorLogAnalyticsSolution.ps1 +++ b/generated/MonitoringSolutions/MonitoringSolutions.Autorest/exports/New-AzMonitorLogAnalyticsSolution.ps1 @@ -139,8 +139,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/MonitoringSolutions/MonitoringSolutions.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/MonitoringSolutions/MonitoringSolutions.Autorest/exports/ProxyCmdletDefinitions.ps1 index 3cecbf56e212..ec2129f86123 100644 --- a/generated/MonitoringSolutions/MonitoringSolutions.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/MonitoringSolutions/MonitoringSolutions.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -152,8 +152,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -374,8 +373,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -461,9 +459,9 @@ end { <# .Synopsis -update the tags of a solution. +Update the tags of a solution. .Description -update the tags of a solution. +Update the tags of a solution. .Example Update-AzMonitorLogAnalyticsSolution -ResourceGroupName lucas-manual-test -Name 'Containers(monitoringworkspace-2vob7n)' -Tag @{'Operation'='update';'Param'='Tag'} .Example @@ -593,8 +591,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -803,8 +800,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/MonitoringSolutions/MonitoringSolutions.Autorest/exports/Remove-AzMonitorLogAnalyticsSolution.ps1 b/generated/MonitoringSolutions/MonitoringSolutions.Autorest/exports/Remove-AzMonitorLogAnalyticsSolution.ps1 index 3b7ef2c39306..aa9cd1b8704c 100644 --- a/generated/MonitoringSolutions/MonitoringSolutions.Autorest/exports/Remove-AzMonitorLogAnalyticsSolution.ps1 +++ b/generated/MonitoringSolutions/MonitoringSolutions.Autorest/exports/Remove-AzMonitorLogAnalyticsSolution.ps1 @@ -149,8 +149,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/MonitoringSolutions/MonitoringSolutions.Autorest/exports/Update-AzMonitorLogAnalyticsSolution.ps1 b/generated/MonitoringSolutions/MonitoringSolutions.Autorest/exports/Update-AzMonitorLogAnalyticsSolution.ps1 index 38e4749053a3..bb2f4e2d525a 100644 --- a/generated/MonitoringSolutions/MonitoringSolutions.Autorest/exports/Update-AzMonitorLogAnalyticsSolution.ps1 +++ b/generated/MonitoringSolutions/MonitoringSolutions.Autorest/exports/Update-AzMonitorLogAnalyticsSolution.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update the tags of a solution. +Update the tags of a solution. .Description -update the tags of a solution. +Update the tags of a solution. .Example Update-AzMonitorLogAnalyticsSolution -ResourceGroupName lucas-manual-test -Name 'Containers(monitoringworkspace-2vob7n)' -Tag @{'Operation'='update';'Param'='Tag'} .Example @@ -148,8 +148,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/MonitoringSolutions/MonitoringSolutions.Autorest/generated/api/Models/ManagementConfiguration.cs b/generated/MonitoringSolutions/MonitoringSolutions.Autorest/generated/api/Models/ManagementConfiguration.cs index 0dd45fd1b684..888d51fe652e 100644 --- a/generated/MonitoringSolutions/MonitoringSolutions.Autorest/generated/api/Models/ManagementConfiguration.cs +++ b/generated/MonitoringSolutions/MonitoringSolutions.Autorest/generated/api/Models/ManagementConfiguration.cs @@ -41,7 +41,7 @@ public partial class ManagementConfiguration : Microsoft.Azure.PowerShell.Cmdlets.MonitoringSolutions.Models.IManagementConfigurationProperties Microsoft.Azure.PowerShell.Cmdlets.MonitoringSolutions.Models.IManagementConfigurationInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.MonitoringSolutions.Models.ManagementConfigurationProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.MonitoringSolutions.Models.IManagementConfigurationInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.MonitoringSolutions.Models.IManagementConfigurationPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.MonitoringSolutions.Models.IManagementConfigurationPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MonitoringSolutions.Models.IManagementConfigurationInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.MonitoringSolutions.Models.IManagementConfigurationPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.MonitoringSolutions.Models.IManagementConfigurationPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.MonitoringSolutions.Models.IManagementConfigurationInternal.Type { get => this._type; set { {_type = value;} } } diff --git a/generated/MonitoringSolutions/MonitoringSolutions.Autorest/generated/api/Models/Solution.cs b/generated/MonitoringSolutions/MonitoringSolutions.Autorest/generated/api/Models/Solution.cs index 2c244a209cdc..ca90e4fa0938 100644 --- a/generated/MonitoringSolutions/MonitoringSolutions.Autorest/generated/api/Models/Solution.cs +++ b/generated/MonitoringSolutions/MonitoringSolutions.Autorest/generated/api/Models/Solution.cs @@ -50,7 +50,7 @@ public partial class Solution : Microsoft.Azure.PowerShell.Cmdlets.MonitoringSolutions.Models.ISolutionProperties Microsoft.Azure.PowerShell.Cmdlets.MonitoringSolutions.Models.ISolutionInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.MonitoringSolutions.Models.SolutionProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.MonitoringSolutions.Models.ISolutionInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.MonitoringSolutions.Models.ISolutionPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.MonitoringSolutions.Models.ISolutionPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MonitoringSolutions.Models.ISolutionInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.MonitoringSolutions.Models.ISolutionPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.MonitoringSolutions.Models.ISolutionPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.MonitoringSolutions.Models.ISolutionInternal.Type { get => this._type; set { {_type = value;} } } diff --git a/generated/MonitoringSolutions/MonitoringSolutions.Autorest/generated/cmdlets/RemoveAzMonitorLogAnalyticsSolution_Delete.cs b/generated/MonitoringSolutions/MonitoringSolutions.Autorest/generated/cmdlets/RemoveAzMonitorLogAnalyticsSolution_Delete.cs index 73486d96d7c9..98c27ba4319c 100644 --- a/generated/MonitoringSolutions/MonitoringSolutions.Autorest/generated/cmdlets/RemoveAzMonitorLogAnalyticsSolution_Delete.cs +++ b/generated/MonitoringSolutions/MonitoringSolutions.Autorest/generated/cmdlets/RemoveAzMonitorLogAnalyticsSolution_Delete.cs @@ -488,7 +488,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/MonitoringSolutions/MonitoringSolutions.Autorest/generated/cmdlets/RemoveAzMonitorLogAnalyticsSolution_DeleteViaIdentity.cs b/generated/MonitoringSolutions/MonitoringSolutions.Autorest/generated/cmdlets/RemoveAzMonitorLogAnalyticsSolution_DeleteViaIdentity.cs index d5b6dc4aa769..bcb5586b2808 100644 --- a/generated/MonitoringSolutions/MonitoringSolutions.Autorest/generated/cmdlets/RemoveAzMonitorLogAnalyticsSolution_DeleteViaIdentity.cs +++ b/generated/MonitoringSolutions/MonitoringSolutions.Autorest/generated/cmdlets/RemoveAzMonitorLogAnalyticsSolution_DeleteViaIdentity.cs @@ -465,7 +465,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/MonitoringSolutions/MonitoringSolutions.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/MonitoringSolutions/MonitoringSolutions.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs index b6e001f9cd25..8bff16c1ebd5 100644 --- a/generated/MonitoringSolutions/MonitoringSolutions.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/generated/MonitoringSolutions/MonitoringSolutions.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs @@ -36,14 +36,23 @@ internal class PsHelpInfo public object Role { get; } public string NonTerminatingErrors { get; } + public static string CapitalizeFirstLetter(string text) + { + if (string.IsNullOrEmpty(text)) + return text; + + return char.ToUpper(text[0]) + text.Substring(1); + } + public PsHelpInfo(PSObject helpObject = null) { helpObject = helpObject ?? new PSObject(); CmdletName = helpObject.GetProperty("Name").NullIfEmpty() ?? helpObject.GetNestedProperty("details", "name"); ModuleName = helpObject.GetProperty("ModuleName"); - Synopsis = helpObject.GetProperty("Synopsis"); + Synopsis = CapitalizeFirstLetter(helpObject.GetProperty("Synopsis")); Description = helpObject.GetProperty("description").EmptyIfNull().ToDescriptionText().NullIfEmpty() ?? helpObject.GetNestedProperty("details", "description").EmptyIfNull().ToDescriptionText(); + Description = CapitalizeFirstLetter(Description); AlertText = helpObject.GetNestedProperty("alertSet", "alert").EmptyIfNull().ToDescriptionText(); Category = helpObject.GetProperty("Category"); HasCommonParameters = helpObject.GetProperty("CommonParameters").ToNullableBool(); diff --git a/generated/MonitoringSolutions/MonitoringSolutions.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/MonitoringSolutions/MonitoringSolutions.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 11f88c6856e7..bdc14c916a57 100644 --- a/generated/MonitoringSolutions/MonitoringSolutions.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/MonitoringSolutions/MonitoringSolutions.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -218,13 +218,12 @@ public string GetProcessCustomAttributesAtRuntime() private string GetLoginVerification() { - if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) + if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) { return $@" {Indent}{Indent}$context = Get-AzContext {Indent}{Indent}if (-not $context -and -not $testPlayback) {{ -{Indent}{Indent}{Indent}Write-Error ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" -{Indent}{Indent}{Indent}exit +{Indent}{Indent}{Indent}throw ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" {Indent}{Indent}}} "; } diff --git a/generated/MonitoringSolutions/MonitoringSolutions.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/MonitoringSolutions/MonitoringSolutions.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs index 194cde19a67c..1549538ceb8a 100644 --- a/generated/MonitoringSolutions/MonitoringSolutions.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/generated/MonitoringSolutions/MonitoringSolutions.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs @@ -392,6 +392,7 @@ public CommentInfo(VariantGroup variantGroup) var helpInfo = variantGroup.HelpInfo; Description = variantGroup.Variants.SelectMany(v => v.Attributes).OfType().FirstOrDefault()?.Description.NullIfEmpty() ?? helpInfo.Description.EmptyIfNull(); + Description = PsHelpInfo.CapitalizeFirstLetter(Description); // If there is no Synopsis, PowerShell may put in the Syntax string as the Synopsis. This seems unintended, so we remove the Synopsis in this situation. var synopsis = helpInfo.Synopsis.EmptyIfNull().Trim().StartsWith(variantGroup.CmdletName) ? String.Empty : helpInfo.Synopsis; Synopsis = synopsis.NullIfEmpty() ?? Description; diff --git a/generated/MonitoringSolutions/MonitoringSolutions.Autorest/generated/runtime/Context.cs b/generated/MonitoringSolutions/MonitoringSolutions.Autorest/generated/runtime/Context.cs index db2e8aa27cc5..f8c6def3c6ad 100644 --- a/generated/MonitoringSolutions/MonitoringSolutions.Autorest/generated/runtime/Context.cs +++ b/generated/MonitoringSolutions/MonitoringSolutions.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MonitoringSolutions.Runtime /// The IContext Interface defines the communication mechanism for input customization. /// /// - /// In the context, we will have client, pipeline, PSBoundParamters, default EventListener, Cancellation. + /// In the context, we will have client, pipeline, PSBoundParameters, default EventListener, Cancellation. /// public interface IContext { diff --git a/generated/MonitoringSolutions/MonitoringSolutions.Autorest/generated/runtime/MessageAttribute.cs b/generated/MonitoringSolutions/MonitoringSolutions.Autorest/generated/runtime/MessageAttribute.cs index a5052402c858..73fa93081f6e 100644 --- a/generated/MonitoringSolutions/MonitoringSolutions.Autorest/generated/runtime/MessageAttribute.cs +++ b/generated/MonitoringSolutions/MonitoringSolutions.Autorest/generated/runtime/MessageAttribute.cs @@ -16,9 +16,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MonitoringSolutions.Runtime public class GenericBreakingChangeAttribute : Attribute { private string _message; - //A dexcription of what the change is about, non mandatory + //A description of what the change is about, non mandatory public string ChangeDescription { get; set; } = null; + //Name of the module that is being deprecated + public string moduleName { get; set; } = String.IsNullOrEmpty(@"") ? @"Az.MonitoringSolutions" : @""; + //The version the change is effective from, non mandatory public string DeprecateByVersion { get; } public string DeprecateByAzVersion { get; } @@ -82,7 +85,7 @@ public void PrintCustomAttributeInfo(Action writeOutput) } writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByAzVersion, this.DeprecateByAzVersion)); - writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.DeprecateByVersion)); + writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.moduleName, this.DeprecateByVersion)); if (OldWay != null && NewWay != null) { @@ -191,11 +194,11 @@ public PreviewMessageAttribute(string message, string estimatedDateOfGa) : this( this.IsEstimatedGaDateSet = true; } } - + public void PrintCustomAttributeInfo(Action writeOutput) { writeOutput(this._message); - + if (IsEstimatedGaDateSet) { writeOutput(string.Format(Resources.PreviewCmdletETAMessage, this.EstimatedGaDate.ToShortDateString())); diff --git a/generated/MonitoringSolutions/MonitoringSolutions.Autorest/generated/runtime/Properties/Resources.resx b/generated/MonitoringSolutions/MonitoringSolutions.Autorest/generated/runtime/Properties/Resources.resx index a08a2e50172b..4ef90b70573d 100644 --- a/generated/MonitoringSolutions/MonitoringSolutions.Autorest/generated/runtime/Properties/Resources.resx +++ b/generated/MonitoringSolutions/MonitoringSolutions.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 version : '{0}' +- The change is expected to take effect in '{0}' from version : '{1}' ```powershell diff --git a/generated/MonitoringSolutions/MonitoringSolutions.Autorest/internal/New-AzMonitorLogAnalyticsSolution.ps1 b/generated/MonitoringSolutions/MonitoringSolutions.Autorest/internal/New-AzMonitorLogAnalyticsSolution.ps1 index 548c5af2cc01..6ac3ca5d702e 100644 --- a/generated/MonitoringSolutions/MonitoringSolutions.Autorest/internal/New-AzMonitorLogAnalyticsSolution.ps1 +++ b/generated/MonitoringSolutions/MonitoringSolutions.Autorest/internal/New-AzMonitorLogAnalyticsSolution.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create the Solution. +Create the Solution. .Description -create the Solution. +Create the Solution. .Example $workspace = Get-AzOperationalInsightsWorkspace -ResourceGroupName azureps-manual-test -Name monitoringworkspace-2vob7n New-AzMonitorLogAnalyticsSolution -Type Containers -ResourceGroupName azureps-manual-test -Location $workspace.Location -WorkspaceResourceId $workspace.ResourceId diff --git a/generated/MonitoringSolutions/MonitoringSolutions.Autorest/internal/ProxyCmdletDefinitions.ps1 b/generated/MonitoringSolutions/MonitoringSolutions.Autorest/internal/ProxyCmdletDefinitions.ps1 index d05c50e2c9e8..ff7556c0ec32 100644 --- a/generated/MonitoringSolutions/MonitoringSolutions.Autorest/internal/ProxyCmdletDefinitions.ps1 +++ b/generated/MonitoringSolutions/MonitoringSolutions.Autorest/internal/ProxyCmdletDefinitions.ps1 @@ -132,9 +132,9 @@ end { <# .Synopsis -create the Solution. +Create the Solution. .Description -create the Solution. +Create the Solution. .Example $workspace = Get-AzOperationalInsightsWorkspace -ResourceGroupName azureps-manual-test -Name monitoringworkspace-2vob7n New-AzMonitorLogAnalyticsSolution -Type Containers -ResourceGroupName azureps-manual-test -Location $workspace.Location -WorkspaceResourceId $workspace.ResourceId diff --git a/generated/NeonPostgres/NeonPostgres.Autorest/exports/Get-AzNeonPostgresBranch.ps1 b/generated/NeonPostgres/NeonPostgres.Autorest/exports/Get-AzNeonPostgresBranch.ps1 index 06b89b662386..353a88886943 100644 --- a/generated/NeonPostgres/NeonPostgres.Autorest/exports/Get-AzNeonPostgresBranch.ps1 +++ b/generated/NeonPostgres/NeonPostgres.Autorest/exports/Get-AzNeonPostgresBranch.ps1 @@ -184,8 +184,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NeonPostgres/NeonPostgres.Autorest/exports/Get-AzNeonPostgresCompute.ps1 b/generated/NeonPostgres/NeonPostgres.Autorest/exports/Get-AzNeonPostgresCompute.ps1 index ec8169e825e9..c4d143d1ce33 100644 --- a/generated/NeonPostgres/NeonPostgres.Autorest/exports/Get-AzNeonPostgresCompute.ps1 +++ b/generated/NeonPostgres/NeonPostgres.Autorest/exports/Get-AzNeonPostgresCompute.ps1 @@ -126,8 +126,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NeonPostgres/NeonPostgres.Autorest/exports/Get-AzNeonPostgresEndpoint.ps1 b/generated/NeonPostgres/NeonPostgres.Autorest/exports/Get-AzNeonPostgresEndpoint.ps1 index fb55d350924d..678f3dfffafb 100644 --- a/generated/NeonPostgres/NeonPostgres.Autorest/exports/Get-AzNeonPostgresEndpoint.ps1 +++ b/generated/NeonPostgres/NeonPostgres.Autorest/exports/Get-AzNeonPostgresEndpoint.ps1 @@ -126,8 +126,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NeonPostgres/NeonPostgres.Autorest/exports/Get-AzNeonPostgresNeonDatabase.ps1 b/generated/NeonPostgres/NeonPostgres.Autorest/exports/Get-AzNeonPostgresNeonDatabase.ps1 index 4cd504f2e7a4..7a80abce5bbd 100644 --- a/generated/NeonPostgres/NeonPostgres.Autorest/exports/Get-AzNeonPostgresNeonDatabase.ps1 +++ b/generated/NeonPostgres/NeonPostgres.Autorest/exports/Get-AzNeonPostgresNeonDatabase.ps1 @@ -126,8 +126,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NeonPostgres/NeonPostgres.Autorest/exports/Get-AzNeonPostgresNeonRole.ps1 b/generated/NeonPostgres/NeonPostgres.Autorest/exports/Get-AzNeonPostgresNeonRole.ps1 index 374dbd9b1438..a07f929bacf7 100644 --- a/generated/NeonPostgres/NeonPostgres.Autorest/exports/Get-AzNeonPostgresNeonRole.ps1 +++ b/generated/NeonPostgres/NeonPostgres.Autorest/exports/Get-AzNeonPostgresNeonRole.ps1 @@ -126,8 +126,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NeonPostgres/NeonPostgres.Autorest/exports/Get-AzNeonPostgresOrganization.ps1 b/generated/NeonPostgres/NeonPostgres.Autorest/exports/Get-AzNeonPostgresOrganization.ps1 index 7eb7cafcb6f1..579ace881335 100644 --- a/generated/NeonPostgres/NeonPostgres.Autorest/exports/Get-AzNeonPostgresOrganization.ps1 +++ b/generated/NeonPostgres/NeonPostgres.Autorest/exports/Get-AzNeonPostgresOrganization.ps1 @@ -138,8 +138,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NeonPostgres/NeonPostgres.Autorest/exports/Get-AzNeonPostgresProject.ps1 b/generated/NeonPostgres/NeonPostgres.Autorest/exports/Get-AzNeonPostgresProject.ps1 index 934dbc207dcd..36b5e350e902 100644 --- a/generated/NeonPostgres/NeonPostgres.Autorest/exports/Get-AzNeonPostgresProject.ps1 +++ b/generated/NeonPostgres/NeonPostgres.Autorest/exports/Get-AzNeonPostgresProject.ps1 @@ -161,8 +161,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NeonPostgres/NeonPostgres.Autorest/exports/Get-AzNeonPostgresProjectConnectionUri.ps1 b/generated/NeonPostgres/NeonPostgres.Autorest/exports/Get-AzNeonPostgresProjectConnectionUri.ps1 index a40f7e4e2aa8..80f76f3c2359 100644 --- a/generated/NeonPostgres/NeonPostgres.Autorest/exports/Get-AzNeonPostgresProjectConnectionUri.ps1 +++ b/generated/NeonPostgres/NeonPostgres.Autorest/exports/Get-AzNeonPostgresProjectConnectionUri.ps1 @@ -248,8 +248,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NeonPostgres/NeonPostgres.Autorest/exports/New-AzNeonPostgresBranch.ps1 b/generated/NeonPostgres/NeonPostgres.Autorest/exports/New-AzNeonPostgresBranch.ps1 index 7b972b70d953..a41ab8d243c5 100644 --- a/generated/NeonPostgres/NeonPostgres.Autorest/exports/New-AzNeonPostgresBranch.ps1 +++ b/generated/NeonPostgres/NeonPostgres.Autorest/exports/New-AzNeonPostgresBranch.ps1 @@ -243,8 +243,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NeonPostgres/NeonPostgres.Autorest/exports/New-AzNeonPostgresOrganization.ps1 b/generated/NeonPostgres/NeonPostgres.Autorest/exports/New-AzNeonPostgresOrganization.ps1 index b19e9840c291..b9de8380ab01 100644 --- a/generated/NeonPostgres/NeonPostgres.Autorest/exports/New-AzNeonPostgresOrganization.ps1 +++ b/generated/NeonPostgres/NeonPostgres.Autorest/exports/New-AzNeonPostgresOrganization.ps1 @@ -353,8 +353,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NeonPostgres/NeonPostgres.Autorest/exports/New-AzNeonPostgresProject.ps1 b/generated/NeonPostgres/NeonPostgres.Autorest/exports/New-AzNeonPostgresProject.ps1 index 64a508288627..15c3ed7b0609 100644 --- a/generated/NeonPostgres/NeonPostgres.Autorest/exports/New-AzNeonPostgresProject.ps1 +++ b/generated/NeonPostgres/NeonPostgres.Autorest/exports/New-AzNeonPostgresProject.ps1 @@ -337,8 +337,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NeonPostgres/NeonPostgres.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/NeonPostgres/NeonPostgres.Autorest/exports/ProxyCmdletDefinitions.ps1 index d09a4b3389b1..cc8fa31a1ab2 100644 --- a/generated/NeonPostgres/NeonPostgres.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/NeonPostgres/NeonPostgres.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -184,8 +184,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -384,8 +383,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -580,8 +578,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -776,8 +773,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -972,8 +968,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1180,8 +1175,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1501,8 +1495,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1739,8 +1732,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2055,8 +2047,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2480,8 +2471,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2889,8 +2879,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3145,8 +3134,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3371,8 +3359,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3604,8 +3591,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3954,8 +3940,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4442,8 +4427,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4871,8 +4855,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NeonPostgres/NeonPostgres.Autorest/exports/Remove-AzNeonPostgresBranch.ps1 b/generated/NeonPostgres/NeonPostgres.Autorest/exports/Remove-AzNeonPostgresBranch.ps1 index df276237df8f..6af8f7c2da08 100644 --- a/generated/NeonPostgres/NeonPostgres.Autorest/exports/Remove-AzNeonPostgresBranch.ps1 +++ b/generated/NeonPostgres/NeonPostgres.Autorest/exports/Remove-AzNeonPostgresBranch.ps1 @@ -184,8 +184,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NeonPostgres/NeonPostgres.Autorest/exports/Remove-AzNeonPostgresOrganization.ps1 b/generated/NeonPostgres/NeonPostgres.Autorest/exports/Remove-AzNeonPostgresOrganization.ps1 index adcf9e69aa77..57a3b7ca3976 100644 --- a/generated/NeonPostgres/NeonPostgres.Autorest/exports/Remove-AzNeonPostgresOrganization.ps1 +++ b/generated/NeonPostgres/NeonPostgres.Autorest/exports/Remove-AzNeonPostgresOrganization.ps1 @@ -153,8 +153,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NeonPostgres/NeonPostgres.Autorest/exports/Remove-AzNeonPostgresProject.ps1 b/generated/NeonPostgres/NeonPostgres.Autorest/exports/Remove-AzNeonPostgresProject.ps1 index 76dd8d7bc66f..a6da564f0fb0 100644 --- a/generated/NeonPostgres/NeonPostgres.Autorest/exports/Remove-AzNeonPostgresProject.ps1 +++ b/generated/NeonPostgres/NeonPostgres.Autorest/exports/Remove-AzNeonPostgresProject.ps1 @@ -162,8 +162,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NeonPostgres/NeonPostgres.Autorest/exports/Update-AzNeonPostgresBranch.ps1 b/generated/NeonPostgres/NeonPostgres.Autorest/exports/Update-AzNeonPostgresBranch.ps1 index 27240a22c6f0..65d3e332d747 100644 --- a/generated/NeonPostgres/NeonPostgres.Autorest/exports/Update-AzNeonPostgresBranch.ps1 +++ b/generated/NeonPostgres/NeonPostgres.Autorest/exports/Update-AzNeonPostgresBranch.ps1 @@ -278,8 +278,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NeonPostgres/NeonPostgres.Autorest/exports/Update-AzNeonPostgresOrganization.ps1 b/generated/NeonPostgres/NeonPostgres.Autorest/exports/Update-AzNeonPostgresOrganization.ps1 index 72b17460280b..62809e866652 100644 --- a/generated/NeonPostgres/NeonPostgres.Autorest/exports/Update-AzNeonPostgresOrganization.ps1 +++ b/generated/NeonPostgres/NeonPostgres.Autorest/exports/Update-AzNeonPostgresOrganization.ps1 @@ -415,8 +415,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NeonPostgres/NeonPostgres.Autorest/exports/Update-AzNeonPostgresProject.ps1 b/generated/NeonPostgres/NeonPostgres.Autorest/exports/Update-AzNeonPostgresProject.ps1 index 76a00c3acf21..0131ed28ee8f 100644 --- a/generated/NeonPostgres/NeonPostgres.Autorest/exports/Update-AzNeonPostgresProject.ps1 +++ b/generated/NeonPostgres/NeonPostgres.Autorest/exports/Update-AzNeonPostgresProject.ps1 @@ -356,8 +356,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/NewAzNeonPostgresBranch_CreateExpanded.cs b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/NewAzNeonPostgresBranch_CreateExpanded.cs index 75aafa359600..1fdb26611357 100644 --- a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/NewAzNeonPostgresBranch_CreateExpanded.cs +++ b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/NewAzNeonPostgresBranch_CreateExpanded.cs @@ -40,18 +40,9 @@ public partial class NewAzNeonPostgresBranch_CreateExpanded : global::System.Man /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// The Branch resource type. private Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Models.IBranch _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Models.Branch(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.NeonPostgres.Category(global::Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.ParameterCategory.Runtime)] @@ -383,11 +374,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Cmdlets.NewAzNeonPostgres /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -703,24 +689,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Models.IBranch var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/NewAzNeonPostgresBranch_CreateViaJsonFilePath.cs b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/NewAzNeonPostgresBranch_CreateViaJsonFilePath.cs index 55ea4eade831..667a9309bd2c 100644 --- a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/NewAzNeonPostgresBranch_CreateViaJsonFilePath.cs +++ b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/NewAzNeonPostgresBranch_CreateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class NewAzNeonPostgresBranch_CreateViaJsonFilePath : global::Sys /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.NeonPostgres.Category(global::Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.ParameterCategory.Runtime)] @@ -293,11 +284,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Cmdlets.NewAzNeonPostgres /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -613,24 +599,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Models.IBranch var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/NewAzNeonPostgresBranch_CreateViaJsonString.cs b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/NewAzNeonPostgresBranch_CreateViaJsonString.cs index 43c96862cf86..47db2936aeef 100644 --- a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/NewAzNeonPostgresBranch_CreateViaJsonString.cs +++ b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/NewAzNeonPostgresBranch_CreateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class NewAzNeonPostgresBranch_CreateViaJsonString : global::Syste /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.NeonPostgres.Category(global::Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.ParameterCategory.Runtime)] @@ -291,11 +282,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Cmdlets.NewAzNeonPostgres /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -611,24 +597,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Models.IBranch var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/NewAzNeonPostgresOrganization_CreateExpanded.cs b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/NewAzNeonPostgresOrganization_CreateExpanded.cs index a02ede014c76..cf75999871df 100644 --- a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/NewAzNeonPostgresOrganization_CreateExpanded.cs +++ b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/NewAzNeonPostgresOrganization_CreateExpanded.cs @@ -40,18 +40,9 @@ public partial class NewAzNeonPostgresOrganization_CreateExpanded : global::Syst /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Organization Resource by Neon private Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Models.IOrganizationResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Models.OrganizationResource(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.NeonPostgres.Category(global::Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.ParameterCategory.Runtime)] @@ -562,11 +553,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Cmdlets.NewAzNeonPostgres /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -882,24 +868,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Models.IOrganizationResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/NewAzNeonPostgresOrganization_CreateViaJsonFilePath.cs b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/NewAzNeonPostgresOrganization_CreateViaJsonFilePath.cs index 9fceae7afda7..367b38cad811 100644 --- a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/NewAzNeonPostgresOrganization_CreateViaJsonFilePath.cs +++ b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/NewAzNeonPostgresOrganization_CreateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class NewAzNeonPostgresOrganization_CreateViaJsonFilePath : globa /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.NeonPostgres.Category(global::Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.ParameterCategory.Runtime)] @@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Cmdlets.NewAzNeonPostgres /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -583,24 +569,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Models.IOrganizationResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/NewAzNeonPostgresOrganization_CreateViaJsonString.cs b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/NewAzNeonPostgresOrganization_CreateViaJsonString.cs index c876cdf02937..6fce9a28e42a 100644 --- a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/NewAzNeonPostgresOrganization_CreateViaJsonString.cs +++ b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/NewAzNeonPostgresOrganization_CreateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class NewAzNeonPostgresOrganization_CreateViaJsonString : global: /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.NeonPostgres.Category(global::Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Cmdlets.NewAzNeonPostgres /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -581,24 +567,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Models.IOrganizationResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/NewAzNeonPostgresProject_CreateExpanded.cs b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/NewAzNeonPostgresProject_CreateExpanded.cs index 7e65efe3e4ab..3bd9bcf23970 100644 --- a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/NewAzNeonPostgresProject_CreateExpanded.cs +++ b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/NewAzNeonPostgresProject_CreateExpanded.cs @@ -40,18 +40,9 @@ public partial class NewAzNeonPostgresProject_CreateExpanded : global::System.Ma /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// The Project resource type. private Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Models.IProject _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Models.Project(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.NeonPostgres.Category(global::Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.ParameterCategory.Runtime)] @@ -493,11 +484,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Cmdlets.NewAzNeonPostgres /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -813,24 +799,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Models.IProject var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/NewAzNeonPostgresProject_CreateViaJsonFilePath.cs b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/NewAzNeonPostgresProject_CreateViaJsonFilePath.cs index 30f5e81b504a..e0b84f02e8cc 100644 --- a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/NewAzNeonPostgresProject_CreateViaJsonFilePath.cs +++ b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/NewAzNeonPostgresProject_CreateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class NewAzNeonPostgresProject_CreateViaJsonFilePath : global::Sy /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.NeonPostgres.Category(global::Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.ParameterCategory.Runtime)] @@ -278,11 +269,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Cmdlets.NewAzNeonPostgres /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -598,24 +584,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Models.IProject var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/NewAzNeonPostgresProject_CreateViaJsonString.cs b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/NewAzNeonPostgresProject_CreateViaJsonString.cs index 97d147973a6e..542f8dae3080 100644 --- a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/NewAzNeonPostgresProject_CreateViaJsonString.cs +++ b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/NewAzNeonPostgresProject_CreateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class NewAzNeonPostgresProject_CreateViaJsonString : global::Syst /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.NeonPostgres.Category(global::Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.ParameterCategory.Runtime)] @@ -276,11 +267,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Cmdlets.NewAzNeonPostgres /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -596,24 +582,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Models.IProject var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/RemoveAzNeonPostgresBranch_Delete.cs b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/RemoveAzNeonPostgresBranch_Delete.cs index c6ded8f17e25..aa963289ae87 100644 --- a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/RemoveAzNeonPostgresBranch_Delete.cs +++ b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/RemoveAzNeonPostgresBranch_Delete.cs @@ -523,7 +523,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -547,7 +547,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/RemoveAzNeonPostgresBranch_DeleteViaIdentity.cs b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/RemoveAzNeonPostgresBranch_DeleteViaIdentity.cs index da1e1655d82d..ed854b4a0c67 100644 --- a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/RemoveAzNeonPostgresBranch_DeleteViaIdentity.cs +++ b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/RemoveAzNeonPostgresBranch_DeleteViaIdentity.cs @@ -483,7 +483,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -507,7 +507,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/RemoveAzNeonPostgresBranch_DeleteViaIdentityOrganization.cs b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/RemoveAzNeonPostgresBranch_DeleteViaIdentityOrganization.cs index 89aa3375c6d8..bcef2d041402 100644 --- a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/RemoveAzNeonPostgresBranch_DeleteViaIdentityOrganization.cs +++ b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/RemoveAzNeonPostgresBranch_DeleteViaIdentityOrganization.cs @@ -505,7 +505,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -529,7 +529,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/RemoveAzNeonPostgresBranch_DeleteViaIdentityProject.cs b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/RemoveAzNeonPostgresBranch_DeleteViaIdentityProject.cs index 94950c7e080d..7b3c2e332764 100644 --- a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/RemoveAzNeonPostgresBranch_DeleteViaIdentityProject.cs +++ b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/RemoveAzNeonPostgresBranch_DeleteViaIdentityProject.cs @@ -495,7 +495,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -519,7 +519,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/RemoveAzNeonPostgresOrganization_Delete.cs b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/RemoveAzNeonPostgresOrganization_Delete.cs index d6566a91df51..cac6ea843bf8 100644 --- a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/RemoveAzNeonPostgresOrganization_Delete.cs +++ b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/RemoveAzNeonPostgresOrganization_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzNeonPostgresOrganization_Delete : global::System.Ma /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.NeonPostgres.Category(global::Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Cmdlets.RemoveAzNeonPostg /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -577,7 +563,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -601,7 +587,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/RemoveAzNeonPostgresOrganization_DeleteViaIdentity.cs b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/RemoveAzNeonPostgresOrganization_DeleteViaIdentity.cs index de324fad85a9..8e32d66b9249 100644 --- a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/RemoveAzNeonPostgresOrganization_DeleteViaIdentity.cs +++ b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/RemoveAzNeonPostgresOrganization_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzNeonPostgresOrganization_DeleteViaIdentity : global /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.NeonPostgres.Category(global::Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Cmdlets.RemoveAzNeonPostg /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -554,7 +540,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -578,7 +564,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/RemoveAzNeonPostgresProject_Delete.cs b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/RemoveAzNeonPostgresProject_Delete.cs index 81d4ec2b8664..e755101216d5 100644 --- a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/RemoveAzNeonPostgresProject_Delete.cs +++ b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/RemoveAzNeonPostgresProject_Delete.cs @@ -509,7 +509,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -533,7 +533,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/RemoveAzNeonPostgresProject_DeleteViaIdentity.cs b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/RemoveAzNeonPostgresProject_DeleteViaIdentity.cs index e36267775f38..ef8739d127d6 100644 --- a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/RemoveAzNeonPostgresProject_DeleteViaIdentity.cs +++ b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/RemoveAzNeonPostgresProject_DeleteViaIdentity.cs @@ -479,7 +479,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -503,7 +503,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/RemoveAzNeonPostgresProject_DeleteViaIdentityOrganization.cs b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/RemoveAzNeonPostgresProject_DeleteViaIdentityOrganization.cs index 6608974c024e..c87aab775287 100644 --- a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/RemoveAzNeonPostgresProject_DeleteViaIdentityOrganization.cs +++ b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/RemoveAzNeonPostgresProject_DeleteViaIdentityOrganization.cs @@ -491,7 +491,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -515,7 +515,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/UpdateAzNeonPostgresBranch_UpdateExpanded.cs b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/UpdateAzNeonPostgresBranch_UpdateExpanded.cs index 5325d618fbb9..17d97a3c7501 100644 --- a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/UpdateAzNeonPostgresBranch_UpdateExpanded.cs +++ b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/UpdateAzNeonPostgresBranch_UpdateExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzNeonPostgresBranch_UpdateExpanded : global::System. /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// The Branch resource type. private Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Models.IBranch _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Models.Branch(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.NeonPostgres.Category(global::Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.ParameterCategory.Runtime)] @@ -383,11 +374,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Cmdlets.UpdateAzNeonPostg /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -745,24 +731,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Models.IBranch var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/UpdateAzNeonPostgresBranch_UpdateViaIdentityExpanded.cs b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/UpdateAzNeonPostgresBranch_UpdateViaIdentityExpanded.cs index 4f7dd3fa5229..4899179e352d 100644 --- a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/UpdateAzNeonPostgresBranch_UpdateViaIdentityExpanded.cs +++ b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/UpdateAzNeonPostgresBranch_UpdateViaIdentityExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzNeonPostgresBranch_UpdateViaIdentityExpanded : glob /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// The Branch resource type. private Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Models.IBranch _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Models.Branch(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.NeonPostgres.Category(global::Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.ParameterCategory.Runtime)] @@ -310,11 +301,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Cmdlets.UpdateAzNeonPostg /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -702,24 +688,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Models.IBranch var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/UpdateAzNeonPostgresBranch_UpdateViaIdentityOrganizationExpanded.cs b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/UpdateAzNeonPostgresBranch_UpdateViaIdentityOrganizationExpanded.cs index 2e114bc9d96d..e5cf64f38dad 100644 --- a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/UpdateAzNeonPostgresBranch_UpdateViaIdentityOrganizationExpanded.cs +++ b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/UpdateAzNeonPostgresBranch_UpdateViaIdentityOrganizationExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzNeonPostgresBranch_UpdateViaIdentityOrganizationExp /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// The Branch resource type. private Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Models.IBranch _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Models.Branch(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.NeonPostgres.Category(global::Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.ParameterCategory.Runtime)] @@ -343,11 +334,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Cmdlets.UpdateAzNeonPostg /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -729,24 +715,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Models.IBranch var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/UpdateAzNeonPostgresBranch_UpdateViaIdentityProjectExpanded.cs b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/UpdateAzNeonPostgresBranch_UpdateViaIdentityProjectExpanded.cs index ea566f15ea37..e8aa648d7856 100644 --- a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/UpdateAzNeonPostgresBranch_UpdateViaIdentityProjectExpanded.cs +++ b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/UpdateAzNeonPostgresBranch_UpdateViaIdentityProjectExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzNeonPostgresBranch_UpdateViaIdentityProjectExpanded /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// The Branch resource type. private Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Models.IBranch _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Models.Branch(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.NeonPostgres.Category(global::Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.ParameterCategory.Runtime)] @@ -328,11 +319,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Cmdlets.UpdateAzNeonPostg /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -717,24 +703,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Models.IBranch var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/UpdateAzNeonPostgresOrganization_UpdateExpanded.cs b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/UpdateAzNeonPostgresOrganization_UpdateExpanded.cs index ad17b132b851..0247afded3fe 100644 --- a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/UpdateAzNeonPostgresOrganization_UpdateExpanded.cs +++ b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/UpdateAzNeonPostgresOrganization_UpdateExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzNeonPostgresOrganization_UpdateExpanded : global::S /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Organization Resource by Neon private Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Models.IOrganizationResourceUpdate _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Models.OrganizationResourceUpdate(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.NeonPostgres.Category(global::Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.ParameterCategory.Runtime)] @@ -551,11 +542,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Cmdlets.UpdateAzNeonPostg /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -871,24 +857,7 @@ public UpdateAzNeonPostgresOrganization_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Models.IOrganizationResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/UpdateAzNeonPostgresOrganization_UpdateViaIdentityExpanded.cs b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/UpdateAzNeonPostgresOrganization_UpdateViaIdentityExpanded.cs index 1ef09ad8aac7..8f116529e2e6 100644 --- a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/UpdateAzNeonPostgresOrganization_UpdateViaIdentityExpanded.cs +++ b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/UpdateAzNeonPostgresOrganization_UpdateViaIdentityExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzNeonPostgresOrganization_UpdateViaIdentityExpanded /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Organization Resource by Neon private Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Models.IOrganizationResourceUpdate _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Models.OrganizationResourceUpdate(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.NeonPostgres.Category(global::Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.ParameterCategory.Runtime)] @@ -510,11 +501,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Cmdlets.UpdateAzNeonPostg /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -850,24 +836,7 @@ public UpdateAzNeonPostgresOrganization_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Models.IOrganizationResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/UpdateAzNeonPostgresOrganization_UpdateViaJsonFilePath.cs b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/UpdateAzNeonPostgresOrganization_UpdateViaJsonFilePath.cs index 31ca5fc821c5..6bac5b8c9f13 100644 --- a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/UpdateAzNeonPostgresOrganization_UpdateViaJsonFilePath.cs +++ b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/UpdateAzNeonPostgresOrganization_UpdateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class UpdateAzNeonPostgresOrganization_UpdateViaJsonFilePath : gl /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.NeonPostgres.Category(global::Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.ParameterCategory.Runtime)] @@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Cmdlets.UpdateAzNeonPostg /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -583,24 +569,7 @@ public UpdateAzNeonPostgresOrganization_UpdateViaJsonFilePath() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Models.IOrganizationResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/UpdateAzNeonPostgresOrganization_UpdateViaJsonString.cs b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/UpdateAzNeonPostgresOrganization_UpdateViaJsonString.cs index d110ab06e67d..8ba1536f958c 100644 --- a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/UpdateAzNeonPostgresOrganization_UpdateViaJsonString.cs +++ b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/UpdateAzNeonPostgresOrganization_UpdateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class UpdateAzNeonPostgresOrganization_UpdateViaJsonString : glob /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.NeonPostgres.Category(global::Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Cmdlets.UpdateAzNeonPostg /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -581,24 +567,7 @@ public UpdateAzNeonPostgresOrganization_UpdateViaJsonString() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Models.IOrganizationResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/UpdateAzNeonPostgresProject_UpdateExpanded.cs b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/UpdateAzNeonPostgresProject_UpdateExpanded.cs index ad6f30bb5571..8c52b4119541 100644 --- a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/UpdateAzNeonPostgresProject_UpdateExpanded.cs +++ b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/UpdateAzNeonPostgresProject_UpdateExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzNeonPostgresProject_UpdateExpanded : global::System /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// The Project resource type. private Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Models.IProject _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Models.Project(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.NeonPostgres.Category(global::Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.ParameterCategory.Runtime)] @@ -493,11 +484,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Cmdlets.UpdateAzNeonPostg /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -899,24 +885,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Models.IProject var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/UpdateAzNeonPostgresProject_UpdateViaIdentityExpanded.cs b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/UpdateAzNeonPostgresProject_UpdateViaIdentityExpanded.cs index 224d202eb710..c3834bf6ebd0 100644 --- a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/UpdateAzNeonPostgresProject_UpdateViaIdentityExpanded.cs +++ b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/UpdateAzNeonPostgresProject_UpdateViaIdentityExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzNeonPostgresProject_UpdateViaIdentityExpanded : glo /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// The Project resource type. private Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Models.IProject _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Models.Project(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.NeonPostgres.Category(global::Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.ParameterCategory.Runtime)] @@ -435,11 +426,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Cmdlets.UpdateAzNeonPostg /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -867,24 +853,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Models.IProject var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/UpdateAzNeonPostgresProject_UpdateViaIdentityOrganizationExpanded.cs b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/UpdateAzNeonPostgresProject_UpdateViaIdentityOrganizationExpanded.cs index 14d4103d155e..da1943eabf83 100644 --- a/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/UpdateAzNeonPostgresProject_UpdateViaIdentityOrganizationExpanded.cs +++ b/generated/NeonPostgres/NeonPostgres.Autorest/generated/cmdlets/UpdateAzNeonPostgresProject_UpdateViaIdentityOrganizationExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzNeonPostgresProject_UpdateViaIdentityOrganizationEx /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// The Project resource type. private Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Models.IProject _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Models.Project(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.NeonPostgres.Category(global::Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.ParameterCategory.Runtime)] @@ -453,11 +444,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Cmdlets.UpdateAzNeonPostg /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -883,24 +869,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Models.IProject var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/NeonPostgres/NeonPostgres.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/NeonPostgres/NeonPostgres.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 1eabf6e8ffae..a9a14cc5d612 100644 --- a/generated/NeonPostgres/NeonPostgres.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/NeonPostgres/NeonPostgres.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -218,13 +218,12 @@ public string GetProcessCustomAttributesAtRuntime() private string GetLoginVerification() { - if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) + if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) { return $@" {Indent}{Indent}$context = Get-AzContext {Indent}{Indent}if (-not $context -and -not $testPlayback) {{ -{Indent}{Indent}{Indent}Write-Error ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" -{Indent}{Indent}{Indent}exit +{Indent}{Indent}{Indent}throw ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" {Indent}{Indent}}} "; } diff --git a/generated/NeonPostgres/NeonPostgres.Autorest/generated/runtime/Context.cs b/generated/NeonPostgres/NeonPostgres.Autorest/generated/runtime/Context.cs index 8935ee6a2216..e20ebe7515f4 100644 --- a/generated/NeonPostgres/NeonPostgres.Autorest/generated/runtime/Context.cs +++ b/generated/NeonPostgres/NeonPostgres.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.NeonPostgres.Runtime /// The IContext Interface defines the communication mechanism for input customization. /// /// - /// In the context, we will have client, pipeline, PSBoundParamters, default EventListener, Cancellation. + /// In the context, we will have client, pipeline, PSBoundParameters, default EventListener, Cancellation. /// public interface IContext { diff --git a/src/HealthDataAIServices/HealthDataAIServices.Autorest/Properties/AssemblyInfo.cs b/src/HealthDataAIServices/HealthDataAIServices.Autorest/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..94cb0309278c --- /dev/null +++ b/src/HealthDataAIServices/HealthDataAIServices.Autorest/Properties/AssemblyInfo.cs @@ -0,0 +1,26 @@ +// 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. + +using System; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")] +[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] +[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] +[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - HealthDataAiServices")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] +[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/HealthDataAIServices/HealthDataAIServices.Autorest/docs/Az.HealthDataAIServices.md b/src/HealthDataAIServices/HealthDataAIServices.Autorest/docs/Az.HealthDataAIServices.md index 3b3f2659f0ce..c7ff2ec007aa 100644 --- a/src/HealthDataAIServices/HealthDataAIServices.Autorest/docs/Az.HealthDataAIServices.md +++ b/src/HealthDataAIServices/HealthDataAIServices.Autorest/docs/Az.HealthDataAIServices.md @@ -1,6 +1,6 @@ --- Module Name: Az.HealthDataAIServices -Module Guid: 38e4b21d-b436-4d83-a47b-d94a7d963dc2 +Module Guid: 45dd4ed8-e73f-4e05-a776-cb2837c63513 Download Help Link: https://learn.microsoft.com/powershell/module/az.healthdataaiservices Help Version: 1.0.0.0 Locale: en-US @@ -15,11 +15,11 @@ Microsoft Azure PowerShell: HealthDataAiServices cmdlets Get a DeidService ### [New-AzDeidService](New-AzDeidService.md) -create a DeidService +Create a DeidService ### [Remove-AzDeidService](Remove-AzDeidService.md) Delete a DeidService ### [Update-AzDeidService](Update-AzDeidService.md) -update a DeidService +Update a DeidService diff --git a/src/HealthDataAIServices/HealthDataAIServices.Autorest/docs/New-AzDeidService.md b/src/HealthDataAIServices/HealthDataAIServices.Autorest/docs/New-AzDeidService.md index 2b368da66d10..7dededbd0695 100644 --- a/src/HealthDataAIServices/HealthDataAIServices.Autorest/docs/New-AzDeidService.md +++ b/src/HealthDataAIServices/HealthDataAIServices.Autorest/docs/New-AzDeidService.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzDeidService ## SYNOPSIS -create a DeidService +Create a DeidService ## SYNTAX @@ -33,7 +33,7 @@ New-AzDeidService -Name -ResourceGroupName -JsonString [-EnableSystem ``` ## DESCRIPTION -update a DeidService +Update a DeidService ## EXAMPLES diff --git a/src/HealthDataAIServices/HealthDataAIServices/AutorestUpgradeLog.md b/src/HealthDataAIServices/HealthDataAIServices/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/HealthDataAIServices/HealthDataAIServices/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/HealthDataAIServices/HealthDataAIServices/ChangeLog.md b/src/HealthDataAIServices/HealthDataAIServices/ChangeLog.md index b1251aa1758e..517fd4350f5c 100644 --- a/src/HealthDataAIServices/HealthDataAIServices/ChangeLog.md +++ b/src/HealthDataAIServices/HealthDataAIServices/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 1.0.0 * General availability for module Az.HealthDataAIServices diff --git a/src/HealthcareApis/HealthcareApis.Autorest/Properties/AssemblyInfo.cs b/src/HealthcareApis/HealthcareApis.Autorest/Properties/AssemblyInfo.cs index 91d48d6b0592..fa049da1d6ae 100644 --- a/src/HealthcareApis/HealthcareApis.Autorest/Properties/AssemblyInfo.cs +++ b/src/HealthcareApis/HealthcareApis.Autorest/Properties/AssemblyInfo.cs @@ -20,7 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - HealthcareApis")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("2.1.1")] -[assembly: System.Reflection.AssemblyVersionAttribute("2.1.1")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/HealthcareApis/HealthcareApis.Autorest/docs/Az.HealthcareApis.md b/src/HealthcareApis/HealthcareApis.Autorest/docs/Az.HealthcareApis.md index c249c07415fc..43b423e05442 100644 --- a/src/HealthcareApis/HealthcareApis.Autorest/docs/Az.HealthcareApis.md +++ b/src/HealthcareApis/HealthcareApis.Autorest/docs/Az.HealthcareApis.md @@ -1,6 +1,6 @@ --- Module Name: Az.HealthcareApis -Module Guid: a8b4fff7-56f6-4856-9591-6a1af5bde964 +Module Guid: 83c7da6a-7d87-47b3-b4b6-7ab992d602f0 Download Help Link: https://learn.microsoft.com/powershell/module/az.healthcareapis Help Version: 1.0.0.0 Locale: en-US diff --git a/src/HealthcareApis/HealthcareApis.Autorest/docs/Update-AzHealthcareDicomService.md b/src/HealthcareApis/HealthcareApis.Autorest/docs/Update-AzHealthcareDicomService.md index c1802173e743..bc5bb3e313df 100644 --- a/src/HealthcareApis/HealthcareApis.Autorest/docs/Update-AzHealthcareDicomService.md +++ b/src/HealthcareApis/HealthcareApis.Autorest/docs/Update-AzHealthcareDicomService.md @@ -104,7 +104,7 @@ Accept wildcard characters: False Determines whether to enable a system-assigned identity for the resource. ```yaml -Type: System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] +Type: System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] Parameter Sets: (All) Aliases: diff --git a/src/HealthcareApis/HealthcareApis.Autorest/docs/Update-AzHealthcareFhirService.md b/src/HealthcareApis/HealthcareApis.Autorest/docs/Update-AzHealthcareFhirService.md index 7ff83f072929..50946f86dfaa 100644 --- a/src/HealthcareApis/HealthcareApis.Autorest/docs/Update-AzHealthcareFhirService.md +++ b/src/HealthcareApis/HealthcareApis.Autorest/docs/Update-AzHealthcareFhirService.md @@ -287,7 +287,7 @@ Accept wildcard characters: False Determines whether to enable a system-assigned identity for the resource. ```yaml -Type: System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] +Type: System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] Parameter Sets: (All) Aliases: diff --git a/src/HealthcareApis/HealthcareApis.Autorest/docs/Update-AzHealthcareIotConnector.md b/src/HealthcareApis/HealthcareApis.Autorest/docs/Update-AzHealthcareIotConnector.md index 97c6bdeba650..d6eb381e9cf0 100644 --- a/src/HealthcareApis/HealthcareApis.Autorest/docs/Update-AzHealthcareIotConnector.md +++ b/src/HealthcareApis/HealthcareApis.Autorest/docs/Update-AzHealthcareIotConnector.md @@ -128,7 +128,7 @@ Accept wildcard characters: False Determines whether to enable a system-assigned identity for the resource. ```yaml -Type: System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] +Type: System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] Parameter Sets: (All) Aliases: diff --git a/src/HealthcareApis/HealthcareApis/AutorestUpgradeLog.md b/src/HealthcareApis/HealthcareApis/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/HealthcareApis/HealthcareApis/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/HealthcareApis/HealthcareApis/ChangeLog.md b/src/HealthcareApis/HealthcareApis/ChangeLog.md index 040f98e4a764..48e0fe0a6832 100644 --- a/src/HealthcareApis/HealthcareApis/ChangeLog.md +++ b/src/HealthcareApis/HealthcareApis/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 3.0.0 * Improved user experience and consistency. This may introduce breaking changes. Please refer to [here](https://go.microsoft.com/fwlink/?linkid=2340249). diff --git a/src/ImageBuilder/ImageBuilder.Autorest/Properties/AssemblyInfo.cs b/src/ImageBuilder/ImageBuilder.Autorest/Properties/AssemblyInfo.cs index 598d7aa82131..c6be759f1f44 100644 --- a/src/ImageBuilder/ImageBuilder.Autorest/Properties/AssemblyInfo.cs +++ b/src/ImageBuilder/ImageBuilder.Autorest/Properties/AssemblyInfo.cs @@ -20,10 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - ImageBuilder")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("0.4.2")] -[assembly: System.Reflection.AssemblyVersionAttribute("0.4.2")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] - - - +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/ImageBuilder/ImageBuilder.Autorest/UX/Microsoft.VirtualMachineImages/imageTemplates.json b/src/ImageBuilder/ImageBuilder.Autorest/UX/Microsoft.VirtualMachineImages/imageTemplates.json index 9831a56d9dca..e6b48a0cd38f 100644 --- a/src/ImageBuilder/ImageBuilder.Autorest/UX/Microsoft.VirtualMachineImages/imageTemplates.json +++ b/src/ImageBuilder/ImageBuilder.Autorest/UX/Microsoft.VirtualMachineImages/imageTemplates.json @@ -83,7 +83,7 @@ }, { "name": "Start-AzImageBuilderTemplate", - "description": "run artifacts from a existing image template", + "description": "Run artifacts from a existing image template", "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}/run", "help": { "learnMore": { diff --git a/src/ImageBuilder/ImageBuilder.Autorest/docs/Az.ImageBuilder.md b/src/ImageBuilder/ImageBuilder.Autorest/docs/Az.ImageBuilder.md index 478ff95abd94..f9fdabf553b4 100644 --- a/src/ImageBuilder/ImageBuilder.Autorest/docs/Az.ImageBuilder.md +++ b/src/ImageBuilder/ImageBuilder.Autorest/docs/Az.ImageBuilder.md @@ -1,6 +1,6 @@ --- Module Name: Az.ImageBuilder -Module Guid: 39f42240-1342-4416-a544-0e2c46a1d6ac +Module Guid: f3000f47-d623-4616-82e4-c1620ec734f9 Download Help Link: https://learn.microsoft.com/powershell/module/az.imagebuilder Help Version: 1.0.0.0 Locale: en-US @@ -21,7 +21,7 @@ Get the specified run output for the specified image template resource Get the specified trigger for the specified image template resource ### [New-AzImageBuilderTemplate](New-AzImageBuilderTemplate.md) -create a virtual machine image template +Create a virtual machine image template ### [New-AzImageBuilderTemplateCustomizerObject](New-AzImageBuilderTemplateCustomizerObject.md) Create an in-memory object for ImageTemplateCustomizer. @@ -42,7 +42,7 @@ Create an in-memory object for ImageTemplateSource. Create an in-memory object for ImageTemplateValidator. ### [New-AzImageBuilderTrigger](New-AzImageBuilderTrigger.md) -create a trigger for the specified virtual machine image template +Create a trigger for the specified virtual machine image template ### [Remove-AzImageBuilderTemplate](Remove-AzImageBuilderTemplate.md) Delete a virtual machine image template @@ -51,7 +51,7 @@ Delete a virtual machine image template Delete a trigger for the specified virtual machine image template ### [Start-AzImageBuilderTemplate](Start-AzImageBuilderTemplate.md) -run artifacts from a existing image template +Run artifacts from a existing image template ### [Stop-AzImageBuilderTemplate](Stop-AzImageBuilderTemplate.md) Cancel the long running image build based on the image template diff --git a/src/ImageBuilder/ImageBuilder.Autorest/docs/New-AzImageBuilderTemplate.md b/src/ImageBuilder/ImageBuilder.Autorest/docs/New-AzImageBuilderTemplate.md index a9e586f36eff..0b43fe861ebe 100644 --- a/src/ImageBuilder/ImageBuilder.Autorest/docs/New-AzImageBuilderTemplate.md +++ b/src/ImageBuilder/ImageBuilder.Autorest/docs/New-AzImageBuilderTemplate.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzImageBuilderTemplate ## SYNOPSIS -create a virtual machine image template +Create a virtual machine image template ## SYNTAX @@ -39,7 +39,7 @@ New-AzImageBuilderTemplate -Name -ResourceGroupName -JsonStrin ``` ## DESCRIPTION -create a virtual machine image template +Create a virtual machine image template ## EXAMPLES diff --git a/src/ImageBuilder/ImageBuilder.Autorest/docs/New-AzImageBuilderTrigger.md b/src/ImageBuilder/ImageBuilder.Autorest/docs/New-AzImageBuilderTrigger.md index 5203b46a2d0d..0cc0f8db93ab 100644 --- a/src/ImageBuilder/ImageBuilder.Autorest/docs/New-AzImageBuilderTrigger.md +++ b/src/ImageBuilder/ImageBuilder.Autorest/docs/New-AzImageBuilderTrigger.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzImageBuilderTrigger ## SYNOPSIS -create a trigger for the specified virtual machine image template +Create a trigger for the specified virtual machine image template ## SYNTAX @@ -40,7 +40,7 @@ New-AzImageBuilderTrigger -ImageTemplateName -Name -ResourceGr ``` ## DESCRIPTION -create a trigger for the specified virtual machine image template +Create a trigger for the specified virtual machine image template ## EXAMPLES diff --git a/src/ImageBuilder/ImageBuilder.Autorest/docs/Start-AzImageBuilderTemplate.md b/src/ImageBuilder/ImageBuilder.Autorest/docs/Start-AzImageBuilderTemplate.md index 0e4c583c9431..5b28c874f714 100644 --- a/src/ImageBuilder/ImageBuilder.Autorest/docs/Start-AzImageBuilderTemplate.md +++ b/src/ImageBuilder/ImageBuilder.Autorest/docs/Start-AzImageBuilderTemplate.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Start-AzImageBuilderTemplate ## SYNOPSIS -run artifacts from a existing image template +Run artifacts from a existing image template ## SYNTAX @@ -25,7 +25,7 @@ Start-AzImageBuilderTemplate -InputObject [-DefaultProfi ``` ## DESCRIPTION -run artifacts from a existing image template +Run artifacts from a existing image template ## EXAMPLES diff --git a/src/ImageBuilder/ImageBuilder/AutorestUpgradeLog.md b/src/ImageBuilder/ImageBuilder/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/ImageBuilder/ImageBuilder/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/ImageBuilder/ImageBuilder/ChangeLog.md b/src/ImageBuilder/ImageBuilder/ChangeLog.md index 08c893f33155..b73fe194f441 100644 --- a/src/ImageBuilder/ImageBuilder/ChangeLog.md +++ b/src/ImageBuilder/ImageBuilder/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 0.5.0 * Introduced various new features by upgrading code generator. Please see details [here](https://github.com/Azure/azure-powershell/blob/main/documentation/Autorest-powershell-v4-new-features.md). diff --git a/src/ImportExport/ImportExport.Autorest/Properties/AssemblyInfo.cs b/src/ImportExport/ImportExport.Autorest/Properties/AssemblyInfo.cs index c9369269aaf6..4768dd6a43dd 100644 --- a/src/ImportExport/ImportExport.Autorest/Properties/AssemblyInfo.cs +++ b/src/ImportExport/ImportExport.Autorest/Properties/AssemblyInfo.cs @@ -20,8 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - ImportExport")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("0.2.2")] -[assembly: System.Reflection.AssemblyVersionAttribute("0.2.2")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] - +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/ImportExport/ImportExport.Autorest/docs/Az.ImportExport.md b/src/ImportExport/ImportExport.Autorest/docs/Az.ImportExport.md index a3705627e149..4b2b077bea6e 100644 --- a/src/ImportExport/ImportExport.Autorest/docs/Az.ImportExport.md +++ b/src/ImportExport/ImportExport.Autorest/docs/Az.ImportExport.md @@ -1,6 +1,6 @@ --- Module Name: Az.ImportExport -Module Guid: d08f17d5-5c73-43ef-b250-38bcfe0330c5 +Module Guid: f6871be4-eaff-4a6f-b753-30777a9353d1 Download Help Link: https://learn.microsoft.com/powershell/module/az.importexport Help Version: 1.0.0.0 Locale: en-US @@ -22,7 +22,7 @@ Returns the details about a location to which you can ship the disks associated A location is an Azure region. ### [New-AzImportExport](New-AzImportExport.md) -create a new job or create an existing job in the specified subscription. +Create a new job or create an existing job in the specified subscription. ### [New-AzImportExportDriveListObject](New-AzImportExportDriveListObject.md) Create a DriverList Object for ImportExport. @@ -32,7 +32,7 @@ Deletes an existing job. Only jobs in the Creating or Completed states can be deleted. ### [Update-AzImportExport](Update-AzImportExport.md) -update specific properties of a job. +Update specific properties of a job. You can call this operation to notify the Import/Export service that the hard drives comprising the import or export job have been shipped to the Microsoft data center. It can also be used to cancel an existing job. diff --git a/src/ImportExport/ImportExport.Autorest/docs/New-AzImportExport.md b/src/ImportExport/ImportExport.Autorest/docs/New-AzImportExport.md index 74d7565f6d92..c203810a6745 100644 --- a/src/ImportExport/ImportExport.Autorest/docs/New-AzImportExport.md +++ b/src/ImportExport/ImportExport.Autorest/docs/New-AzImportExport.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzImportExport ## SYNOPSIS -create a new job or create an existing job in the specified subscription. +Create a new job or create an existing job in the specified subscription. ## SYNTAX @@ -51,7 +51,7 @@ New-AzImportExport -Name -ResourceGroupName -JsonString -ResourceGroupName -JsonString ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 0.3.0 * Introduced various new features by upgrading code generator. Please see details [here](https://github.com/Azure/azure-powershell/blob/main/documentation/Autorest-powershell-v4-new-features.md). diff --git a/src/Informatica/Informatica.Autorest/Properties/AssemblyInfo.cs b/src/Informatica/Informatica.Autorest/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..4e8342ad7623 --- /dev/null +++ b/src/Informatica/Informatica.Autorest/Properties/AssemblyInfo.cs @@ -0,0 +1,26 @@ +// 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. + +using System; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")] +[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] +[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] +[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - Informatica")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] +[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/Informatica/Informatica.Autorest/docs/Az.Informatica.md b/src/Informatica/Informatica.Autorest/docs/Az.Informatica.md index 3ac533deab91..c0f6d78ee17c 100644 --- a/src/Informatica/Informatica.Autorest/docs/Az.Informatica.md +++ b/src/Informatica/Informatica.Autorest/docs/Az.Informatica.md @@ -1,6 +1,6 @@ --- Module Name: Az.Informatica -Module Guid: 2cc23942-2b17-4b45-84c4-ebd4d2af2292 +Module Guid: 02e68430-9325-4c33-9297-2499ecf52443 Download Help Link: https://learn.microsoft.com/powershell/module/az.informatica Help Version: 1.0.0.0 Locale: en-US diff --git a/src/Informatica/Informatica/AutorestUpgradeLog.md b/src/Informatica/Informatica/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/Informatica/Informatica/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/Informatica/Informatica/ChangeLog.md b/src/Informatica/Informatica/ChangeLog.md index 6648b182a18a..a1dd7592702b 100644 --- a/src/Informatica/Informatica/ChangeLog.md +++ b/src/Informatica/Informatica/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 0.1.2 * Fixed module name in module metadata diff --git a/src/IoTOperationsService/IoTOperationsService.Autorest/Properties/AssemblyInfo.cs b/src/IoTOperationsService/IoTOperationsService.Autorest/Properties/AssemblyInfo.cs index 8f567522ab38..e41e068b345f 100644 --- a/src/IoTOperationsService/IoTOperationsService.Autorest/Properties/AssemblyInfo.cs +++ b/src/IoTOperationsService/IoTOperationsService.Autorest/Properties/AssemblyInfo.cs @@ -20,18 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - MicrosoftIoTOperationsManagementService")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0")] -[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] - - - - - - - - - - - +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/IoTOperationsService/IoTOperationsService.Autorest/custom/README.md b/src/IoTOperationsService/IoTOperationsService.Autorest/custom/README.md index 9a750cbeacc0..37506aaaad86 100644 --- a/src/IoTOperationsService/IoTOperationsService.Autorest/custom/README.md +++ b/src/IoTOperationsService/IoTOperationsService.Autorest/custom/README.md @@ -1,5 +1,5 @@ # Custom -This directory contains custom implementation for non-generated cmdlets for the `Az.IoTOperationsService` module. Both scripts (`.ps1`) and C# files (`.cs`) can be implemented here. They will be used during the build process in `build-module.ps1`, and create cmdlets into the `../exports` folder. The only generated file into this folder is the `Az.IoTOperationsService.custom.psm1`. This file should not be modified. +This directory contains custom implementation for non-generated cmdlets for the `Az.IoTOperationsService` module. Both scripts (`.ps1`) and C# files (`.cs`) can be implemented here. They will be used during the build process in `build-module.ps1`, and create cmdlets into the `..\exports` folder. The only generated file into this folder is the `Az.IoTOperationsService.custom.psm1`. This file should not be modified. ## Info - Modifiable: yes @@ -15,10 +15,10 @@ For C# cmdlets, they are compiled with the rest of the generated low-level cmdle For script cmdlets, these are loaded via the `Az.IoTOperationsService.custom.psm1`. Then, during the build process, this module is loaded and processed in the same manner as the C# cmdlets. The fundamental difference is the script cmdlets use the `ParameterSetName` attribute and C# cmdlets do not. To create a script cmdlet variant of a generated cmdlet, simply decorate all parameters in the script with the new `ParameterSetName` in the `Parameter` attribute. This will appropriately treat each parameter set as a separate variant when processed to be exported during the build. ## Purpose -This allows the modules to have cmdlets that were not defined in the REST specification. It also allows combining logic using generated cmdlets. This is a level of customization beyond what can be done using the [readme configuration options](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md) that are currently available. These custom cmdlets are then referenced by the cmdlets created at build-time in the `../exports` folder. +This allows the modules to have cmdlets that were not defined in the REST specification. It also allows combining logic using generated cmdlets. This is a level of customization beyond what can be done using the [readme configuration options](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md) that are currently available. These custom cmdlets are then referenced by the cmdlets created at build-time in the `..\exports` folder. ## Usage -The easiest way currently to start developing custom cmdlets is to copy an existing cmdlet. For C# cmdlets, copy one from the `generated/cmdlets` folder. For script cmdlets, build the project using `build-module.ps1` and copy one of the scripts from the `../exports` folder. After that, if you want to add new parameter sets, follow the guidelines in the `Details` section above. For implementing a new cmdlets, at minimum, please keep these parameters: +The easiest way currently to start developing custom cmdlets is to copy an existing cmdlet. For C# cmdlets, copy one from the `generated/cmdlets` folder. For script cmdlets, build the project using `build-module.ps1` and copy one of the scripts from the `..\exports` folder. After that, if you want to add new parameter sets, follow the guidelines in the `Details` section above. For implementing a new cmdlets, at minimum, please keep these parameters: - Break - DefaultProfile - HttpPipelineAppend @@ -36,6 +36,6 @@ For processing the cmdlets, we've created some additional attributes: - `Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.DoNotExportAttribute` - Used in C# and script cmdlets to suppress creating an exported cmdlet at build-time. These cmdlets will *not be exposed* by `Az.IoTOperationsService`. - `Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.InternalExportAttribute` - - Used in C# cmdlets to route exported cmdlets to the `../internal`, which are *not exposed* by `Az.IoTOperationsService`. For more information, see [README.md](../internal/README.md) in the `../internal` folder. + - Used in C# cmdlets to route exported cmdlets to the `..\internal`, which are *not exposed* by `Az.IoTOperationsService`. For more information, see [README.md](..\internal/README.md) in the `..\internal` folder. - `Microsoft.Azure.PowerShell.Cmdlets.IoTOperationsService.ProfileAttribute` - Used in C# and script cmdlets to define which Azure profiles the cmdlet supports. This is only supported for Azure (`--azure`) modules. \ No newline at end of file diff --git a/src/IoTOperationsService/IoTOperationsService.Autorest/docs/Az.IoTOperationsService.md b/src/IoTOperationsService/IoTOperationsService.Autorest/docs/Az.IoTOperationsService.md index 348e69169184..00cc5c41a46c 100644 --- a/src/IoTOperationsService/IoTOperationsService.Autorest/docs/Az.IoTOperationsService.md +++ b/src/IoTOperationsService/IoTOperationsService.Autorest/docs/Az.IoTOperationsService.md @@ -1,6 +1,6 @@ --- Module Name: Az.IoTOperationsService -Module Guid: c42b5ed7-0bb4-4124-a90b-4e7754da4b45 +Module Guid: dc3f0aa1-3118-41f8-b43a-c99deb42b57c Download Help Link: https://learn.microsoft.com/powershell/module/az.iotoperationsservice Help Version: 1.0.0.0 Locale: en-US @@ -36,28 +36,28 @@ Get a DataflowProfileResource Get a InstanceResource ### [New-AzIoTOperationsServiceBroker](New-AzIoTOperationsServiceBroker.md) -create a BrokerResource +Create a BrokerResource ### [New-AzIoTOperationsServiceBrokerAuthentication](New-AzIoTOperationsServiceBrokerAuthentication.md) -create a BrokerAuthenticationResource +Create a BrokerAuthenticationResource ### [New-AzIoTOperationsServiceBrokerAuthorization](New-AzIoTOperationsServiceBrokerAuthorization.md) -create a BrokerAuthorizationResource +Create a BrokerAuthorizationResource ### [New-AzIoTOperationsServiceBrokerListener](New-AzIoTOperationsServiceBrokerListener.md) -create a BrokerListenerResource +Create a BrokerListenerResource ### [New-AzIoTOperationsServiceDataflow](New-AzIoTOperationsServiceDataflow.md) -create a DataflowResource +Create a DataflowResource ### [New-AzIoTOperationsServiceDataflowEndpoint](New-AzIoTOperationsServiceDataflowEndpoint.md) -create a DataflowEndpointResource +Create a DataflowEndpointResource ### [New-AzIoTOperationsServiceDataflowProfile](New-AzIoTOperationsServiceDataflowProfile.md) -create a DataflowProfileResource +Create a DataflowProfileResource ### [New-AzIoTOperationsServiceInstance](New-AzIoTOperationsServiceInstance.md) -create a InstanceResource +Create a InstanceResource ### [Remove-AzIoTOperationsServiceBroker](Remove-AzIoTOperationsServiceBroker.md) Delete a BrokerResource @@ -84,50 +84,50 @@ Delete a DataflowProfileResource Delete a InstanceResource ### [Set-AzIoTOperationsServiceBroker](Set-AzIoTOperationsServiceBroker.md) -update a BrokerResource +Update a BrokerResource ### [Set-AzIoTOperationsServiceBrokerAuthentication](Set-AzIoTOperationsServiceBrokerAuthentication.md) -update a BrokerAuthenticationResource +Update a BrokerAuthenticationResource ### [Set-AzIoTOperationsServiceBrokerAuthorization](Set-AzIoTOperationsServiceBrokerAuthorization.md) -update a BrokerAuthorizationResource +Update a BrokerAuthorizationResource ### [Set-AzIoTOperationsServiceBrokerListener](Set-AzIoTOperationsServiceBrokerListener.md) -update a BrokerListenerResource +Update a BrokerListenerResource ### [Set-AzIoTOperationsServiceDataflow](Set-AzIoTOperationsServiceDataflow.md) -update a DataflowResource +Update a DataflowResource ### [Set-AzIoTOperationsServiceDataflowEndpoint](Set-AzIoTOperationsServiceDataflowEndpoint.md) -update a DataflowEndpointResource +Update a DataflowEndpointResource ### [Set-AzIoTOperationsServiceDataflowProfile](Set-AzIoTOperationsServiceDataflowProfile.md) -update a DataflowProfileResource +Update a DataflowProfileResource ### [Set-AzIoTOperationsServiceInstance](Set-AzIoTOperationsServiceInstance.md) -update a InstanceResource +Update a InstanceResource ### [Update-AzIoTOperationsServiceBroker](Update-AzIoTOperationsServiceBroker.md) -update a BrokerResource +Update a BrokerResource ### [Update-AzIoTOperationsServiceBrokerAuthentication](Update-AzIoTOperationsServiceBrokerAuthentication.md) -update a BrokerAuthenticationResource +Update a BrokerAuthenticationResource ### [Update-AzIoTOperationsServiceBrokerAuthorization](Update-AzIoTOperationsServiceBrokerAuthorization.md) -update a BrokerAuthorizationResource +Update a BrokerAuthorizationResource ### [Update-AzIoTOperationsServiceBrokerListener](Update-AzIoTOperationsServiceBrokerListener.md) -update a BrokerListenerResource +Update a BrokerListenerResource ### [Update-AzIoTOperationsServiceDataflow](Update-AzIoTOperationsServiceDataflow.md) -update a DataflowResource +Update a DataflowResource ### [Update-AzIoTOperationsServiceDataflowEndpoint](Update-AzIoTOperationsServiceDataflowEndpoint.md) -update a DataflowEndpointResource +Update a DataflowEndpointResource ### [Update-AzIoTOperationsServiceDataflowProfile](Update-AzIoTOperationsServiceDataflowProfile.md) -update a DataflowProfileResource +Update a DataflowProfileResource ### [Update-AzIoTOperationsServiceInstance](Update-AzIoTOperationsServiceInstance.md) -update a InstanceResource +Update a InstanceResource diff --git a/src/IoTOperationsService/IoTOperationsService.Autorest/docs/New-AzIoTOperationsServiceBroker.md b/src/IoTOperationsService/IoTOperationsService.Autorest/docs/New-AzIoTOperationsServiceBroker.md index c812f9aec75a..620465bd27bc 100644 --- a/src/IoTOperationsService/IoTOperationsService.Autorest/docs/New-AzIoTOperationsServiceBroker.md +++ b/src/IoTOperationsService/IoTOperationsService.Autorest/docs/New-AzIoTOperationsServiceBroker.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzIoTOperationsServiceBroker ## SYNOPSIS -create a BrokerResource +Create a BrokerResource ## SYNTAX @@ -44,7 +44,7 @@ New-AzIoTOperationsServiceBroker -InstanceName -Name -Resource ``` ## DESCRIPTION -create a BrokerResource +Create a BrokerResource ## EXAMPLES diff --git a/src/IoTOperationsService/IoTOperationsService.Autorest/docs/New-AzIoTOperationsServiceBrokerAuthentication.md b/src/IoTOperationsService/IoTOperationsService.Autorest/docs/New-AzIoTOperationsServiceBrokerAuthentication.md index 68df8516ddf9..61f396926b74 100644 --- a/src/IoTOperationsService/IoTOperationsService.Autorest/docs/New-AzIoTOperationsServiceBrokerAuthentication.md +++ b/src/IoTOperationsService/IoTOperationsService.Autorest/docs/New-AzIoTOperationsServiceBrokerAuthentication.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzIoTOperationsServiceBrokerAuthentication ## SYNOPSIS -create a BrokerAuthenticationResource +Create a BrokerAuthenticationResource ## SYNTAX @@ -35,7 +35,7 @@ New-AzIoTOperationsServiceBrokerAuthentication -AuthenticationName -Bro ``` ## DESCRIPTION -create a BrokerAuthenticationResource +Create a BrokerAuthenticationResource ## EXAMPLES diff --git a/src/IoTOperationsService/IoTOperationsService.Autorest/docs/New-AzIoTOperationsServiceBrokerAuthorization.md b/src/IoTOperationsService/IoTOperationsService.Autorest/docs/New-AzIoTOperationsServiceBrokerAuthorization.md index ad06b78d6dbd..af15319108f7 100644 --- a/src/IoTOperationsService/IoTOperationsService.Autorest/docs/New-AzIoTOperationsServiceBrokerAuthorization.md +++ b/src/IoTOperationsService/IoTOperationsService.Autorest/docs/New-AzIoTOperationsServiceBrokerAuthorization.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzIoTOperationsServiceBrokerAuthorization ## SYNOPSIS -create a BrokerAuthorizationResource +Create a BrokerAuthorizationResource ## SYNTAX @@ -35,7 +35,7 @@ New-AzIoTOperationsServiceBrokerAuthorization -AuthorizationName -Broke ``` ## DESCRIPTION -create a BrokerAuthorizationResource +Create a BrokerAuthorizationResource ## EXAMPLES diff --git a/src/IoTOperationsService/IoTOperationsService.Autorest/docs/New-AzIoTOperationsServiceBrokerListener.md b/src/IoTOperationsService/IoTOperationsService.Autorest/docs/New-AzIoTOperationsServiceBrokerListener.md index a14583aebf95..eee7a09faa51 100644 --- a/src/IoTOperationsService/IoTOperationsService.Autorest/docs/New-AzIoTOperationsServiceBrokerListener.md +++ b/src/IoTOperationsService/IoTOperationsService.Autorest/docs/New-AzIoTOperationsServiceBrokerListener.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzIoTOperationsServiceBrokerListener ## SYNOPSIS -create a BrokerListenerResource +Create a BrokerListenerResource ## SYNTAX @@ -35,7 +35,7 @@ New-AzIoTOperationsServiceBrokerListener -BrokerName -InstanceName -Name -Profil ``` ## DESCRIPTION -create a DataflowResource +Create a DataflowResource ## EXAMPLES diff --git a/src/IoTOperationsService/IoTOperationsService.Autorest/docs/New-AzIoTOperationsServiceDataflowEndpoint.md b/src/IoTOperationsService/IoTOperationsService.Autorest/docs/New-AzIoTOperationsServiceDataflowEndpoint.md index 0e8da1626cca..742aa15f7f26 100644 --- a/src/IoTOperationsService/IoTOperationsService.Autorest/docs/New-AzIoTOperationsServiceDataflowEndpoint.md +++ b/src/IoTOperationsService/IoTOperationsService.Autorest/docs/New-AzIoTOperationsServiceDataflowEndpoint.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzIoTOperationsServiceDataflowEndpoint ## SYNOPSIS -create a DataflowEndpointResource +Create a DataflowEndpointResource ## SYNTAX @@ -56,7 +56,7 @@ New-AzIoTOperationsServiceDataflowEndpoint -InstanceName -Name ``` ## DESCRIPTION -create a DataflowEndpointResource +Create a DataflowEndpointResource ## EXAMPLES diff --git a/src/IoTOperationsService/IoTOperationsService.Autorest/docs/New-AzIoTOperationsServiceDataflowProfile.md b/src/IoTOperationsService/IoTOperationsService.Autorest/docs/New-AzIoTOperationsServiceDataflowProfile.md index f897ebf4112e..b4b9c10dc80b 100644 --- a/src/IoTOperationsService/IoTOperationsService.Autorest/docs/New-AzIoTOperationsServiceDataflowProfile.md +++ b/src/IoTOperationsService/IoTOperationsService.Autorest/docs/New-AzIoTOperationsServiceDataflowProfile.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzIoTOperationsServiceDataflowProfile ## SYNOPSIS -create a DataflowProfileResource +Create a DataflowProfileResource ## SYNTAX @@ -35,7 +35,7 @@ New-AzIoTOperationsServiceDataflowProfile -InstanceName -Name ``` ## DESCRIPTION -create a DataflowProfileResource +Create a DataflowProfileResource ## EXAMPLES diff --git a/src/IoTOperationsService/IoTOperationsService.Autorest/docs/New-AzIoTOperationsServiceInstance.md b/src/IoTOperationsService/IoTOperationsService.Autorest/docs/New-AzIoTOperationsServiceInstance.md index a95f42941c4b..1fa49cf8df51 100644 --- a/src/IoTOperationsService/IoTOperationsService.Autorest/docs/New-AzIoTOperationsServiceInstance.md +++ b/src/IoTOperationsService/IoTOperationsService.Autorest/docs/New-AzIoTOperationsServiceInstance.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzIoTOperationsServiceInstance ## SYNOPSIS -create a InstanceResource +Create a InstanceResource ## SYNTAX @@ -35,7 +35,7 @@ New-AzIoTOperationsServiceInstance -Name -ResourceGroupName -J ``` ## DESCRIPTION -create a InstanceResource +Create a InstanceResource ## EXAMPLES diff --git a/src/IoTOperationsService/IoTOperationsService.Autorest/docs/README.md b/src/IoTOperationsService/IoTOperationsService.Autorest/docs/README.md index e18833351819..c6cae132a680 100644 --- a/src/IoTOperationsService/IoTOperationsService.Autorest/docs/README.md +++ b/src/IoTOperationsService/IoTOperationsService.Autorest/docs/README.md @@ -1,5 +1,5 @@ # Docs -This directory contains the documentation of the cmdlets for the `Az.IoTOperationsService` 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. +This directory contains the documentation of the cmdlets for the `Az.IoTOperationsService` 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 @@ -8,4 +8,4 @@ This directory contains the documentation of the cmdlets for the `Az.IoTOperatio - Packaged: yes ## Details -The process of documentation generation loads `Az.IoTOperationsService` 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 +The process of documentation generation loads `Az.IoTOperationsService` 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/IoTOperationsService/IoTOperationsService.Autorest/docs/Set-AzIoTOperationsServiceBroker.md b/src/IoTOperationsService/IoTOperationsService.Autorest/docs/Set-AzIoTOperationsServiceBroker.md index 9b58d4448d34..06725b8be45a 100644 --- a/src/IoTOperationsService/IoTOperationsService.Autorest/docs/Set-AzIoTOperationsServiceBroker.md +++ b/src/IoTOperationsService/IoTOperationsService.Autorest/docs/Set-AzIoTOperationsServiceBroker.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Set-AzIoTOperationsServiceBroker ## SYNOPSIS -update a BrokerResource +Update a BrokerResource ## SYNTAX @@ -44,7 +44,7 @@ Set-AzIoTOperationsServiceBroker -InstanceName -Name -Resource ``` ## DESCRIPTION -update a BrokerResource +Update a BrokerResource ## EXAMPLES diff --git a/src/IoTOperationsService/IoTOperationsService.Autorest/docs/Set-AzIoTOperationsServiceBrokerAuthentication.md b/src/IoTOperationsService/IoTOperationsService.Autorest/docs/Set-AzIoTOperationsServiceBrokerAuthentication.md index e4bcc69e9a90..06296e651514 100644 --- a/src/IoTOperationsService/IoTOperationsService.Autorest/docs/Set-AzIoTOperationsServiceBrokerAuthentication.md +++ b/src/IoTOperationsService/IoTOperationsService.Autorest/docs/Set-AzIoTOperationsServiceBrokerAuthentication.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Set-AzIoTOperationsServiceBrokerAuthentication ## SYNOPSIS -update a BrokerAuthenticationResource +Update a BrokerAuthenticationResource ## SYNTAX @@ -35,7 +35,7 @@ Set-AzIoTOperationsServiceBrokerAuthentication -AuthenticationName -Bro ``` ## DESCRIPTION -update a BrokerAuthenticationResource +Update a BrokerAuthenticationResource ## EXAMPLES diff --git a/src/IoTOperationsService/IoTOperationsService.Autorest/docs/Set-AzIoTOperationsServiceBrokerAuthorization.md b/src/IoTOperationsService/IoTOperationsService.Autorest/docs/Set-AzIoTOperationsServiceBrokerAuthorization.md index f299ca3b52d0..418da104ff3c 100644 --- a/src/IoTOperationsService/IoTOperationsService.Autorest/docs/Set-AzIoTOperationsServiceBrokerAuthorization.md +++ b/src/IoTOperationsService/IoTOperationsService.Autorest/docs/Set-AzIoTOperationsServiceBrokerAuthorization.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Set-AzIoTOperationsServiceBrokerAuthorization ## SYNOPSIS -update a BrokerAuthorizationResource +Update a BrokerAuthorizationResource ## SYNTAX @@ -35,7 +35,7 @@ Set-AzIoTOperationsServiceBrokerAuthorization -AuthorizationName -Broke ``` ## DESCRIPTION -update a BrokerAuthorizationResource +Update a BrokerAuthorizationResource ## EXAMPLES diff --git a/src/IoTOperationsService/IoTOperationsService.Autorest/docs/Set-AzIoTOperationsServiceBrokerListener.md b/src/IoTOperationsService/IoTOperationsService.Autorest/docs/Set-AzIoTOperationsServiceBrokerListener.md index 77d85a3eb649..7f72f3a89eef 100644 --- a/src/IoTOperationsService/IoTOperationsService.Autorest/docs/Set-AzIoTOperationsServiceBrokerListener.md +++ b/src/IoTOperationsService/IoTOperationsService.Autorest/docs/Set-AzIoTOperationsServiceBrokerListener.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Set-AzIoTOperationsServiceBrokerListener ## SYNOPSIS -update a BrokerListenerResource +Update a BrokerListenerResource ## SYNTAX @@ -35,7 +35,7 @@ Set-AzIoTOperationsServiceBrokerListener -BrokerName -InstanceName -Name -Profil ``` ## DESCRIPTION -update a DataflowResource +Update a DataflowResource ## EXAMPLES diff --git a/src/IoTOperationsService/IoTOperationsService.Autorest/docs/Set-AzIoTOperationsServiceDataflowEndpoint.md b/src/IoTOperationsService/IoTOperationsService.Autorest/docs/Set-AzIoTOperationsServiceDataflowEndpoint.md index 904ac092b7b4..197c8e77c89b 100644 --- a/src/IoTOperationsService/IoTOperationsService.Autorest/docs/Set-AzIoTOperationsServiceDataflowEndpoint.md +++ b/src/IoTOperationsService/IoTOperationsService.Autorest/docs/Set-AzIoTOperationsServiceDataflowEndpoint.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Set-AzIoTOperationsServiceDataflowEndpoint ## SYNOPSIS -update a DataflowEndpointResource +Update a DataflowEndpointResource ## SYNTAX @@ -56,7 +56,7 @@ Set-AzIoTOperationsServiceDataflowEndpoint -InstanceName -Name ``` ## DESCRIPTION -update a DataflowEndpointResource +Update a DataflowEndpointResource ## EXAMPLES diff --git a/src/IoTOperationsService/IoTOperationsService.Autorest/docs/Set-AzIoTOperationsServiceDataflowProfile.md b/src/IoTOperationsService/IoTOperationsService.Autorest/docs/Set-AzIoTOperationsServiceDataflowProfile.md index e6d03d101854..db9f8aaee8a1 100644 --- a/src/IoTOperationsService/IoTOperationsService.Autorest/docs/Set-AzIoTOperationsServiceDataflowProfile.md +++ b/src/IoTOperationsService/IoTOperationsService.Autorest/docs/Set-AzIoTOperationsServiceDataflowProfile.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Set-AzIoTOperationsServiceDataflowProfile ## SYNOPSIS -update a DataflowProfileResource +Update a DataflowProfileResource ## SYNTAX @@ -35,7 +35,7 @@ Set-AzIoTOperationsServiceDataflowProfile -InstanceName -Name ``` ## DESCRIPTION -update a DataflowProfileResource +Update a DataflowProfileResource ## EXAMPLES diff --git a/src/IoTOperationsService/IoTOperationsService.Autorest/docs/Set-AzIoTOperationsServiceInstance.md b/src/IoTOperationsService/IoTOperationsService.Autorest/docs/Set-AzIoTOperationsServiceInstance.md index f604d703e11d..e346f2c3c181 100644 --- a/src/IoTOperationsService/IoTOperationsService.Autorest/docs/Set-AzIoTOperationsServiceInstance.md +++ b/src/IoTOperationsService/IoTOperationsService.Autorest/docs/Set-AzIoTOperationsServiceInstance.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Set-AzIoTOperationsServiceInstance ## SYNOPSIS -update a InstanceResource +Update a InstanceResource ## SYNTAX @@ -36,7 +36,7 @@ Set-AzIoTOperationsServiceInstance -Name -ResourceGroupName -J ``` ## DESCRIPTION -update a InstanceResource +Update a InstanceResource ## EXAMPLES @@ -126,7 +126,7 @@ Accept wildcard characters: False Determines whether to enable a system-assigned identity for the resource. ```yaml -Type: System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] +Type: System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] Parameter Sets: UpdateExpanded Aliases: diff --git a/src/IoTOperationsService/IoTOperationsService.Autorest/docs/Update-AzIoTOperationsServiceBroker.md b/src/IoTOperationsService/IoTOperationsService.Autorest/docs/Update-AzIoTOperationsServiceBroker.md index 5b061b0714ee..6f71078a581e 100644 --- a/src/IoTOperationsService/IoTOperationsService.Autorest/docs/Update-AzIoTOperationsServiceBroker.md +++ b/src/IoTOperationsService/IoTOperationsService.Autorest/docs/Update-AzIoTOperationsServiceBroker.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzIoTOperationsServiceBroker ## SYNOPSIS -update a BrokerResource +Update a BrokerResource ## SYNTAX @@ -42,7 +42,7 @@ Update-AzIoTOperationsServiceBroker -InstanceInputObject - ``` ## DESCRIPTION -update a BrokerAuthenticationResource +Update a BrokerAuthenticationResource ## EXAMPLES diff --git a/src/IoTOperationsService/IoTOperationsService.Autorest/docs/Update-AzIoTOperationsServiceBrokerAuthorization.md b/src/IoTOperationsService/IoTOperationsService.Autorest/docs/Update-AzIoTOperationsServiceBrokerAuthorization.md index d7fbb7c6d037..6c5b77b1b146 100644 --- a/src/IoTOperationsService/IoTOperationsService.Autorest/docs/Update-AzIoTOperationsServiceBrokerAuthorization.md +++ b/src/IoTOperationsService/IoTOperationsService.Autorest/docs/Update-AzIoTOperationsServiceBrokerAuthorization.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzIoTOperationsServiceBrokerAuthorization ## SYNOPSIS -update a BrokerAuthorizationResource +Update a BrokerAuthorizationResource ## SYNTAX @@ -44,7 +44,7 @@ Update-AzIoTOperationsServiceBrokerAuthorization -AuthorizationName -Br ``` ## DESCRIPTION -update a BrokerAuthorizationResource +Update a BrokerAuthorizationResource ## EXAMPLES diff --git a/src/IoTOperationsService/IoTOperationsService.Autorest/docs/Update-AzIoTOperationsServiceBrokerListener.md b/src/IoTOperationsService/IoTOperationsService.Autorest/docs/Update-AzIoTOperationsServiceBrokerListener.md index 79c3a9b1b28b..1e94f1254e01 100644 --- a/src/IoTOperationsService/IoTOperationsService.Autorest/docs/Update-AzIoTOperationsServiceBrokerListener.md +++ b/src/IoTOperationsService/IoTOperationsService.Autorest/docs/Update-AzIoTOperationsServiceBrokerListener.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzIoTOperationsServiceBrokerListener ## SYNOPSIS -update a BrokerListenerResource +Update a BrokerListenerResource ## SYNTAX @@ -43,7 +43,7 @@ Update-AzIoTOperationsServiceBrokerListener -BrokerName ``` ## DESCRIPTION -update a BrokerListenerResource +Update a BrokerListenerResource ## EXAMPLES diff --git a/src/IoTOperationsService/IoTOperationsService.Autorest/docs/Update-AzIoTOperationsServiceDataflow.md b/src/IoTOperationsService/IoTOperationsService.Autorest/docs/Update-AzIoTOperationsServiceDataflow.md index 6bb17c55a96e..4f9edfb6b47b 100644 --- a/src/IoTOperationsService/IoTOperationsService.Autorest/docs/Update-AzIoTOperationsServiceDataflow.md +++ b/src/IoTOperationsService/IoTOperationsService.Autorest/docs/Update-AzIoTOperationsServiceDataflow.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzIoTOperationsServiceDataflow ## SYNOPSIS -update a DataflowResource +Update a DataflowResource ## SYNTAX @@ -41,7 +41,7 @@ Update-AzIoTOperationsServiceDataflow -InstanceInputObject ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 0.1.0 * First preview release for module Az.IoTOperationsService diff --git a/src/KeyVault/KeyVault.Autorest/Properties/AssemblyInfo.cs b/src/KeyVault/KeyVault.Autorest/Properties/AssemblyInfo.cs index ab9eb17df562..b1c506984fa8 100644 --- a/src/KeyVault/KeyVault.Autorest/Properties/AssemblyInfo.cs +++ b/src/KeyVault/KeyVault.Autorest/Properties/AssemblyInfo.cs @@ -20,7 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - KeyVault")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("6.3.1")] -[assembly: System.Reflection.AssemblyVersionAttribute("6.3.1")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/KeyVault/KeyVault.Autorest/docs/Az.KeyVault.md b/src/KeyVault/KeyVault.Autorest/docs/Az.KeyVault.md index b1d45e84fc0e..cea3c1413fa8 100644 --- a/src/KeyVault/KeyVault.Autorest/docs/Az.KeyVault.md +++ b/src/KeyVault/KeyVault.Autorest/docs/Az.KeyVault.md @@ -1,6 +1,6 @@ --- Module Name: Az.KeyVault -Module Guid: f682d34a-6f17-4cd7-967e-aa2e28f8b021 +Module Guid: 441baec5-0aff-48d3-ba60-aa395250cf26 Download Help Link: https://learn.microsoft.com/powershell/module/az.keyvault Help Version: 1.0.0.0 Locale: en-US diff --git a/src/KeyVault/KeyVault/AutorestUpgradeLog.md b/src/KeyVault/KeyVault/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/KeyVault/KeyVault/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/KeyVault/KeyVault/ChangeLog.md b/src/KeyVault/KeyVault/ChangeLog.md index 2664686d2583..442e28d3c2ab 100644 --- a/src/KeyVault/KeyVault/ChangeLog.md +++ b/src/KeyVault/KeyVault/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 6.4.2 * Updated Azure.Core from 1.47.3 to 1.50.0 diff --git a/src/KubernetesConfiguration/KubernetesConfiguration.Autorest/Properties/AssemblyInfo.cs b/src/KubernetesConfiguration/KubernetesConfiguration.Autorest/Properties/AssemblyInfo.cs index 2935ccf827e1..6e19753c753f 100644 --- a/src/KubernetesConfiguration/KubernetesConfiguration.Autorest/Properties/AssemblyInfo.cs +++ b/src/KubernetesConfiguration/KubernetesConfiguration.Autorest/Properties/AssemblyInfo.cs @@ -20,7 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - KubernetesConfiguration")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("0.7.3")] -[assembly: System.Reflection.AssemblyVersionAttribute("0.7.3")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/KubernetesConfiguration/KubernetesConfiguration.Autorest/docs/Az.KubernetesConfiguration.md b/src/KubernetesConfiguration/KubernetesConfiguration.Autorest/docs/Az.KubernetesConfiguration.md index 968235d8f68e..10ace1ebd748 100644 --- a/src/KubernetesConfiguration/KubernetesConfiguration.Autorest/docs/Az.KubernetesConfiguration.md +++ b/src/KubernetesConfiguration/KubernetesConfiguration.Autorest/docs/Az.KubernetesConfiguration.md @@ -1,6 +1,6 @@ --- Module Name: Az.KubernetesConfiguration -Module Guid: fb5e988f-75c3-4e93-8639-ac3f76255eba +Module Guid: 5ef9678a-83ee-4524-a648-e4ad29d9602a Download Help Link: https://learn.microsoft.com/powershell/module/az.kubernetesconfiguration Help Version: 1.0.0.0 Locale: en-US diff --git a/src/KubernetesConfiguration/KubernetesConfiguration/AutorestUpgradeLog.md b/src/KubernetesConfiguration/KubernetesConfiguration/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/KubernetesConfiguration/KubernetesConfiguration/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/KubernetesConfiguration/KubernetesConfiguration/ChangeLog.md b/src/KubernetesConfiguration/KubernetesConfiguration/ChangeLog.md index 93c9f6896ef8..8c4216af907d 100644 --- a/src/KubernetesConfiguration/KubernetesConfiguration/ChangeLog.md +++ b/src/KubernetesConfiguration/KubernetesConfiguration/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 0.8.0 * Update parameter for command `New-AzKubernetesExtension` to support for new Managed Identity setting. diff --git a/src/KubernetesRuntime/KubernetesRuntime.Autorest/Properties/AssemblyInfo.cs b/src/KubernetesRuntime/KubernetesRuntime.Autorest/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..1cd7aa5f7bd0 --- /dev/null +++ b/src/KubernetesRuntime/KubernetesRuntime.Autorest/Properties/AssemblyInfo.cs @@ -0,0 +1,26 @@ +// 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. + +using System; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")] +[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] +[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] +[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - KubernetesRuntime")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] +[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/KubernetesRuntime/KubernetesRuntime.Autorest/custom/autogen-model-cmdlets/New-AzKubernetesRuntimeBlobStorageClassTypePropertiesObject.ps1 b/src/KubernetesRuntime/KubernetesRuntime.Autorest/custom/autogen-model-cmdlets/New-AzKubernetesRuntimeBlobStorageClassTypePropertiesObject.ps1 index f18606e22ba0..cabc8845f9a7 100644 --- a/src/KubernetesRuntime/KubernetesRuntime.Autorest/custom/autogen-model-cmdlets/New-AzKubernetesRuntimeBlobStorageClassTypePropertiesObject.ps1 +++ b/src/KubernetesRuntime/KubernetesRuntime.Autorest/custom/autogen-model-cmdlets/New-AzKubernetesRuntimeBlobStorageClassTypePropertiesObject.ps1 @@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.BlobStorageClassType https://learn.microsoft.com/powershell/module/Az.KubernetesRuntime/new-azkubernetesruntimeblobstorageclasstypepropertiesobject #> function New-AzKubernetesRuntimeBlobStorageClassTypePropertiesObject { + [Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.BlobStorageClassTypeProperties')] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/KubernetesRuntime/KubernetesRuntime.Autorest/custom/autogen-model-cmdlets/New-AzKubernetesRuntimeNativeStorageClassTypePropertiesObject.ps1 b/src/KubernetesRuntime/KubernetesRuntime.Autorest/custom/autogen-model-cmdlets/New-AzKubernetesRuntimeNativeStorageClassTypePropertiesObject.ps1 index 77309b5904f2..9348c55ffbf5 100644 --- a/src/KubernetesRuntime/KubernetesRuntime.Autorest/custom/autogen-model-cmdlets/New-AzKubernetesRuntimeNativeStorageClassTypePropertiesObject.ps1 +++ b/src/KubernetesRuntime/KubernetesRuntime.Autorest/custom/autogen-model-cmdlets/New-AzKubernetesRuntimeNativeStorageClassTypePropertiesObject.ps1 @@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.NativeStorageClassTy https://learn.microsoft.com/powershell/module/Az.KubernetesRuntime/new-azkubernetesruntimenativestorageclasstypepropertiesobject #> function New-AzKubernetesRuntimeNativeStorageClassTypePropertiesObject { + [Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.NativeStorageClassTypeProperties')] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/KubernetesRuntime/KubernetesRuntime.Autorest/custom/autogen-model-cmdlets/New-AzKubernetesRuntimeNfsStorageClassTypePropertiesObject.ps1 b/src/KubernetesRuntime/KubernetesRuntime.Autorest/custom/autogen-model-cmdlets/New-AzKubernetesRuntimeNfsStorageClassTypePropertiesObject.ps1 index f1a1b47b444b..64aee155c79f 100644 --- a/src/KubernetesRuntime/KubernetesRuntime.Autorest/custom/autogen-model-cmdlets/New-AzKubernetesRuntimeNfsStorageClassTypePropertiesObject.ps1 +++ b/src/KubernetesRuntime/KubernetesRuntime.Autorest/custom/autogen-model-cmdlets/New-AzKubernetesRuntimeNfsStorageClassTypePropertiesObject.ps1 @@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.NfsStorageClassTypeP https://learn.microsoft.com/powershell/module/Az.KubernetesRuntime/new-azkubernetesruntimenfsstorageclasstypepropertiesobject #> function New-AzKubernetesRuntimeNfsStorageClassTypePropertiesObject { + [Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.NfsStorageClassTypeProperties')] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/KubernetesRuntime/KubernetesRuntime.Autorest/custom/autogen-model-cmdlets/New-AzKubernetesRuntimeRwxStorageClassTypePropertiesObject.ps1 b/src/KubernetesRuntime/KubernetesRuntime.Autorest/custom/autogen-model-cmdlets/New-AzKubernetesRuntimeRwxStorageClassTypePropertiesObject.ps1 index 36e86a5bda10..f427e3bf8390 100644 --- a/src/KubernetesRuntime/KubernetesRuntime.Autorest/custom/autogen-model-cmdlets/New-AzKubernetesRuntimeRwxStorageClassTypePropertiesObject.ps1 +++ b/src/KubernetesRuntime/KubernetesRuntime.Autorest/custom/autogen-model-cmdlets/New-AzKubernetesRuntimeRwxStorageClassTypePropertiesObject.ps1 @@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.RwxStorageClassTypeP https://learn.microsoft.com/powershell/module/Az.KubernetesRuntime/new-azkubernetesruntimerwxstorageclasstypepropertiesobject #> function New-AzKubernetesRuntimeRwxStorageClassTypePropertiesObject { + [Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.RwxStorageClassTypeProperties')] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/KubernetesRuntime/KubernetesRuntime.Autorest/custom/autogen-model-cmdlets/New-AzKubernetesRuntimeSmbStorageClassTypePropertiesObject.ps1 b/src/KubernetesRuntime/KubernetesRuntime.Autorest/custom/autogen-model-cmdlets/New-AzKubernetesRuntimeSmbStorageClassTypePropertiesObject.ps1 index 20ca78442709..f0faa7c791d5 100644 --- a/src/KubernetesRuntime/KubernetesRuntime.Autorest/custom/autogen-model-cmdlets/New-AzKubernetesRuntimeSmbStorageClassTypePropertiesObject.ps1 +++ b/src/KubernetesRuntime/KubernetesRuntime.Autorest/custom/autogen-model-cmdlets/New-AzKubernetesRuntimeSmbStorageClassTypePropertiesObject.ps1 @@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.SmbStorageClassTypeP https://learn.microsoft.com/powershell/module/Az.KubernetesRuntime/new-azkubernetesruntimesmbstorageclasstypepropertiesobject #> function New-AzKubernetesRuntimeSmbStorageClassTypePropertiesObject { + [Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.KubernetesRuntime.Models.SmbStorageClassTypeProperties')] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/KubernetesRuntime/KubernetesRuntime.Autorest/docs/Az.KubernetesRuntime.md b/src/KubernetesRuntime/KubernetesRuntime.Autorest/docs/Az.KubernetesRuntime.md index bf5a179a333f..86123e726f3a 100644 --- a/src/KubernetesRuntime/KubernetesRuntime.Autorest/docs/Az.KubernetesRuntime.md +++ b/src/KubernetesRuntime/KubernetesRuntime.Autorest/docs/Az.KubernetesRuntime.md @@ -1,6 +1,6 @@ --- Module Name: Az.KubernetesRuntime -Module Guid: 16846b06-e1a9-4928-95ad-8a030e6c28e5 +Module Guid: f6427ef5-7d4b-414f-b3cd-4e272b9af429 Download Help Link: https://learn.microsoft.com/powershell/module/az.kubernetesruntime Help Version: 1.0.0.0 Locale: en-US diff --git a/src/KubernetesRuntime/KubernetesRuntime/AutorestUpgradeLog.md b/src/KubernetesRuntime/KubernetesRuntime/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/KubernetesRuntime/KubernetesRuntime/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/KubernetesRuntime/KubernetesRuntime/ChangeLog.md b/src/KubernetesRuntime/KubernetesRuntime/ChangeLog.md index 3d9664224bfc..37a28435e69d 100644 --- a/src/KubernetesRuntime/KubernetesRuntime/ChangeLog.md +++ b/src/KubernetesRuntime/KubernetesRuntime/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 0.2.0 * Fixed module name in module metadata diff --git a/src/LabServices/LabServices.Autorest/Properties/AssemblyInfo.cs b/src/LabServices/LabServices.Autorest/Properties/AssemblyInfo.cs index 1f990bfef9d0..395bd026e5b1 100644 --- a/src/LabServices/LabServices.Autorest/Properties/AssemblyInfo.cs +++ b/src/LabServices/LabServices.Autorest/Properties/AssemblyInfo.cs @@ -20,7 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - LabServices")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.2")] -[assembly: System.Reflection.AssemblyVersionAttribute("0.1.2")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/LabServices/LabServices.Autorest/docs/Az.LabServices.md b/src/LabServices/LabServices.Autorest/docs/Az.LabServices.md index e67270699e4b..a845900ec750 100644 --- a/src/LabServices/LabServices.Autorest/docs/Az.LabServices.md +++ b/src/LabServices/LabServices.Autorest/docs/Az.LabServices.md @@ -1,6 +1,6 @@ --- Module Name: Az.LabServices -Module Guid: 08d6abb1-2d08-468b-8fe9-57be7661dad7 +Module Guid: f397406e-ee42-4ee8-be08-239c43a21bf1 Download Help Link: https://learn.microsoft.com/powershell/module/az.labservices Help Version: 1.0.0.0 Locale: en-US diff --git a/src/LabServices/LabServices/AutorestUpgradeLog.md b/src/LabServices/LabServices/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/LabServices/LabServices/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/LabServices/LabServices/ChangeLog.md b/src/LabServices/LabServices/ChangeLog.md index 420c89c16ce5..aa068f61b76c 100644 --- a/src/LabServices/LabServices/ChangeLog.md +++ b/src/LabServices/LabServices/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 0.2.0 * Introduced various new features by upgrading code generator. Please see details [here](https://github.com/Azure/azure-powershell/blob/main/documentation/Autorest-powershell-v4-new-features.md). diff --git a/src/LambdaTest/LambdaTest.Autorest/Properties/AssemblyInfo.cs b/src/LambdaTest/LambdaTest.Autorest/Properties/AssemblyInfo.cs index 80b0d5b31bdc..fd696b445367 100644 --- a/src/LambdaTest/LambdaTest.Autorest/Properties/AssemblyInfo.cs +++ b/src/LambdaTest/LambdaTest.Autorest/Properties/AssemblyInfo.cs @@ -20,7 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - LambdaTest")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0")] -[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/LambdaTest/LambdaTest.Autorest/custom/Az.LambdaTest.custom.psm1 b/src/LambdaTest/LambdaTest.Autorest/custom/Az.LambdaTest.custom.psm1 index a36f8386dc6f..776f945bf1f5 100644 --- a/src/LambdaTest/LambdaTest.Autorest/custom/Az.LambdaTest.custom.psm1 +++ b/src/LambdaTest/LambdaTest.Autorest/custom/Az.LambdaTest.custom.psm1 @@ -1,9 +1,9 @@ # region Generated # Load the private module dll - $null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '../bin/Az.LambdaTest.private.dll') + $null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '..\bin\Az.LambdaTest.private.dll') # Load the internal module - $internalModulePath = Join-Path $PSScriptRoot '../internal/Az.LambdaTest.internal.psm1' + $internalModulePath = Join-Path $PSScriptRoot '..\internal\Az.LambdaTest.internal.psm1' if(Test-Path $internalModulePath) { $null = Import-Module -Name $internalModulePath } diff --git a/src/LambdaTest/LambdaTest.Autorest/custom/README.md b/src/LambdaTest/LambdaTest.Autorest/custom/README.md index 8f8baf89d16f..f074d1f5fca2 100644 --- a/src/LambdaTest/LambdaTest.Autorest/custom/README.md +++ b/src/LambdaTest/LambdaTest.Autorest/custom/README.md @@ -1,5 +1,5 @@ # Custom -This directory contains custom implementation for non-generated cmdlets for the `Az.LambdaTest` module. Both scripts (`.ps1`) and C# files (`.cs`) can be implemented here. They will be used during the build process in `build-module.ps1`, and create cmdlets into the `../exports` folder. The only generated file into this folder is the `Az.LambdaTest.custom.psm1`. This file should not be modified. +This directory contains custom implementation for non-generated cmdlets for the `Az.LambdaTest` module. Both scripts (`.ps1`) and C# files (`.cs`) can be implemented here. They will be used during the build process in `build-module.ps1`, and create cmdlets into the `..\exports` folder. The only generated file into this folder is the `Az.LambdaTest.custom.psm1`. This file should not be modified. ## Info - Modifiable: yes @@ -15,10 +15,10 @@ For C# cmdlets, they are compiled with the rest of the generated low-level cmdle For script cmdlets, these are loaded via the `Az.LambdaTest.custom.psm1`. Then, during the build process, this module is loaded and processed in the same manner as the C# cmdlets. The fundamental difference is the script cmdlets use the `ParameterSetName` attribute and C# cmdlets do not. To create a script cmdlet variant of a generated cmdlet, simply decorate all parameters in the script with the new `ParameterSetName` in the `Parameter` attribute. This will appropriately treat each parameter set as a separate variant when processed to be exported during the build. ## Purpose -This allows the modules to have cmdlets that were not defined in the REST specification. It also allows combining logic using generated cmdlets. This is a level of customization beyond what can be done using the [readme configuration options](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md) that are currently available. These custom cmdlets are then referenced by the cmdlets created at build-time in the `../exports` folder. +This allows the modules to have cmdlets that were not defined in the REST specification. It also allows combining logic using generated cmdlets. This is a level of customization beyond what can be done using the [readme configuration options](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md) that are currently available. These custom cmdlets are then referenced by the cmdlets created at build-time in the `..\exports` folder. ## Usage -The easiest way currently to start developing custom cmdlets is to copy an existing cmdlet. For C# cmdlets, copy one from the `generated/cmdlets` folder. For script cmdlets, build the project using `build-module.ps1` and copy one of the scripts from the `../exports` folder. After that, if you want to add new parameter sets, follow the guidelines in the `Details` section above. For implementing a new cmdlets, at minimum, please keep these parameters: +The easiest way currently to start developing custom cmdlets is to copy an existing cmdlet. For C# cmdlets, copy one from the `generated/cmdlets` folder. For script cmdlets, build the project using `build-module.ps1` and copy one of the scripts from the `..\exports` folder. After that, if you want to add new parameter sets, follow the guidelines in the `Details` section above. For implementing a new cmdlets, at minimum, please keep these parameters: - Break - DefaultProfile - HttpPipelineAppend @@ -36,6 +36,6 @@ For processing the cmdlets, we've created some additional attributes: - `Microsoft.Azure.PowerShell.Cmdlets.LambdaTest.DoNotExportAttribute` - Used in C# and script cmdlets to suppress creating an exported cmdlet at build-time. These cmdlets will *not be exposed* by `Az.LambdaTest`. - `Microsoft.Azure.PowerShell.Cmdlets.LambdaTest.InternalExportAttribute` - - Used in C# cmdlets to route exported cmdlets to the `../internal`, which are *not exposed* by `Az.LambdaTest`. For more information, see [README.md](../internal/README.md) in the `../internal` folder. + - Used in C# cmdlets to route exported cmdlets to the `..\internal`, which are *not exposed* by `Az.LambdaTest`. For more information, see [README.md](..\internal/README.md) in the `..\internal` folder. - `Microsoft.Azure.PowerShell.Cmdlets.LambdaTest.ProfileAttribute` - Used in C# and script cmdlets to define which Azure profiles the cmdlet supports. This is only supported for Azure (`--azure`) modules. \ No newline at end of file diff --git a/src/LambdaTest/LambdaTest.Autorest/docs/Az.LambdaTest.md b/src/LambdaTest/LambdaTest.Autorest/docs/Az.LambdaTest.md index de1e99e96ff7..bac9827e015f 100644 --- a/src/LambdaTest/LambdaTest.Autorest/docs/Az.LambdaTest.md +++ b/src/LambdaTest/LambdaTest.Autorest/docs/Az.LambdaTest.md @@ -1,6 +1,6 @@ --- Module Name: Az.LambdaTest -Module Guid: 995b7488-c479-421c-9618-14e985b32658 +Module Guid: e00569ac-6e06-4bb3-8cd1-a3dfaa488600 Download Help Link: https://learn.microsoft.com/powershell/module/az.lambdatest Help Version: 1.0.0.0 Locale: en-US diff --git a/src/LambdaTest/LambdaTest.Autorest/docs/README.md b/src/LambdaTest/LambdaTest.Autorest/docs/README.md index 3cc9e40d9e68..2c975171d718 100644 --- a/src/LambdaTest/LambdaTest.Autorest/docs/README.md +++ b/src/LambdaTest/LambdaTest.Autorest/docs/README.md @@ -1,5 +1,5 @@ # Docs -This directory contains the documentation of the cmdlets for the `Az.LambdaTest` 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. +This directory contains the documentation of the cmdlets for the `Az.LambdaTest` 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 @@ -8,4 +8,4 @@ This directory contains the documentation of the cmdlets for the `Az.LambdaTest` - Packaged: yes ## Details -The process of documentation generation loads `Az.LambdaTest` 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 +The process of documentation generation loads `Az.LambdaTest` 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/LambdaTest/LambdaTest.Autorest/docs/Update-AzLambdaTestOrganization.md b/src/LambdaTest/LambdaTest.Autorest/docs/Update-AzLambdaTestOrganization.md index 2f827764adec..fa82c7381020 100644 --- a/src/LambdaTest/LambdaTest.Autorest/docs/Update-AzLambdaTestOrganization.md +++ b/src/LambdaTest/LambdaTest.Autorest/docs/Update-AzLambdaTestOrganization.md @@ -131,7 +131,7 @@ Accept wildcard characters: False Determines whether to enable a system-assigned identity for the resource. ```yaml -Type: System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] +Type: System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] Parameter Sets: (All) Aliases: diff --git a/src/LambdaTest/LambdaTest.Autorest/resources/README.md b/src/LambdaTest/LambdaTest.Autorest/resources/README.md deleted file mode 100644 index 736492341e3d..000000000000 --- a/src/LambdaTest/LambdaTest.Autorest/resources/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# Resources -This directory can contain any additional resources for module that are not required at runtime. This directory **does not** get packaged with the module. If you have assets for custom implementation, place them into the `../custom` folder. - -## Info -- Modifiable: yes -- Generated: no -- Committed: yes -- Packaged: no - -## Purpose -Use this folder to put anything you want to keep around as part of the repository for the module, but is not something that is required for the module. For example, development files, packaged builds, or additional information. This is only intended to be used in repositories where the module's output directory is cleaned, but tangential resources for the module want to remain intact. \ No newline at end of file diff --git a/src/LambdaTest/LambdaTest.Autorest/test/README.md b/src/LambdaTest/LambdaTest.Autorest/test/README.md index 1969200c6a09..7c752b4c8c43 100644 --- a/src/LambdaTest/LambdaTest.Autorest/test/README.md +++ b/src/LambdaTest/LambdaTest.Autorest/test/README.md @@ -1,5 +1,5 @@ # Test -This directory contains the [Pester](https://www.powershellgallery.com/packages/Pester) tests to run for the module. We use Pester as it is the unofficial standard for PowerShell unit testing. Test stubs for custom cmdlets (created in `../custom`) will be generated into this folder when `build-module.ps1` is ran. These test stubs will fail automatically, to indicate that tests should be written for custom cmdlets. +This directory contains the [Pester](https://www.powershellgallery.com/packages/Pester) tests to run for the module. We use Pester as it is the unofficial standard for PowerShell unit testing. Test stubs for custom cmdlets (created in `..\custom`) will be generated into this folder when `build-module.ps1` is ran. These test stubs will fail automatically, to indicate that tests should be written for custom cmdlets. ## Info - Modifiable: yes diff --git a/src/LambdaTest/LambdaTest/AutorestUpgradeLog.md b/src/LambdaTest/LambdaTest/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/LambdaTest/LambdaTest/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/LambdaTest/LambdaTest/ChangeLog.md b/src/LambdaTest/LambdaTest/ChangeLog.md index aa7d90c47833..591e7df12b30 100644 --- a/src/LambdaTest/LambdaTest/ChangeLog.md +++ b/src/LambdaTest/LambdaTest/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 1.0.0 * General availability for module Az.LambdaTest diff --git a/src/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/Properties/AssemblyInfo.cs b/src/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..68bcb74100d6 --- /dev/null +++ b/src/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/Properties/AssemblyInfo.cs @@ -0,0 +1,26 @@ +// 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. + +using System; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")] +[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] +[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] +[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - ManagedNetworkFabric")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] +[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/docs/Az.ManagedNetworkFabric.md b/src/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/docs/Az.ManagedNetworkFabric.md index 326682e54f45..0d323bc92b16 100644 --- a/src/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/docs/Az.ManagedNetworkFabric.md +++ b/src/ManagedNetworkFabric/ManagedNetworkFabric.Autorest/docs/Az.ManagedNetworkFabric.md @@ -1,6 +1,6 @@ --- Module Name: Az.ManagedNetworkFabric -Module Guid: 95e96bd7-4548-4973-a345-3f982b13f681 +Module Guid: ee96c866-d86e-4995-bde0-7f94a30b15c7 Download Help Link: https://learn.microsoft.com/powershell/module/az.managednetworkfabric Help Version: 1.0.0.0 Locale: en-US diff --git a/src/ManagedNetworkFabric/ManagedNetworkFabric/AutorestUpgradeLog.md b/src/ManagedNetworkFabric/ManagedNetworkFabric/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/ManagedNetworkFabric/ManagedNetworkFabric/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/ManagedNetworkFabric/ManagedNetworkFabric/ChangeLog.md b/src/ManagedNetworkFabric/ManagedNetworkFabric/ChangeLog.md index df5b829d6be8..45e18dd805cd 100644 --- a/src/ManagedNetworkFabric/ManagedNetworkFabric/ChangeLog.md +++ b/src/ManagedNetworkFabric/ManagedNetworkFabric/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 0.1.3 * Upgraded nuget package to signed package. diff --git a/src/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/Properties/AssemblyInfo.cs b/src/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/Properties/AssemblyInfo.cs index d53dc3a65452..f17363172502 100644 --- a/src/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/Properties/AssemblyInfo.cs +++ b/src/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/Properties/AssemblyInfo.cs @@ -20,7 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - ManagedServiceIdentityClient")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("1.3.1")] -[assembly: System.Reflection.AssemblyVersionAttribute("1.3.1")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/docs/Az.ManagedServiceIdentity.md b/src/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/docs/Az.ManagedServiceIdentity.md index 13547c0e7ef8..2e09a9abd8bb 100644 --- a/src/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/docs/Az.ManagedServiceIdentity.md +++ b/src/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/docs/Az.ManagedServiceIdentity.md @@ -1,6 +1,6 @@ --- Module Name: Az.ManagedServiceIdentity -Module Guid: ac255d9f-3244-436f-8ee5-2eb25b96fce9 +Module Guid: 69673108-9752-4f92-87f3-8034d3164bcc Download Help Link: https://learn.microsoft.com/powershell/module/az.managedserviceidentity Help Version: 1.0.0.0 Locale: en-US @@ -24,10 +24,10 @@ Gets the identity. Lists the associated resources for this identity. ### [New-AzFederatedIdentityCredential](New-AzFederatedIdentityCredential.md) -create a federated identity credential under the specified user assigned identity. +Create a federated identity credential under the specified user assigned identity. ### [New-AzUserAssignedIdentity](New-AzUserAssignedIdentity.md) -create an identity in the specified subscription and resource group. +Create an identity in the specified subscription and resource group. ### [Remove-AzFederatedIdentityCredential](Remove-AzFederatedIdentityCredential.md) Deletes the federated identity credential. @@ -36,8 +36,8 @@ Deletes the federated identity credential. Deletes the identity. ### [Update-AzFederatedIdentityCredential](Update-AzFederatedIdentityCredential.md) -update a federated identity credential under the specified user assigned identity. +Update a federated identity credential under the specified user assigned identity. ### [Update-AzUserAssignedIdentity](Update-AzUserAssignedIdentity.md) -update an identity in the specified subscription and resource group. +Update an identity in the specified subscription and resource group. diff --git a/src/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/docs/New-AzFederatedIdentityCredential.md b/src/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/docs/New-AzFederatedIdentityCredential.md index cffa48c5fbc8..43603cf39d7a 100644 --- a/src/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/docs/New-AzFederatedIdentityCredential.md +++ b/src/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/docs/New-AzFederatedIdentityCredential.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzFederatedIdentityCredential ## SYNOPSIS -create a federated identity credential under the specified user assigned identity. +Create a federated identity credential under the specified user assigned identity. ## SYNTAX @@ -34,7 +34,7 @@ New-AzFederatedIdentityCredential -IdentityName -Name -Resourc ``` ## DESCRIPTION -create a federated identity credential under the specified user assigned identity. +Create a federated identity credential under the specified user assigned identity. ## EXAMPLES diff --git a/src/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/docs/New-AzUserAssignedIdentity.md b/src/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/docs/New-AzUserAssignedIdentity.md index 0f38e404156c..129684a524bd 100644 --- a/src/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/docs/New-AzUserAssignedIdentity.md +++ b/src/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/docs/New-AzUserAssignedIdentity.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzUserAssignedIdentity ## SYNOPSIS -create an identity in the specified subscription and resource group. +Create an identity in the specified subscription and resource group. ## SYNTAX @@ -32,7 +32,7 @@ New-AzUserAssignedIdentity -Name -ResourceGroupName -JsonStrin ``` ## DESCRIPTION -create an identity in the specified subscription and resource group. +Create an identity in the specified subscription and resource group. ## EXAMPLES diff --git a/src/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/docs/Update-AzFederatedIdentityCredential.md b/src/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/docs/Update-AzFederatedIdentityCredential.md index ddef4a6fad72..480c99881b50 100644 --- a/src/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/docs/Update-AzFederatedIdentityCredential.md +++ b/src/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/docs/Update-AzFederatedIdentityCredential.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzFederatedIdentityCredential ## SYNOPSIS -update a federated identity credential under the specified user assigned identity. +Update a federated identity credential under the specified user assigned identity. ## SYNTAX @@ -40,7 +40,7 @@ Update-AzFederatedIdentityCredential -IdentityName -Name -Reso ``` ## DESCRIPTION -update a federated identity credential under the specified user assigned identity. +Update a federated identity credential under the specified user assigned identity. ## EXAMPLES diff --git a/src/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/docs/Update-AzUserAssignedIdentity.md b/src/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/docs/Update-AzUserAssignedIdentity.md index 5e07a4413076..21fd692498c1 100644 --- a/src/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/docs/Update-AzUserAssignedIdentity.md +++ b/src/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/docs/Update-AzUserAssignedIdentity.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzUserAssignedIdentity ## SYNOPSIS -update an identity in the specified subscription and resource group. +Update an identity in the specified subscription and resource group. ## SYNTAX @@ -38,7 +38,7 @@ Update-AzUserAssignedIdentity -Name -ResourceGroupName -JsonSt ``` ## DESCRIPTION -update an identity in the specified subscription and resource group. +Update an identity in the specified subscription and resource group. ## EXAMPLES diff --git a/src/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/resources/README.md b/src/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/resources/README.md deleted file mode 100644 index 937f07f8fec2..000000000000 --- a/src/ManagedServiceIdentity/ManagedServiceIdentity.Autorest/resources/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# Resources -This directory can contain any additional resources for module that are not required at runtime. This directory **does not** get packaged with the module. If you have assets for custom implementation, place them into the `..\custom` folder. - -## Info -- Modifiable: yes -- Generated: no -- Committed: yes -- Packaged: no - -## Purpose -Use this folder to put anything you want to keep around as part of the repository for the module, but is not something that is required for the module. For example, development files, packaged builds, or additional information. This is only intended to be used in repositories where the module's output directory is cleaned, but tangential resources for the module want to remain intact. \ No newline at end of file diff --git a/src/ManagedServiceIdentity/ManagedServiceIdentity/AutorestUpgradeLog.md b/src/ManagedServiceIdentity/ManagedServiceIdentity/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/ManagedServiceIdentity/ManagedServiceIdentity/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/ManagedServiceIdentity/ManagedServiceIdentity/ChangeLog.md b/src/ManagedServiceIdentity/ManagedServiceIdentity/ChangeLog.md index 382c9d601e41..0c4f06642886 100644 --- a/src/ManagedServiceIdentity/ManagedServiceIdentity/ChangeLog.md +++ b/src/ManagedServiceIdentity/ManagedServiceIdentity/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 2.0.0 * Introduced various new features by upgrading code generator. Please see details [here](https://github.com/Azure/azure-powershell/blob/main/documentation/Autorest-powershell-v4-new-features.md). diff --git a/src/Maps/Maps.Autorest/Properties/AssemblyInfo.cs b/src/Maps/Maps.Autorest/Properties/AssemblyInfo.cs index d9a384f7ec95..41ab5de813f2 100644 --- a/src/Maps/Maps.Autorest/Properties/AssemblyInfo.cs +++ b/src/Maps/Maps.Autorest/Properties/AssemblyInfo.cs @@ -20,7 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - Maps")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("0.8.2")] -[assembly: System.Reflection.AssemblyVersionAttribute("0.8.2")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/Maps/Maps.Autorest/docs/Az.Maps.md b/src/Maps/Maps.Autorest/docs/Az.Maps.md index c7f0adc325ea..b3a302a5629d 100644 --- a/src/Maps/Maps.Autorest/docs/Az.Maps.md +++ b/src/Maps/Maps.Autorest/docs/Az.Maps.md @@ -1,6 +1,6 @@ --- Module Name: Az.Maps -Module Guid: 28ccfd74-6337-4e18-97fa-345b819a2341 +Module Guid: 378e9e82-bbe0-4f19-adcc-4315cee1ebe2 Download Help Link: https://learn.microsoft.com/powershell/module/az.maps Help Version: 1.0.0.0 Locale: en-US @@ -26,7 +26,7 @@ Get a Maps Creator resource. List operations available for the Maps Resource Provider ### [New-AzMapsAccount](New-AzMapsAccount.md) -create a Maps Account. +Create a Maps Account. A Maps Account holds the keys which allow access to the Maps REST APIs. ### [New-AzMapsAccountKey](New-AzMapsAccountKey.md) @@ -34,7 +34,7 @@ Regenerate either the primary or secondary key for use with the Maps APIs. The old key will stop working immediately. ### [New-AzMapsCreator](New-AzMapsCreator.md) -create a Maps Creator resource. +Create a Maps Creator resource. Creator resource will manage Azure resources required to populate a custom set of mapping data. It requires an account to exist before it can be created. @@ -45,10 +45,10 @@ Delete a Maps Account. Delete a Maps Creator resource. ### [Update-AzMapsAccount](Update-AzMapsAccount.md) -update a Maps Account. +Update a Maps Account. Only a subset of the parameters may be updated after creation, such as Sku, Tags, Properties. ### [Update-AzMapsCreator](Update-AzMapsCreator.md) -update the Maps Creator resource. +Update the Maps Creator resource. Only a subset of the parameters may be updated after creation, such as Tags. diff --git a/src/Maps/Maps.Autorest/docs/New-AzMapsAccount.md b/src/Maps/Maps.Autorest/docs/New-AzMapsAccount.md index 6b8a08197b39..f62c2ee6cfe6 100644 --- a/src/Maps/Maps.Autorest/docs/New-AzMapsAccount.md +++ b/src/Maps/Maps.Autorest/docs/New-AzMapsAccount.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzMapsAccount ## SYNOPSIS -create a Maps Account. +Create a Maps Account. A Maps Account holds the keys which allow access to the Maps REST APIs. ## SYNTAX @@ -33,7 +33,7 @@ New-AzMapsAccount -Name -ResourceGroupName -JsonString -Name -ResourceGroupName -ResourceGroupName -JsonString -Name -ResourceGroupName ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 0.9.0 * Introduced various new features by upgrading code generator. Please see details [here](https://github.com/Azure/azure-powershell/blob/main/documentation/Autorest-powershell-v4-new-features.md). diff --git a/src/Marketplace/Marketplace.Autorest/Az.Marketplace.nuspec b/src/Marketplace/Marketplace.Autorest/Az.Marketplace.nuspec index 45d8faa368ba..3a7acfc98436 100644 --- a/src/Marketplace/Marketplace.Autorest/Az.Marketplace.nuspec +++ b/src/Marketplace/Marketplace.Autorest/Az.Marketplace.nuspec @@ -2,7 +2,7 @@ Az.Marketplace - 0.1.0 + 1.1.0 Microsoft Corporation Microsoft Corporation true @@ -13,7 +13,7 @@ Microsoft Corporation. All rights reserved. Azure ResourceManager ARM PSModule $(service-name) - + diff --git a/src/Marketplace/Marketplace.Autorest/Properties/AssemblyInfo.cs b/src/Marketplace/Marketplace.Autorest/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..5539f0bf1ae4 --- /dev/null +++ b/src/Marketplace/Marketplace.Autorest/Properties/AssemblyInfo.cs @@ -0,0 +1,26 @@ +// 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. + +using System; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")] +[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] +[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] +[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - Marketplace")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] +[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/Marketplace/Marketplace.Autorest/docs/Az.Marketplace.md b/src/Marketplace/Marketplace.Autorest/docs/Az.Marketplace.md index 8758b1f20f8f..60ef11f002e0 100644 --- a/src/Marketplace/Marketplace.Autorest/docs/Az.Marketplace.md +++ b/src/Marketplace/Marketplace.Autorest/docs/Az.Marketplace.md @@ -1,6 +1,6 @@ --- Module Name: Az.Marketplace -Module Guid: 4db1f51a-b835-4783-be47-0b8939492ea5 +Module Guid: 1de32ea4-fa3e-4bc7-bfc8-e854ff4b9e4a Download Help Link: https://learn.microsoft.com/powershell/module/az.marketplace Help Version: 1.0.0.0 Locale: en-US @@ -12,7 +12,7 @@ Microsoft Azure PowerShell: Marketplace cmdlets ## Az.Marketplace Cmdlets ### [Copy-AzMarketplacePrivateStoreCollectionOffer](Copy-AzMarketplacePrivateStoreCollectionOffer.md) -transferring offers (copy or move) from source collection to target collection(s) +Transferring offers (copy or move) from source collection to target collection(s) ### [Disable-AzMarketplacePrivateStoreCollectionAllItem](Disable-AzMarketplacePrivateStoreCollectionAllItem.md) Disable approve all items for the collection. diff --git a/src/Marketplace/Marketplace.Autorest/docs/Copy-AzMarketplacePrivateStoreCollectionOffer.md b/src/Marketplace/Marketplace.Autorest/docs/Copy-AzMarketplacePrivateStoreCollectionOffer.md index dd56d6d7d975..9c11d5dcad20 100644 --- a/src/Marketplace/Marketplace.Autorest/docs/Copy-AzMarketplacePrivateStoreCollectionOffer.md +++ b/src/Marketplace/Marketplace.Autorest/docs/Copy-AzMarketplacePrivateStoreCollectionOffer.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Copy-AzMarketplacePrivateStoreCollectionOffer ## SYNOPSIS -transferring offers (copy or move) from source collection to target collection(s) +Transferring offers (copy or move) from source collection to target collection(s) ## SYNTAX @@ -65,7 +65,7 @@ Copy-AzMarketplacePrivateStoreCollectionOffer -CollectionId -PrivateSto ``` ## DESCRIPTION -transferring offers (copy or move) from source collection to target collection(s) +Transferring offers (copy or move) from source collection to target collection(s) ## EXAMPLES diff --git a/src/Marketplace/Marketplace/AutorestUpgradeLog.md b/src/Marketplace/Marketplace/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/Marketplace/Marketplace/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/Marketplace/Marketplace/ChangeLog.md b/src/Marketplace/Marketplace/ChangeLog.md index d369c1c029da..993f6e3f07fb 100644 --- a/src/Marketplace/Marketplace/ChangeLog.md +++ b/src/Marketplace/Marketplace/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 0.5.2 * Upgraded nuget package to signed package. diff --git a/src/MarketplaceOrdering/MarketplaceOrdering.Autorest/Properties/AssemblyInfo.cs b/src/MarketplaceOrdering/MarketplaceOrdering.Autorest/Properties/AssemblyInfo.cs index 0e559d2f4088..6176956d4aac 100644 --- a/src/MarketplaceOrdering/MarketplaceOrdering.Autorest/Properties/AssemblyInfo.cs +++ b/src/MarketplaceOrdering/MarketplaceOrdering.Autorest/Properties/AssemblyInfo.cs @@ -20,7 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - MarketplaceOrdering")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("2.1.0")] -[assembly: System.Reflection.AssemblyVersionAttribute("2.1.0")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/MarketplaceOrdering/MarketplaceOrdering.Autorest/docs/Az.MarketplaceOrdering.md b/src/MarketplaceOrdering/MarketplaceOrdering.Autorest/docs/Az.MarketplaceOrdering.md index e6cef4d8d666..74afe6f81a16 100644 --- a/src/MarketplaceOrdering/MarketplaceOrdering.Autorest/docs/Az.MarketplaceOrdering.md +++ b/src/MarketplaceOrdering/MarketplaceOrdering.Autorest/docs/Az.MarketplaceOrdering.md @@ -1,6 +1,6 @@ --- Module Name: Az.MarketplaceOrdering -Module Guid: fe1b052f-8cbc-47f1-a3fb-428a015ab5ab +Module Guid: af2255da-1776-4998-b7bf-00ba054a4196 Download Help Link: https://learn.microsoft.com/powershell/module/az.marketplaceordering Help Version: 1.0.0.0 Locale: en-US diff --git a/src/MarketplaceOrdering/MarketplaceOrdering.Autorest/resources/README.md b/src/MarketplaceOrdering/MarketplaceOrdering.Autorest/resources/README.md deleted file mode 100644 index 937f07f8fec2..000000000000 --- a/src/MarketplaceOrdering/MarketplaceOrdering.Autorest/resources/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# Resources -This directory can contain any additional resources for module that are not required at runtime. This directory **does not** get packaged with the module. If you have assets for custom implementation, place them into the `..\custom` folder. - -## Info -- Modifiable: yes -- Generated: no -- Committed: yes -- Packaged: no - -## Purpose -Use this folder to put anything you want to keep around as part of the repository for the module, but is not something that is required for the module. For example, development files, packaged builds, or additional information. This is only intended to be used in repositories where the module's output directory is cleaned, but tangential resources for the module want to remain intact. \ No newline at end of file diff --git a/src/MarketplaceOrdering/MarketplaceOrdering/AutorestUpgradeLog.md b/src/MarketplaceOrdering/MarketplaceOrdering/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/MarketplaceOrdering/MarketplaceOrdering/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/MarketplaceOrdering/MarketplaceOrdering/ChangeLog.md b/src/MarketplaceOrdering/MarketplaceOrdering/ChangeLog.md index 4bb9ef637e04..e556fcdc0c12 100644 --- a/src/MarketplaceOrdering/MarketplaceOrdering/ChangeLog.md +++ b/src/MarketplaceOrdering/MarketplaceOrdering/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 2.2.0 * Introduced various new features by upgrading code generator. Please see details [here](https://github.com/Azure/azure-powershell/blob/main/documentation/Autorest-powershell-v4-new-features.md). diff --git a/src/Mdp/Mdp.Autorest/Properties/AssemblyInfo.cs b/src/Mdp/Mdp.Autorest/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..3e69117ca893 --- /dev/null +++ b/src/Mdp/Mdp.Autorest/Properties/AssemblyInfo.cs @@ -0,0 +1,26 @@ +// 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. + +using System; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")] +[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] +[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] +[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - ManagedDevOpsPools")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] +[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/Mdp/Mdp.Autorest/docs/Az.Mdp.md b/src/Mdp/Mdp.Autorest/docs/Az.Mdp.md index e7ae193b05a5..1ea02f27d895 100644 --- a/src/Mdp/Mdp.Autorest/docs/Az.Mdp.md +++ b/src/Mdp/Mdp.Autorest/docs/Az.Mdp.md @@ -1,6 +1,6 @@ --- Module Name: Az.Mdp -Module Guid: c9f4a15f-58e0-4476-821d-a0d998e51a11 +Module Guid: de2a607f-013f-4d28-90ac-d5d2473fd544 Download Help Link: https://learn.microsoft.com/powershell/module/az.mdp Help Version: 1.0.0.0 Locale: en-US @@ -21,11 +21,11 @@ List ResourceDetailsObject resources by Pool List ResourceSku resources by subscription ID ### [New-AzMdpPool](New-AzMdpPool.md) -create a Pool +Create a Pool ### [Remove-AzMdpPool](Remove-AzMdpPool.md) Delete a Pool ### [Update-AzMdpPool](Update-AzMdpPool.md) -update a Pool +Update a Pool diff --git a/src/Mdp/Mdp.Autorest/docs/New-AzMdpPool.md b/src/Mdp/Mdp.Autorest/docs/New-AzMdpPool.md index 0d262ff5fc0b..b6f84ab4e601 100644 --- a/src/Mdp/Mdp.Autorest/docs/New-AzMdpPool.md +++ b/src/Mdp/Mdp.Autorest/docs/New-AzMdpPool.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzMdpPool ## SYNOPSIS -create a Pool +Create a Pool ## SYNTAX @@ -55,7 +55,7 @@ New-AzMdpPool -Name -ResourceGroupName -JsonString [- ``` ## DESCRIPTION -create a Pool +Create a Pool ## EXAMPLES diff --git a/src/Mdp/Mdp.Autorest/docs/Update-AzMdpPool.md b/src/Mdp/Mdp.Autorest/docs/Update-AzMdpPool.md index baadc9cbfcd9..bbcdbe2d329e 100644 --- a/src/Mdp/Mdp.Autorest/docs/Update-AzMdpPool.md +++ b/src/Mdp/Mdp.Autorest/docs/Update-AzMdpPool.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzMdpPool ## SYNOPSIS -update a Pool +Update a Pool ## SYNTAX @@ -44,7 +44,7 @@ Update-AzMdpPool -InputObject [-AgentProfile ] ``` ## DESCRIPTION -update a Pool +Update a Pool ## EXAMPLES diff --git a/src/Mdp/Mdp/AutorestUpgradeLog.md b/src/Mdp/Mdp/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/Mdp/Mdp/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/Mdp/Mdp/ChangeLog.md b/src/Mdp/Mdp/ChangeLog.md index 06f65ca2246f..6b8a33d6bdae 100644 --- a/src/Mdp/Mdp/ChangeLog.md +++ b/src/Mdp/Mdp/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 0.1.2 * Fixed module name in module metadata diff --git a/src/MixedReality/MixedReality.Autorest/Properties/AssemblyInfo.cs b/src/MixedReality/MixedReality.Autorest/Properties/AssemblyInfo.cs index a37f2c7468b2..fa7500922b03 100644 --- a/src/MixedReality/MixedReality.Autorest/Properties/AssemblyInfo.cs +++ b/src/MixedReality/MixedReality.Autorest/Properties/AssemblyInfo.cs @@ -20,8 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - MixedReality")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("0.2.2")] -[assembly: System.Reflection.AssemblyVersionAttribute("0.2.2")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] - +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/MixedReality/MixedReality.Autorest/docs/Az.MixedReality.md b/src/MixedReality/MixedReality.Autorest/docs/Az.MixedReality.md index a948fdb82f98..db3c4f8cd8e6 100644 --- a/src/MixedReality/MixedReality.Autorest/docs/Az.MixedReality.md +++ b/src/MixedReality/MixedReality.Autorest/docs/Az.MixedReality.md @@ -1,6 +1,6 @@ --- Module Name: Az.MixedReality -Module Guid: 3ac1ba4c-b0f6-4154-a2e7-b5839f8b5e95 +Module Guid: 5bbc4154-11fb-417e-8e89-bb54482bcd51 Download Help Link: https://learn.microsoft.com/powershell/module/az.mixedreality Help Version: 1.0.0.0 Locale: en-US diff --git a/src/MixedReality/MixedReality.Autorest/resources/README.md b/src/MixedReality/MixedReality.Autorest/resources/README.md deleted file mode 100644 index 937f07f8fec2..000000000000 --- a/src/MixedReality/MixedReality.Autorest/resources/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# Resources -This directory can contain any additional resources for module that are not required at runtime. This directory **does not** get packaged with the module. If you have assets for custom implementation, place them into the `..\custom` folder. - -## Info -- Modifiable: yes -- Generated: no -- Committed: yes -- Packaged: no - -## Purpose -Use this folder to put anything you want to keep around as part of the repository for the module, but is not something that is required for the module. For example, development files, packaged builds, or additional information. This is only intended to be used in repositories where the module's output directory is cleaned, but tangential resources for the module want to remain intact. \ No newline at end of file diff --git a/src/MixedReality/MixedReality/AutorestUpgradeLog.md b/src/MixedReality/MixedReality/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/MixedReality/MixedReality/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/MixedReality/MixedReality/ChangeLog.md b/src/MixedReality/MixedReality/ChangeLog.md index 01e6a4c313eb..50d4495eb85a 100644 --- a/src/MixedReality/MixedReality/ChangeLog.md +++ b/src/MixedReality/MixedReality/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 0.3.0 * Introduced various new features by upgrading code generator. Please see details [here](https://github.com/Azure/azure-powershell/blob/main/documentation/Autorest-powershell-v4-new-features.md). diff --git a/src/MongoDB/MongoDB.Autorest/Properties/AssemblyInfo.cs b/src/MongoDB/MongoDB.Autorest/Properties/AssemblyInfo.cs index 0a0b85326453..994f5e43b621 100644 --- a/src/MongoDB/MongoDB.Autorest/Properties/AssemblyInfo.cs +++ b/src/MongoDB/MongoDB.Autorest/Properties/AssemblyInfo.cs @@ -20,7 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - MongoDb")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0")] -[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/MongoDB/MongoDB.Autorest/custom/Az.MongoDB.custom.psm1 b/src/MongoDB/MongoDB.Autorest/custom/Az.MongoDB.custom.psm1 index 3fac1cdbfafc..5689863851b5 100644 --- a/src/MongoDB/MongoDB.Autorest/custom/Az.MongoDB.custom.psm1 +++ b/src/MongoDB/MongoDB.Autorest/custom/Az.MongoDB.custom.psm1 @@ -1,9 +1,9 @@ # region Generated # Load the private module dll - $null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '../bin/Az.MongoDB.private.dll') + $null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '..\bin\Az.MongoDB.private.dll') # Load the internal module - $internalModulePath = Join-Path $PSScriptRoot '../internal/Az.MongoDB.internal.psm1' + $internalModulePath = Join-Path $PSScriptRoot '..\internal\Az.MongoDB.internal.psm1' if(Test-Path $internalModulePath) { $null = Import-Module -Name $internalModulePath } diff --git a/src/MongoDB/MongoDB.Autorest/custom/README.md b/src/MongoDB/MongoDB.Autorest/custom/README.md index 38ad2e6ba9ac..cc4dfb8ab337 100644 --- a/src/MongoDB/MongoDB.Autorest/custom/README.md +++ b/src/MongoDB/MongoDB.Autorest/custom/README.md @@ -1,5 +1,5 @@ # Custom -This directory contains custom implementation for non-generated cmdlets for the `Az.MongoDB` module. Both scripts (`.ps1`) and C# files (`.cs`) can be implemented here. They will be used during the build process in `build-module.ps1`, and create cmdlets into the `../exports` folder. The only generated file into this folder is the `Az.MongoDB.custom.psm1`. This file should not be modified. +This directory contains custom implementation for non-generated cmdlets for the `Az.MongoDB` module. Both scripts (`.ps1`) and C# files (`.cs`) can be implemented here. They will be used during the build process in `build-module.ps1`, and create cmdlets into the `..\exports` folder. The only generated file into this folder is the `Az.MongoDB.custom.psm1`. This file should not be modified. ## Info - Modifiable: yes @@ -15,10 +15,10 @@ For C# cmdlets, they are compiled with the rest of the generated low-level cmdle For script cmdlets, these are loaded via the `Az.MongoDB.custom.psm1`. Then, during the build process, this module is loaded and processed in the same manner as the C# cmdlets. The fundamental difference is the script cmdlets use the `ParameterSetName` attribute and C# cmdlets do not. To create a script cmdlet variant of a generated cmdlet, simply decorate all parameters in the script with the new `ParameterSetName` in the `Parameter` attribute. This will appropriately treat each parameter set as a separate variant when processed to be exported during the build. ## Purpose -This allows the modules to have cmdlets that were not defined in the REST specification. It also allows combining logic using generated cmdlets. This is a level of customization beyond what can be done using the [readme configuration options](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md) that are currently available. These custom cmdlets are then referenced by the cmdlets created at build-time in the `../exports` folder. +This allows the modules to have cmdlets that were not defined in the REST specification. It also allows combining logic using generated cmdlets. This is a level of customization beyond what can be done using the [readme configuration options](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md) that are currently available. These custom cmdlets are then referenced by the cmdlets created at build-time in the `..\exports` folder. ## Usage -The easiest way currently to start developing custom cmdlets is to copy an existing cmdlet. For C# cmdlets, copy one from the `generated/cmdlets` folder. For script cmdlets, build the project using `build-module.ps1` and copy one of the scripts from the `../exports` folder. After that, if you want to add new parameter sets, follow the guidelines in the `Details` section above. For implementing a new cmdlets, at minimum, please keep these parameters: +The easiest way currently to start developing custom cmdlets is to copy an existing cmdlet. For C# cmdlets, copy one from the `generated/cmdlets` folder. For script cmdlets, build the project using `build-module.ps1` and copy one of the scripts from the `..\exports` folder. After that, if you want to add new parameter sets, follow the guidelines in the `Details` section above. For implementing a new cmdlets, at minimum, please keep these parameters: - Break - DefaultProfile - HttpPipelineAppend @@ -36,6 +36,6 @@ For processing the cmdlets, we've created some additional attributes: - `Microsoft.Azure.PowerShell.Cmdlets.MongoDB.DoNotExportAttribute` - Used in C# and script cmdlets to suppress creating an exported cmdlet at build-time. These cmdlets will *not be exposed* by `Az.MongoDB`. - `Microsoft.Azure.PowerShell.Cmdlets.MongoDB.InternalExportAttribute` - - Used in C# cmdlets to route exported cmdlets to the `../internal`, which are *not exposed* by `Az.MongoDB`. For more information, see [README.md](../internal/README.md) in the `../internal` folder. + - Used in C# cmdlets to route exported cmdlets to the `..\internal`, which are *not exposed* by `Az.MongoDB`. For more information, see [README.md](..\internal/README.md) in the `..\internal` folder. - `Microsoft.Azure.PowerShell.Cmdlets.MongoDB.ProfileAttribute` - Used in C# and script cmdlets to define which Azure profiles the cmdlet supports. This is only supported for Azure (`--azure`) modules. \ No newline at end of file diff --git a/src/MongoDB/MongoDB.Autorest/docs/Az.MongoDB.md b/src/MongoDB/MongoDB.Autorest/docs/Az.MongoDB.md index d8645fcacb71..a0ff5a2e6156 100644 --- a/src/MongoDB/MongoDB.Autorest/docs/Az.MongoDB.md +++ b/src/MongoDB/MongoDB.Autorest/docs/Az.MongoDB.md @@ -1,6 +1,6 @@ --- Module Name: Az.MongoDB -Module Guid: e8abde8d-9c45-4aea-9875-390bd042d9ea +Module Guid: f4f465a8-223b-4467-a9fb-f17bbdaa8632 Download Help Link: https://learn.microsoft.com/powershell/module/az.mongodb Help Version: 1.0.0.0 Locale: en-US diff --git a/src/MongoDB/MongoDB.Autorest/docs/README.md b/src/MongoDB/MongoDB.Autorest/docs/README.md index 67bf8b7eeb1a..116b958ab82b 100644 --- a/src/MongoDB/MongoDB.Autorest/docs/README.md +++ b/src/MongoDB/MongoDB.Autorest/docs/README.md @@ -1,5 +1,5 @@ # Docs -This directory contains the documentation of the cmdlets for the `Az.MongoDB` 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. +This directory contains the documentation of the cmdlets for the `Az.MongoDB` 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 @@ -8,4 +8,4 @@ This directory contains the documentation of the cmdlets for the `Az.MongoDB` mo - Packaged: yes ## Details -The process of documentation generation loads `Az.MongoDB` 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 +The process of documentation generation loads `Az.MongoDB` 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/MongoDB/MongoDB.Autorest/resources/README.md b/src/MongoDB/MongoDB.Autorest/resources/README.md deleted file mode 100644 index 736492341e3d..000000000000 --- a/src/MongoDB/MongoDB.Autorest/resources/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# Resources -This directory can contain any additional resources for module that are not required at runtime. This directory **does not** get packaged with the module. If you have assets for custom implementation, place them into the `../custom` folder. - -## Info -- Modifiable: yes -- Generated: no -- Committed: yes -- Packaged: no - -## Purpose -Use this folder to put anything you want to keep around as part of the repository for the module, but is not something that is required for the module. For example, development files, packaged builds, or additional information. This is only intended to be used in repositories where the module's output directory is cleaned, but tangential resources for the module want to remain intact. \ No newline at end of file diff --git a/src/MongoDB/MongoDB.Autorest/test/README.md b/src/MongoDB/MongoDB.Autorest/test/README.md index 1969200c6a09..7c752b4c8c43 100644 --- a/src/MongoDB/MongoDB.Autorest/test/README.md +++ b/src/MongoDB/MongoDB.Autorest/test/README.md @@ -1,5 +1,5 @@ # Test -This directory contains the [Pester](https://www.powershellgallery.com/packages/Pester) tests to run for the module. We use Pester as it is the unofficial standard for PowerShell unit testing. Test stubs for custom cmdlets (created in `../custom`) will be generated into this folder when `build-module.ps1` is ran. These test stubs will fail automatically, to indicate that tests should be written for custom cmdlets. +This directory contains the [Pester](https://www.powershellgallery.com/packages/Pester) tests to run for the module. We use Pester as it is the unofficial standard for PowerShell unit testing. Test stubs for custom cmdlets (created in `..\custom`) will be generated into this folder when `build-module.ps1` is ran. These test stubs will fail automatically, to indicate that tests should be written for custom cmdlets. ## Info - Modifiable: yes diff --git a/src/MongoDB/MongoDB/AutorestUpgradeLog.md b/src/MongoDB/MongoDB/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/MongoDB/MongoDB/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/MongoDB/MongoDB/ChangeLog.md b/src/MongoDB/MongoDB/ChangeLog.md index 5f1f02fa85d0..0f72c0027e82 100644 --- a/src/MongoDB/MongoDB/ChangeLog.md +++ b/src/MongoDB/MongoDB/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 0.1.1 * Upgraded to the stable api version diff --git a/src/MonitoringSolutions/MonitoringSolutions.Autorest/Properties/AssemblyInfo.cs b/src/MonitoringSolutions/MonitoringSolutions.Autorest/Properties/AssemblyInfo.cs index 0c7475b67323..ee08b423b865 100644 --- a/src/MonitoringSolutions/MonitoringSolutions.Autorest/Properties/AssemblyInfo.cs +++ b/src/MonitoringSolutions/MonitoringSolutions.Autorest/Properties/AssemblyInfo.cs @@ -20,7 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - MonitoringSolutions")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.2")] -[assembly: System.Reflection.AssemblyVersionAttribute("0.1.2")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/MonitoringSolutions/MonitoringSolutions.Autorest/docs/Az.MonitoringSolutions.md b/src/MonitoringSolutions/MonitoringSolutions.Autorest/docs/Az.MonitoringSolutions.md index d986f584261c..3ccb05aa1351 100644 --- a/src/MonitoringSolutions/MonitoringSolutions.Autorest/docs/Az.MonitoringSolutions.md +++ b/src/MonitoringSolutions/MonitoringSolutions.Autorest/docs/Az.MonitoringSolutions.md @@ -1,6 +1,6 @@ --- Module Name: Az.MonitoringSolutions -Module Guid: a1bb7fa0-c386-4a56-a152-18e635e436e2 +Module Guid: 00ae0b23-880e-41fe-8cf3-d5bdf2c2b676 Download Help Link: https://learn.microsoft.com/powershell/module/az.monitoringsolutions Help Version: 1.0.0.0 Locale: en-US @@ -21,5 +21,5 @@ Creates a log analytics solution. Deletes the solution in the subscription. ### [Update-AzMonitorLogAnalyticsSolution](Update-AzMonitorLogAnalyticsSolution.md) -update the tags of a solution. +Update the tags of a solution. diff --git a/src/MonitoringSolutions/MonitoringSolutions.Autorest/docs/Update-AzMonitorLogAnalyticsSolution.md b/src/MonitoringSolutions/MonitoringSolutions.Autorest/docs/Update-AzMonitorLogAnalyticsSolution.md index f6de6b22c89b..4ea41171c9f3 100644 --- a/src/MonitoringSolutions/MonitoringSolutions.Autorest/docs/Update-AzMonitorLogAnalyticsSolution.md +++ b/src/MonitoringSolutions/MonitoringSolutions.Autorest/docs/Update-AzMonitorLogAnalyticsSolution.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzMonitorLogAnalyticsSolution ## SYNOPSIS -update the tags of a solution. +Update the tags of a solution. ## SYNTAX @@ -25,7 +25,7 @@ Update-AzMonitorLogAnalyticsSolution -InputObject ``` ## DESCRIPTION -update the tags of a solution. +Update the tags of a solution. ## EXAMPLES diff --git a/src/MonitoringSolutions/MonitoringSolutions.Autorest/resources/README.md b/src/MonitoringSolutions/MonitoringSolutions.Autorest/resources/README.md deleted file mode 100644 index 937f07f8fec2..000000000000 --- a/src/MonitoringSolutions/MonitoringSolutions.Autorest/resources/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# Resources -This directory can contain any additional resources for module that are not required at runtime. This directory **does not** get packaged with the module. If you have assets for custom implementation, place them into the `..\custom` folder. - -## Info -- Modifiable: yes -- Generated: no -- Committed: yes -- Packaged: no - -## Purpose -Use this folder to put anything you want to keep around as part of the repository for the module, but is not something that is required for the module. For example, development files, packaged builds, or additional information. This is only intended to be used in repositories where the module's output directory is cleaned, but tangential resources for the module want to remain intact. \ No newline at end of file diff --git a/src/MonitoringSolutions/MonitoringSolutions/AutorestUpgradeLog.md b/src/MonitoringSolutions/MonitoringSolutions/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/MonitoringSolutions/MonitoringSolutions/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/MonitoringSolutions/MonitoringSolutions/ChangeLog.md b/src/MonitoringSolutions/MonitoringSolutions/ChangeLog.md index 287421919018..4ec8a8eea918 100644 --- a/src/MonitoringSolutions/MonitoringSolutions/ChangeLog.md +++ b/src/MonitoringSolutions/MonitoringSolutions/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 0.2.0 * Introduced various new features by upgrading code generator. Please see details [here](https://github.com/Azure/azure-powershell/blob/main/documentation/Autorest-powershell-v4-new-features.md). diff --git a/src/NeonPostgres/NeonPostgres.Autorest/Properties/AssemblyInfo.cs b/src/NeonPostgres/NeonPostgres.Autorest/Properties/AssemblyInfo.cs index 13dbd5f729f7..aa799a939130 100644 --- a/src/NeonPostgres/NeonPostgres.Autorest/Properties/AssemblyInfo.cs +++ b/src/NeonPostgres/NeonPostgres.Autorest/Properties/AssemblyInfo.cs @@ -20,7 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - NeonPostgres")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.1")] -[assembly: System.Reflection.AssemblyVersionAttribute("0.1.1")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/NeonPostgres/NeonPostgres.Autorest/docs/Az.NeonPostgres.md b/src/NeonPostgres/NeonPostgres.Autorest/docs/Az.NeonPostgres.md index 17bb26c5d98b..51ae53dab091 100644 --- a/src/NeonPostgres/NeonPostgres.Autorest/docs/Az.NeonPostgres.md +++ b/src/NeonPostgres/NeonPostgres.Autorest/docs/Az.NeonPostgres.md @@ -1,6 +1,6 @@ --- Module Name: Az.NeonPostgres -Module Guid: 088cadd3-a541-42cc-a886-a889207dee2d +Module Guid: f2101612-2cce-4489-9abb-a79c7978ee5b Download Help Link: https://learn.microsoft.com/powershell/module/az.neonpostgres Help Version: 1.0.0.0 Locale: en-US @@ -36,13 +36,13 @@ Get a Project Action to retrieve the connection URI for the Neon Database. ### [New-AzNeonPostgresBranch](New-AzNeonPostgresBranch.md) -create a Branch +Create a Branch ### [New-AzNeonPostgresOrganization](New-AzNeonPostgresOrganization.md) -create a OrganizationResource +Create a OrganizationResource ### [New-AzNeonPostgresProject](New-AzNeonPostgresProject.md) -create a Project +Create a Project ### [Remove-AzNeonPostgresBranch](Remove-AzNeonPostgresBranch.md) Delete a Branch @@ -54,11 +54,11 @@ Delete a OrganizationResource Delete a Project ### [Update-AzNeonPostgresBranch](Update-AzNeonPostgresBranch.md) -update a Branch +Update a Branch ### [Update-AzNeonPostgresOrganization](Update-AzNeonPostgresOrganization.md) -update a OrganizationResource +Update a OrganizationResource ### [Update-AzNeonPostgresProject](Update-AzNeonPostgresProject.md) -update a Project +Update a Project diff --git a/src/NeonPostgres/NeonPostgres.Autorest/docs/New-AzNeonPostgresBranch.md b/src/NeonPostgres/NeonPostgres.Autorest/docs/New-AzNeonPostgresBranch.md index facd7a4aa3d8..fa6ab15ed421 100644 --- a/src/NeonPostgres/NeonPostgres.Autorest/docs/New-AzNeonPostgresBranch.md +++ b/src/NeonPostgres/NeonPostgres.Autorest/docs/New-AzNeonPostgresBranch.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzNeonPostgresBranch ## SYNOPSIS -create a Branch +Create a Branch ## SYNTAX @@ -37,7 +37,7 @@ New-AzNeonPostgresBranch -Name -OrganizationName -ProjectName ``` ## DESCRIPTION -create a Branch +Create a Branch ## EXAMPLES diff --git a/src/NeonPostgres/NeonPostgres.Autorest/docs/New-AzNeonPostgresOrganization.md b/src/NeonPostgres/NeonPostgres.Autorest/docs/New-AzNeonPostgresOrganization.md index 8134a33f2be4..3d409b46a980 100644 --- a/src/NeonPostgres/NeonPostgres.Autorest/docs/New-AzNeonPostgresOrganization.md +++ b/src/NeonPostgres/NeonPostgres.Autorest/docs/New-AzNeonPostgresOrganization.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzNeonPostgresOrganization ## SYNOPSIS -create a OrganizationResource +Create a OrganizationResource ## SYNTAX @@ -44,7 +44,7 @@ New-AzNeonPostgresOrganization -Name -ResourceGroupName -JsonS ``` ## DESCRIPTION -create a OrganizationResource +Create a OrganizationResource ## EXAMPLES diff --git a/src/NeonPostgres/NeonPostgres.Autorest/docs/New-AzNeonPostgresProject.md b/src/NeonPostgres/NeonPostgres.Autorest/docs/New-AzNeonPostgresProject.md index 4a0881e4edeb..4259e004689e 100644 --- a/src/NeonPostgres/NeonPostgres.Autorest/docs/New-AzNeonPostgresProject.md +++ b/src/NeonPostgres/NeonPostgres.Autorest/docs/New-AzNeonPostgresProject.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzNeonPostgresProject ## SYNOPSIS -create a Project +Create a Project ## SYNTAX @@ -41,7 +41,7 @@ New-AzNeonPostgresProject -Name -OrganizationName -ResourceGro ``` ## DESCRIPTION -create a Project +Create a Project ## EXAMPLES diff --git a/src/NeonPostgres/NeonPostgres.Autorest/docs/Update-AzNeonPostgresBranch.md b/src/NeonPostgres/NeonPostgres.Autorest/docs/Update-AzNeonPostgresBranch.md index 54e014ecb4f0..0d253bff656d 100644 --- a/src/NeonPostgres/NeonPostgres.Autorest/docs/Update-AzNeonPostgresBranch.md +++ b/src/NeonPostgres/NeonPostgres.Autorest/docs/Update-AzNeonPostgresBranch.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzNeonPostgresBranch ## SYNOPSIS -update a Branch +Update a Branch ## SYNTAX @@ -50,7 +50,7 @@ Update-AzNeonPostgresBranch -Name -ProjectInputObject -ResourceGroupName -Js ``` ## DESCRIPTION -update a OrganizationResource +Update a OrganizationResource ## EXAMPLES diff --git a/src/NeonPostgres/NeonPostgres.Autorest/docs/Update-AzNeonPostgresProject.md b/src/NeonPostgres/NeonPostgres.Autorest/docs/Update-AzNeonPostgresProject.md index 1d1f3e875e9d..b6c94d3eacf5 100644 --- a/src/NeonPostgres/NeonPostgres.Autorest/docs/Update-AzNeonPostgresProject.md +++ b/src/NeonPostgres/NeonPostgres.Autorest/docs/Update-AzNeonPostgresProject.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzNeonPostgresProject ## SYNOPSIS -update a Project +Update a Project ## SYNTAX @@ -55,7 +55,7 @@ Update-AzNeonPostgresProject -Name -OrganizationInputObject ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 0.2.0 * Support to Manage Neon Projects