diff --git a/generated/Chaos/Chaos.Autorest/Properties/AssemblyInfo.cs b/generated/Chaos/Chaos.Autorest/Properties/AssemblyInfo.cs
deleted file mode 100644
index 57a6c1bd8d53..000000000000
--- a/generated/Chaos/Chaos.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 - Chaos")]
-[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("1a8283a2-0dad-4783-a7db-5f9b9998ed70")]
-[assembly: AssemblyVersion("0.1.1")]
-[assembly: AssemblyFileVersion("0.1.1")]
diff --git a/generated/Chaos/Chaos.Autorest/exports/Get-AzChaosCapability.ps1 b/generated/Chaos/Chaos.Autorest/exports/Get-AzChaosCapability.ps1
index f9af38431554..a70faa921d5d 100644
--- a/generated/Chaos/Chaos.Autorest/exports/Get-AzChaosCapability.ps1
+++ b/generated/Chaos/Chaos.Autorest/exports/Get-AzChaosCapability.ps1
@@ -199,6 +199,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ }
+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
@@ -223,8 +231,6 @@ begin {
List = 'Az.Chaos.private\Get-AzChaosCapability_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.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -238,6 +244,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -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/Chaos/Chaos.Autorest/exports/Get-AzChaosCapabilityType.ps1 b/generated/Chaos/Chaos.Autorest/exports/Get-AzChaosCapabilityType.ps1
index 5b25de200867..13b6702d8d73 100644
--- a/generated/Chaos/Chaos.Autorest/exports/Get-AzChaosCapabilityType.ps1
+++ b/generated/Chaos/Chaos.Autorest/exports/Get-AzChaosCapabilityType.ps1
@@ -203,6 +203,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ }
+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
@@ -228,8 +236,6 @@ begin {
List = 'Az.Chaos.private\Get-AzChaosCapabilityType_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.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -243,6 +249,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -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/Chaos/Chaos.Autorest/exports/Get-AzChaosExecutionExperimentDetail.ps1 b/generated/Chaos/Chaos.Autorest/exports/Get-AzChaosExecutionExperimentDetail.ps1
index 0648255bb877..60ce7046e927 100644
--- a/generated/Chaos/Chaos.Autorest/exports/Get-AzChaosExecutionExperimentDetail.ps1
+++ b/generated/Chaos/Chaos.Autorest/exports/Get-AzChaosExecutionExperimentDetail.ps1
@@ -166,6 +166,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-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 {
ExecutionViaIdentityExperiment = 'Az.Chaos.private\Get-AzChaosExecutionExperimentDetail_ExecutionViaIdentityExperiment';
}
if (('Execution') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.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/Chaos/Chaos.Autorest/exports/Get-AzChaosExperiment.ps1 b/generated/Chaos/Chaos.Autorest/exports/Get-AzChaosExperiment.ps1
index f99ffa1ebe13..810164334608 100644
--- a/generated/Chaos/Chaos.Autorest/exports/Get-AzChaosExperiment.ps1
+++ b/generated/Chaos/Chaos.Autorest/exports/Get-AzChaosExperiment.ps1
@@ -159,6 +159,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-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 {
List1 = 'Az.Chaos.private\Get-AzChaosExperiment_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.Chaos.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/Chaos/Chaos.Autorest/exports/Get-AzChaosExperimentExecution.ps1 b/generated/Chaos/Chaos.Autorest/exports/Get-AzChaosExperimentExecution.ps1
index dda6e3b404c5..bee2b0f346cc 100644
--- a/generated/Chaos/Chaos.Autorest/exports/Get-AzChaosExperimentExecution.ps1
+++ b/generated/Chaos/Chaos.Autorest/exports/Get-AzChaosExperimentExecution.ps1
@@ -171,6 +171,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ }
+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
@@ -195,8 +203,6 @@ begin {
List = 'Az.Chaos.private\Get-AzChaosExperimentExecution_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.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -210,6 +216,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -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/Chaos/Chaos.Autorest/exports/Get-AzChaosTarget.ps1 b/generated/Chaos/Chaos.Autorest/exports/Get-AzChaosTarget.ps1
index fa3c682ad7a5..078777a2212c 100644
--- a/generated/Chaos/Chaos.Autorest/exports/Get-AzChaosTarget.ps1
+++ b/generated/Chaos/Chaos.Autorest/exports/Get-AzChaosTarget.ps1
@@ -168,6 +168,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ }
+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
@@ -191,8 +199,6 @@ begin {
List = 'Az.Chaos.private\Get-AzChaosTarget_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.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -206,6 +212,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -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/Chaos/Chaos.Autorest/exports/Get-AzChaosTargetType.ps1 b/generated/Chaos/Chaos.Autorest/exports/Get-AzChaosTargetType.ps1
index 7c39fdbdd7e4..f98449eba488 100644
--- a/generated/Chaos/Chaos.Autorest/exports/Get-AzChaosTargetType.ps1
+++ b/generated/Chaos/Chaos.Autorest/exports/Get-AzChaosTargetType.ps1
@@ -171,6 +171,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ }
+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
@@ -195,8 +203,6 @@ begin {
List = 'Az.Chaos.private\Get-AzChaosTargetType_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.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -210,6 +216,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -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/Chaos/Chaos.Autorest/exports/New-AzChaosActionObject.ps1 b/generated/Chaos/Chaos.Autorest/exports/New-AzChaosActionObject.ps1
index 5b1494425431..54962ca1d137 100644
--- a/generated/Chaos/Chaos.Autorest/exports/New-AzChaosActionObject.ps1
+++ b/generated/Chaos/Chaos.Autorest/exports/New-AzChaosActionObject.ps1
@@ -52,6 +52,9 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.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()
}
@@ -79,6 +82,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -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/Chaos/Chaos.Autorest/exports/New-AzChaosBranchObject.ps1 b/generated/Chaos/Chaos.Autorest/exports/New-AzChaosBranchObject.ps1
index 32456fc89012..a4ee23302afa 100644
--- a/generated/Chaos/Chaos.Autorest/exports/New-AzChaosBranchObject.ps1
+++ b/generated/Chaos/Chaos.Autorest/exports/New-AzChaosBranchObject.ps1
@@ -61,6 +61,9 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.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()
}
@@ -88,6 +91,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -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/Chaos/Chaos.Autorest/exports/New-AzChaosCapability.ps1 b/generated/Chaos/Chaos.Autorest/exports/New-AzChaosCapability.ps1
index c3aeea7e8696..9dc13f420285 100644
--- a/generated/Chaos/Chaos.Autorest/exports/New-AzChaosCapability.ps1
+++ b/generated/Chaos/Chaos.Autorest/exports/New-AzChaosCapability.ps1
@@ -211,6 +211,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ }
+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
@@ -236,8 +244,6 @@ begin {
CreateViaJsonString = 'Az.Chaos.private\New-AzChaosCapability_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.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -251,6 +257,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -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/Chaos/Chaos.Autorest/exports/New-AzChaosExperiment.ps1 b/generated/Chaos/Chaos.Autorest/exports/New-AzChaosExperiment.ps1
index 417f518b97d2..3c999fefbfdd 100644
--- a/generated/Chaos/Chaos.Autorest/exports/New-AzChaosExperiment.ps1
+++ b/generated/Chaos/Chaos.Autorest/exports/New-AzChaosExperiment.ps1
@@ -180,6 +180,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-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.Chaos.private\New-AzChaosExperiment_CreateViaJsonString';
}
if (('CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.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/Chaos/Chaos.Autorest/exports/New-AzChaosSelectorObject.ps1 b/generated/Chaos/Chaos.Autorest/exports/New-AzChaosSelectorObject.ps1
index ae172fe4e670..b77e23f48f18 100644
--- a/generated/Chaos/Chaos.Autorest/exports/New-AzChaosSelectorObject.ps1
+++ b/generated/Chaos/Chaos.Autorest/exports/New-AzChaosSelectorObject.ps1
@@ -53,6 +53,9 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.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()
}
@@ -80,6 +83,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -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/Chaos/Chaos.Autorest/exports/New-AzChaosStepObject.ps1 b/generated/Chaos/Chaos.Autorest/exports/New-AzChaosStepObject.ps1
index d3acf1dfa63a..bc889bab845a 100644
--- a/generated/Chaos/Chaos.Autorest/exports/New-AzChaosStepObject.ps1
+++ b/generated/Chaos/Chaos.Autorest/exports/New-AzChaosStepObject.ps1
@@ -64,6 +64,9 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.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()
}
@@ -91,6 +94,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -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/Chaos/Chaos.Autorest/exports/New-AzChaosTarget.ps1 b/generated/Chaos/Chaos.Autorest/exports/New-AzChaosTarget.ps1
index b3a8b660cee3..4bb31d0ce5e9 100644
--- a/generated/Chaos/Chaos.Autorest/exports/New-AzChaosTarget.ps1
+++ b/generated/Chaos/Chaos.Autorest/exports/New-AzChaosTarget.ps1
@@ -197,6 +197,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-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 {
CreateViaJsonString = 'Az.Chaos.private\New-AzChaosTarget_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.Chaos.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/Chaos/Chaos.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/Chaos/Chaos.Autorest/exports/ProxyCmdletDefinitions.ps1
index e461976e6d0a..4d404b2ac93a 100644
--- a/generated/Chaos/Chaos.Autorest/exports/ProxyCmdletDefinitions.ps1
+++ b/generated/Chaos/Chaos.Autorest/exports/ProxyCmdletDefinitions.ps1
@@ -203,6 +203,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ }
+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
@@ -228,8 +236,6 @@ begin {
List = 'Az.Chaos.private\Get-AzChaosCapabilityType_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.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -243,6 +249,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -471,6 +480,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ }
+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
@@ -495,8 +512,6 @@ begin {
List = 'Az.Chaos.private\Get-AzChaosCapability_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.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -510,6 +525,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -705,6 +723,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ }
+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
@@ -728,8 +754,6 @@ begin {
ExecutionViaIdentityExperiment = 'Az.Chaos.private\Get-AzChaosExecutionExperimentDetail_ExecutionViaIdentityExperiment';
}
if (('Execution') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -743,6 +767,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -943,6 +970,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ }
+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
@@ -967,8 +1002,6 @@ begin {
List = 'Az.Chaos.private\Get-AzChaosExperimentExecution_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.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -982,6 +1015,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -1170,6 +1206,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ }
+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
@@ -1194,8 +1238,6 @@ begin {
List1 = 'Az.Chaos.private\Get-AzChaosExperiment_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.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -1209,6 +1251,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -1409,6 +1454,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ }
+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
@@ -1433,8 +1486,6 @@ begin {
List = 'Az.Chaos.private\Get-AzChaosTargetType_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.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -1448,6 +1499,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -1645,6 +1699,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ }
+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
@@ -1668,8 +1730,6 @@ begin {
List = 'Az.Chaos.private\Get-AzChaosTarget_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.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -1683,6 +1743,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -1923,6 +1986,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ }
+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
@@ -1948,8 +2019,6 @@ begin {
CreateViaJsonString = 'Az.Chaos.private\New-AzChaosCapability_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.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -1963,6 +2032,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -2172,6 +2244,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ }
+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
@@ -2194,8 +2274,6 @@ begin {
CreateViaJsonString = 'Az.Chaos.private\New-AzChaosExperiment_CreateViaJsonString';
}
if (('CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -2209,6 +2287,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -2435,6 +2516,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ }
+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
@@ -2459,8 +2548,6 @@ begin {
CreateViaJsonString = 'Az.Chaos.private\New-AzChaosTarget_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.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -2474,6 +2561,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -2694,6 +2784,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ }
+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
@@ -2717,8 +2815,6 @@ begin {
DeleteViaIdentityTarget = 'Az.Chaos.private\Remove-AzChaosCapability_DeleteViaIdentityTarget';
}
if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -2732,6 +2828,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -2916,6 +3015,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ }
+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
@@ -2938,8 +3045,6 @@ begin {
DeleteViaIdentity = 'Az.Chaos.private\Remove-AzChaosExperiment_DeleteViaIdentity';
}
if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -2953,6 +3058,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -3143,6 +3251,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ }
+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
@@ -3165,8 +3281,6 @@ begin {
DeleteViaIdentity = 'Az.Chaos.private\Remove-AzChaosTarget_DeleteViaIdentity';
}
if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -3180,6 +3294,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -3358,6 +3475,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ }
+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
@@ -3380,8 +3505,6 @@ begin {
StartViaIdentity = 'Az.Chaos.private\Start-AzChaosExperiment_StartViaIdentity';
}
if (('Start') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -3395,6 +3518,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -3573,6 +3699,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ }
+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
@@ -3595,8 +3729,6 @@ begin {
CancelViaIdentity = 'Az.Chaos.private\Stop-AzChaosExperiment_CancelViaIdentity';
}
if (('Cancel') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -3610,6 +3742,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -3824,6 +3959,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ }
+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
@@ -3847,8 +3990,6 @@ begin {
UpdateViaIdentityTargetExpanded = 'Az.Chaos.private\Update-AzChaosCapability_UpdateViaIdentityTargetExpanded';
}
if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -3862,6 +4003,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -3988,7 +4132,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.Chaos.Category('Body')]
[System.Nullable[System.Boolean]]
- # Decides if enable a system assigned identity for the resource.
+ # Determines whether to enable a system-assigned identity for the resource.
${EnableSystemAssignedIdentity},
[Parameter()]
@@ -4095,6 +4239,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ }
+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
@@ -4117,8 +4269,6 @@ begin {
UpdateViaIdentityExpanded = 'Az.Chaos.private\Update-AzChaosExperiment_UpdateViaIdentityExpanded';
}
if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -4132,6 +4282,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -4332,6 +4485,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ }
+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
@@ -4354,8 +4515,6 @@ begin {
UpdateViaIdentityExpanded = 'Az.Chaos.private\Update-AzChaosTarget_UpdateViaIdentityExpanded';
}
if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -4369,6 +4528,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -4450,6 +4612,9 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.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()
}
@@ -4477,6 +4642,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -4567,6 +4735,9 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.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()
}
@@ -4594,6 +4765,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -4676,6 +4850,9 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.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()
}
@@ -4703,6 +4880,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -4796,6 +4976,9 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.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()
}
@@ -4823,6 +5006,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -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/Chaos/Chaos.Autorest/exports/Remove-AzChaosCapability.ps1 b/generated/Chaos/Chaos.Autorest/exports/Remove-AzChaosCapability.ps1
index a8c49afaec84..a83ac172c7a5 100644
--- a/generated/Chaos/Chaos.Autorest/exports/Remove-AzChaosCapability.ps1
+++ b/generated/Chaos/Chaos.Autorest/exports/Remove-AzChaosCapability.ps1
@@ -191,6 +191,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ }
+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
@@ -214,8 +222,6 @@ begin {
DeleteViaIdentityTarget = 'Az.Chaos.private\Remove-AzChaosCapability_DeleteViaIdentityTarget';
}
if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -229,6 +235,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -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/Chaos/Chaos.Autorest/exports/Remove-AzChaosExperiment.ps1 b/generated/Chaos/Chaos.Autorest/exports/Remove-AzChaosExperiment.ps1
index e5c6f441027d..84fa4c45fbad 100644
--- a/generated/Chaos/Chaos.Autorest/exports/Remove-AzChaosExperiment.ps1
+++ b/generated/Chaos/Chaos.Autorest/exports/Remove-AzChaosExperiment.ps1
@@ -155,6 +155,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ }
+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
@@ -177,8 +185,6 @@ begin {
DeleteViaIdentity = 'Az.Chaos.private\Remove-AzChaosExperiment_DeleteViaIdentity';
}
if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -192,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/Chaos/Chaos.Autorest/exports/Remove-AzChaosTarget.ps1 b/generated/Chaos/Chaos.Autorest/exports/Remove-AzChaosTarget.ps1
index 9a7c0b22ed38..1d9d36afe0aa 100644
--- a/generated/Chaos/Chaos.Autorest/exports/Remove-AzChaosTarget.ps1
+++ b/generated/Chaos/Chaos.Autorest/exports/Remove-AzChaosTarget.ps1
@@ -161,6 +161,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-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 {
DeleteViaIdentity = 'Az.Chaos.private\Remove-AzChaosTarget_DeleteViaIdentity';
}
if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.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/Chaos/Chaos.Autorest/exports/Start-AzChaosExperiment.ps1 b/generated/Chaos/Chaos.Autorest/exports/Start-AzChaosExperiment.ps1
index 8c42703553c1..deb225c282d3 100644
--- a/generated/Chaos/Chaos.Autorest/exports/Start-AzChaosExperiment.ps1
+++ b/generated/Chaos/Chaos.Autorest/exports/Start-AzChaosExperiment.ps1
@@ -149,6 +149,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ }
+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
@@ -171,8 +179,6 @@ begin {
StartViaIdentity = 'Az.Chaos.private\Start-AzChaosExperiment_StartViaIdentity';
}
if (('Start') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -186,6 +192,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -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/Chaos/Chaos.Autorest/exports/Stop-AzChaosExperiment.ps1 b/generated/Chaos/Chaos.Autorest/exports/Stop-AzChaosExperiment.ps1
index ba2645dd3ec6..b3a30bbb17f8 100644
--- a/generated/Chaos/Chaos.Autorest/exports/Stop-AzChaosExperiment.ps1
+++ b/generated/Chaos/Chaos.Autorest/exports/Stop-AzChaosExperiment.ps1
@@ -149,6 +149,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ }
+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
@@ -171,8 +179,6 @@ begin {
CancelViaIdentity = 'Az.Chaos.private\Stop-AzChaosExperiment_CancelViaIdentity';
}
if (('Cancel') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -186,6 +192,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -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/Chaos/Chaos.Autorest/exports/Update-AzChaosCapability.ps1 b/generated/Chaos/Chaos.Autorest/exports/Update-AzChaosCapability.ps1
index 87c79327fa7c..337a2cd871ba 100644
--- a/generated/Chaos/Chaos.Autorest/exports/Update-AzChaosCapability.ps1
+++ b/generated/Chaos/Chaos.Autorest/exports/Update-AzChaosCapability.ps1
@@ -185,6 +185,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ }
+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
@@ -208,8 +216,6 @@ begin {
UpdateViaIdentityTargetExpanded = 'Az.Chaos.private\Update-AzChaosCapability_UpdateViaIdentityTargetExpanded';
}
if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -223,6 +229,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -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/Chaos/Chaos.Autorest/exports/Update-AzChaosExperiment.ps1 b/generated/Chaos/Chaos.Autorest/exports/Update-AzChaosExperiment.ps1
index 366fa5374f94..9881b20aeadc 100644
--- a/generated/Chaos/Chaos.Autorest/exports/Update-AzChaosExperiment.ps1
+++ b/generated/Chaos/Chaos.Autorest/exports/Update-AzChaosExperiment.ps1
@@ -97,7 +97,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.Chaos.Category('Body')]
[System.Nullable[System.Boolean]]
- # Decides if enable a system assigned identity for the resource.
+ # Determines whether to enable a system-assigned identity for the resource.
${EnableSystemAssignedIdentity},
[Parameter()]
@@ -204,6 +204,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ }
+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
@@ -226,8 +234,6 @@ begin {
UpdateViaIdentityExpanded = 'Az.Chaos.private\Update-AzChaosExperiment_UpdateViaIdentityExpanded';
}
if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -241,6 +247,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -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/Chaos/Chaos.Autorest/exports/Update-AzChaosTarget.ps1 b/generated/Chaos/Chaos.Autorest/exports/Update-AzChaosTarget.ps1
index c5347279bd7b..efc3f8b19fb4 100644
--- a/generated/Chaos/Chaos.Autorest/exports/Update-AzChaosTarget.ps1
+++ b/generated/Chaos/Chaos.Autorest/exports/Update-AzChaosTarget.ps1
@@ -171,6 +171,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-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.Chaos.private\Update-AzChaosTarget_UpdateViaIdentityExpanded';
}
if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.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/Chaos/Chaos.Autorest/generated/api/Chaos.cs b/generated/Chaos/Chaos.Autorest/generated/api/Chaos.cs
index 2fdc7b002360..0062ec744bbc 100644
--- a/generated/Chaos/Chaos.Autorest/generated/api/Chaos.cs
+++ b/generated/Chaos/Chaos.Autorest/generated/api/Chaos.cs
@@ -14,7 +14,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Chaos
public partial class Chaos
{
- /// Update a Capability resource that extends a Target resource.
+ /// update a Capability resource that extends a Target resource.
/// GUID that represents an Azure subscription ID.
/// String that represents an Azure resource group.
/// String that represents a resource provider namespace.
@@ -75,7 +75,7 @@ public partial class Chaos
}
}
- /// Update a Capability resource that extends a Target resource.
+ /// update a Capability resource that extends a Target resource.
///
/// Capability resource to be created or updated.
/// a delegate that is called when the remote service returns 200 (OK).
@@ -146,7 +146,7 @@ public partial class Chaos
}
}
- /// Update a Capability resource that extends a Target resource.
+ /// update a Capability resource that extends a Target resource.
///
/// Capability resource to be created or updated.
/// an instance that will receive events.
@@ -215,7 +215,7 @@ public partial class Chaos
}
}
- /// Update a Capability resource that extends a Target resource.
+ /// update a Capability resource that extends a Target resource.
/// GUID that represents an Azure subscription ID.
/// String that represents an Azure resource group.
/// String that represents a resource provider namespace.
@@ -275,7 +275,7 @@ public partial class Chaos
}
}
- /// Update a Capability resource that extends a Target resource.
+ /// update a Capability resource that extends a Target resource.
/// GUID that represents an Azure subscription ID.
/// String that represents an Azure resource group.
/// String that represents a resource provider namespace.
@@ -333,7 +333,7 @@ public partial class Chaos
}
}
- /// Update a Capability resource that extends a Target resource.
+ /// update a Capability resource that extends a Target resource.
/// GUID that represents an Azure subscription ID.
/// String that represents an Azure resource group.
/// String that represents a resource provider namespace.
@@ -2409,17 +2409,18 @@ public partial class Chaos
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.Chaos.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; }
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; }
_response = await sendTask;
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Chaos.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
@@ -2432,7 +2433,10 @@ public partial class Chaos
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.Chaos.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
@@ -2560,17 +2564,18 @@ public partial class Chaos
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.Chaos.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; }
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; }
_response = await sendTask;
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Chaos.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
@@ -2583,7 +2588,10 @@ public partial class Chaos
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.Chaos.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
@@ -2708,7 +2716,7 @@ public partial class Chaos
}
}
- /// Update a Experiment resource.
+ /// update a Experiment resource.
/// GUID that represents an Azure subscription ID.
/// String that represents an Azure resource group.
/// String that represents a Experiment resource name.
@@ -2757,7 +2765,7 @@ public partial class Chaos
}
}
- /// Update a Experiment resource.
+ /// update a Experiment resource.
///
/// Experiment resource to be created or updated.
/// a delegate that is called when the remote service returns 200 (OK).
@@ -2816,7 +2824,7 @@ public partial class Chaos
}
}
- /// Update a Experiment resource.
+ /// update a Experiment resource.
///
/// Experiment resource to be created or updated.
/// an instance that will receive events.
@@ -2873,7 +2881,7 @@ public partial class Chaos
}
}
- /// Update a Experiment resource.
+ /// update a Experiment resource.
/// GUID that represents an Azure subscription ID.
/// String that represents an Azure resource group.
/// String that represents a Experiment resource name.
@@ -2921,7 +2929,7 @@ public partial class Chaos
}
}
- /// Update a Experiment resource.
+ /// update a Experiment resource.
/// GUID that represents an Azure subscription ID.
/// String that represents an Azure resource group.
/// String that represents a Experiment resource name.
@@ -2967,7 +2975,7 @@ public partial class Chaos
}
}
- /// Update a Experiment resource.
+ /// update a Experiment resource.
/// GUID that represents an Azure subscription ID.
/// String that represents an Azure resource group.
/// String that represents a Experiment resource name.
@@ -3031,16 +3039,17 @@ public partial class Chaos
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.Chaos.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; }
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; }
_response = await sendTask;
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Chaos.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
@@ -3053,7 +3062,10 @@ public partial class Chaos
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.Chaos.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
@@ -3181,16 +3193,17 @@ public partial class Chaos
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.Chaos.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; }
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; }
_response = await sendTask;
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Chaos.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
@@ -3203,7 +3216,10 @@ public partial class Chaos
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.Chaos.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
@@ -3444,17 +3460,18 @@ public partial class Chaos
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.Chaos.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; }
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; }
_response = await sendTask;
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Chaos.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
@@ -3467,7 +3484,10 @@ public partial class Chaos
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.Chaos.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
@@ -5808,17 +5828,18 @@ public partial class Chaos
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.Chaos.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; }
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; }
_response = await sendTask;
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Chaos.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
@@ -5831,7 +5852,10 @@ public partial class Chaos
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.Chaos.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
@@ -5959,17 +5983,18 @@ public partial class Chaos
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.Chaos.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; }
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; }
_response = await sendTask;
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Chaos.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
@@ -5982,7 +6007,10 @@ public partial class Chaos
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.Chaos.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
@@ -6428,17 +6456,18 @@ public partial class Chaos
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.Chaos.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; }
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; }
_response = await sendTask;
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Chaos.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
@@ -6451,7 +6480,10 @@ public partial class Chaos
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.Chaos.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
@@ -6579,17 +6611,18 @@ public partial class Chaos
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.Chaos.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; }
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; }
_response = await sendTask;
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Chaos.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
@@ -6602,7 +6635,10 @@ public partial class Chaos
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.Chaos.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
@@ -7980,7 +8016,7 @@ public partial class Chaos
}
}
- /// Update a Target resource that extends a tracked regional resource.
+ /// update a Target resource that extends a tracked regional resource.
/// GUID that represents an Azure subscription ID.
/// String that represents an Azure resource group.
/// String that represents a resource provider namespace.
@@ -8038,7 +8074,7 @@ public partial class Chaos
}
}
- /// Update a Target resource that extends a tracked regional resource.
+ /// update a Target resource that extends a tracked regional resource.
///
/// Target resource to be created or updated.
/// a delegate that is called when the remote service returns 200 (OK).
@@ -8106,7 +8142,7 @@ public partial class Chaos
}
}
- /// Update a Target resource that extends a tracked regional resource.
+ /// update a Target resource that extends a tracked regional resource.
///
/// Target resource to be created or updated.
/// an instance that will receive events.
@@ -8172,7 +8208,7 @@ public partial class Chaos
}
}
- /// Update a Target resource that extends a tracked regional resource.
+ /// update a Target resource that extends a tracked regional resource.
/// GUID that represents an Azure subscription ID.
/// String that represents an Azure resource group.
/// String that represents a resource provider namespace.
@@ -8229,7 +8265,7 @@ public partial class Chaos
}
}
- /// Update a Target resource that extends a tracked regional resource.
+ /// update a Target resource that extends a tracked regional resource.
/// GUID that represents an Azure subscription ID.
/// String that represents an Azure resource group.
/// String that represents a resource provider namespace.
@@ -8284,7 +8320,7 @@ public partial class Chaos
}
}
- /// Update a Target resource that extends a tracked regional resource.
+ /// update a Target resource that extends a tracked regional resource.
/// GUID that represents an Azure subscription ID.
/// String that represents an Azure resource group.
/// String that represents a resource provider namespace.
diff --git a/generated/Chaos/Chaos.Autorest/generated/api/Models/Capability.cs b/generated/Chaos/Chaos.Autorest/generated/api/Models/Capability.cs
index 34e8bd217f84..cfdc255a92bf 100644
--- a/generated/Chaos/Chaos.Autorest/generated/api/Models/Capability.cs
+++ b/generated/Chaos/Chaos.Autorest/generated/api/Models/Capability.cs
@@ -29,34 +29,52 @@ public partial class Capability :
public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Id; }
/// Internal Acessors for Description
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityPropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityPropertiesInternal)Property).Description = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityPropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityPropertiesInternal)Property).Description = value ?? null; }
/// Internal Acessors for ParametersSchema
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityInternal.ParametersSchema { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityPropertiesInternal)Property).ParametersSchema; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityPropertiesInternal)Property).ParametersSchema = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityInternal.ParametersSchema { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityPropertiesInternal)Property).ParametersSchema; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityPropertiesInternal)Property).ParametersSchema = value ?? null; }
/// Internal Acessors for Property
Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityProperties Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.CapabilityProperties()); set { {_property = value;} } }
/// Internal Acessors for Publisher
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityInternal.Publisher { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityPropertiesInternal)Property).Publisher; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityPropertiesInternal)Property).Publisher = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityInternal.Publisher { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityPropertiesInternal)Property).Publisher; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityPropertiesInternal)Property).Publisher = value ?? null; }
/// Internal Acessors for SystemData
Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.SystemData()); set { {_systemData = value;} } }
+ /// Internal Acessors for SystemDataCreatedAt
+ global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); }
+
+ /// Internal Acessors for SystemDataCreatedBy
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; }
+
+ /// Internal Acessors for SystemDataCreatedByType
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; }
+
+ /// Internal Acessors for SystemDataLastModifiedAt
+ global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); }
+
+ /// Internal Acessors for SystemDataLastModifiedBy
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; }
+
+ /// Internal Acessors for SystemDataLastModifiedByType
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; }
+
/// Internal Acessors for TargetType
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityInternal.TargetType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityPropertiesInternal)Property).TargetType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityPropertiesInternal)Property).TargetType = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityInternal.TargetType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityPropertiesInternal)Property).TargetType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityPropertiesInternal)Property).TargetType = value ?? null; }
/// Internal Acessors for Urn
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityInternal.Urn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityPropertiesInternal)Property).Urn; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityPropertiesInternal)Property).Urn = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityInternal.Urn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityPropertiesInternal)Property).Urn; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityPropertiesInternal)Property).Urn = value ?? null; }
/// Internal Acessors for Id
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Id = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Id = value ?? null; }
/// Internal Acessors for Name
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Name = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Name = value ?? null; }
/// Internal Acessors for Type
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Type = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Type = value ?? null; }
/// The name of the resource
[Microsoft.Azure.PowerShell.Cmdlets.Chaos.Origin(Microsoft.Azure.PowerShell.Cmdlets.Chaos.PropertyOrigin.Inherited)]
@@ -90,27 +108,27 @@ public partial class Capability :
/// The timestamp of resource creation (UTC).
[Microsoft.Azure.PowerShell.Cmdlets.Chaos.Origin(Microsoft.Azure.PowerShell.Cmdlets.Chaos.PropertyOrigin.Inlined)]
- public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); }
+ public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedAt; }
/// The identity that created the resource.
[Microsoft.Azure.PowerShell.Cmdlets.Chaos.Origin(Microsoft.Azure.PowerShell.Cmdlets.Chaos.PropertyOrigin.Inlined)]
- public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; }
+ public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedBy; }
/// The type of identity that created the resource.
[Microsoft.Azure.PowerShell.Cmdlets.Chaos.Origin(Microsoft.Azure.PowerShell.Cmdlets.Chaos.PropertyOrigin.Inlined)]
- public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; }
+ public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedByType; }
/// The timestamp of resource last modification (UTC)
[Microsoft.Azure.PowerShell.Cmdlets.Chaos.Origin(Microsoft.Azure.PowerShell.Cmdlets.Chaos.PropertyOrigin.Inlined)]
- public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); }
+ public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedAt; }
/// The identity that last modified the resource.
[Microsoft.Azure.PowerShell.Cmdlets.Chaos.Origin(Microsoft.Azure.PowerShell.Cmdlets.Chaos.PropertyOrigin.Inlined)]
- public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; }
+ public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedBy; }
/// The type of identity that last modified the resource.
[Microsoft.Azure.PowerShell.Cmdlets.Chaos.Origin(Microsoft.Azure.PowerShell.Cmdlets.Chaos.PropertyOrigin.Inlined)]
- public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; }
+ public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedByType; }
/// String of the Target Type that this Capability extends.
[Microsoft.Azure.PowerShell.Cmdlets.Chaos.Origin(Microsoft.Azure.PowerShell.Cmdlets.Chaos.PropertyOrigin.Inlined)]
diff --git a/generated/Chaos/Chaos.Autorest/generated/api/Models/CapabilityType.cs b/generated/Chaos/Chaos.Autorest/generated/api/Models/CapabilityType.cs
index 46402bf0b2b2..5fbfd93ab6a0 100644
--- a/generated/Chaos/Chaos.Autorest/generated/api/Models/CapabilityType.cs
+++ b/generated/Chaos/Chaos.Autorest/generated/api/Models/CapabilityType.cs
@@ -20,11 +20,11 @@ public partial class CapabilityType :
/// Control plane actions necessary to execute capability type.
[Microsoft.Azure.PowerShell.Cmdlets.Chaos.Origin(Microsoft.Azure.PowerShell.Cmdlets.Chaos.PropertyOrigin.Inlined)]
- public System.Collections.Generic.List AzureRbacAction { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesInternal)Property).AzureRbacAction; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesInternal)Property).AzureRbacAction = value ?? null /* arrayOf */; }
+ public System.Collections.Generic.List AzureRbacAction { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesInternal)Property).AzureRbacAction; }
/// Data plane actions necessary to execute capability type.
[Microsoft.Azure.PowerShell.Cmdlets.Chaos.Origin(Microsoft.Azure.PowerShell.Cmdlets.Chaos.PropertyOrigin.Inlined)]
- public System.Collections.Generic.List AzureRbacDataAction { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesInternal)Property).AzureRbacDataAction; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesInternal)Property).AzureRbacDataAction = value ?? null /* arrayOf */; }
+ public System.Collections.Generic.List AzureRbacDataAction { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesInternal)Property).AzureRbacDataAction; }
/// Localized string of the description.
[Microsoft.Azure.PowerShell.Cmdlets.Chaos.Origin(Microsoft.Azure.PowerShell.Cmdlets.Chaos.PropertyOrigin.Inlined)]
@@ -51,47 +51,71 @@ public partial class CapabilityType :
[Microsoft.Azure.PowerShell.Cmdlets.Chaos.Origin(Microsoft.Azure.PowerShell.Cmdlets.Chaos.PropertyOrigin.Owned)]
public string Location { get => this._location; set => this._location = value; }
+ /// Internal Acessors for AzureRbacAction
+ System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypeInternal.AzureRbacAction { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesInternal)Property).AzureRbacAction; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesInternal)Property).AzureRbacAction = value ?? null /* arrayOf */; }
+
+ /// Internal Acessors for AzureRbacDataAction
+ System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypeInternal.AzureRbacDataAction { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesInternal)Property).AzureRbacDataAction; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesInternal)Property).AzureRbacDataAction = value ?? null /* arrayOf */; }
+
/// Internal Acessors for Description
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypeInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesInternal)Property).Description = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypeInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesInternal)Property).Description = value ?? null; }
/// Internal Acessors for DisplayName
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypeInternal.DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesInternal)Property).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesInternal)Property).DisplayName = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypeInternal.DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesInternal)Property).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesInternal)Property).DisplayName = value ?? null; }
/// Internal Acessors for Kind
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypeInternal.Kind { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesInternal)Property).Kind; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesInternal)Property).Kind = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypeInternal.Kind { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesInternal)Property).Kind; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesInternal)Property).Kind = value ?? null; }
/// Internal Acessors for ParametersSchema
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypeInternal.ParametersSchema { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesInternal)Property).ParametersSchema; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesInternal)Property).ParametersSchema = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypeInternal.ParametersSchema { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesInternal)Property).ParametersSchema; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesInternal)Property).ParametersSchema = value ?? null; }
/// Internal Acessors for Property
Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypeProperties Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypeInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.CapabilityTypeProperties()); set { {_property = value;} } }
/// Internal Acessors for Publisher
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypeInternal.Publisher { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesInternal)Property).Publisher; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesInternal)Property).Publisher = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypeInternal.Publisher { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesInternal)Property).Publisher; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesInternal)Property).Publisher = value ?? null; }
/// Internal Acessors for RuntimeProperty
- Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesRuntimeProperties Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypeInternal.RuntimeProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesInternal)Property).RuntimeProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesInternal)Property).RuntimeProperty = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesRuntimeProperties Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypeInternal.RuntimeProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesInternal)Property).RuntimeProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesInternal)Property).RuntimeProperty = value ?? null /* model class */; }
/// Internal Acessors for RuntimePropertyKind
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypeInternal.RuntimePropertyKind { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesInternal)Property).RuntimePropertyKind; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesInternal)Property).RuntimePropertyKind = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypeInternal.RuntimePropertyKind { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesInternal)Property).RuntimePropertyKind; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesInternal)Property).RuntimePropertyKind = value ?? null; }
/// Internal Acessors for SystemData
Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypeInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.SystemData()); set { {_systemData = value;} } }
+ /// Internal Acessors for SystemDataCreatedAt
+ global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypeInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); }
+
+ /// Internal Acessors for SystemDataCreatedBy
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypeInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; }
+
+ /// Internal Acessors for SystemDataCreatedByType
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypeInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; }
+
+ /// Internal Acessors for SystemDataLastModifiedAt
+ global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypeInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); }
+
+ /// Internal Acessors for SystemDataLastModifiedBy
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypeInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; }
+
+ /// Internal Acessors for SystemDataLastModifiedByType
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypeInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; }
+
/// Internal Acessors for TargetType
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypeInternal.TargetType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesInternal)Property).TargetType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesInternal)Property).TargetType = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypeInternal.TargetType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesInternal)Property).TargetType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesInternal)Property).TargetType = value ?? null; }
/// Internal Acessors for Urn
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypeInternal.Urn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesInternal)Property).Urn; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesInternal)Property).Urn = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypeInternal.Urn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesInternal)Property).Urn; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesInternal)Property).Urn = value ?? null; }
/// Internal Acessors for Id
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Id = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Id = value ?? null; }
/// Internal Acessors for Name
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Name = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Name = value ?? null; }
/// Internal Acessors for Type
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Type = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Type = value ?? null; }
/// The name of the resource
[Microsoft.Azure.PowerShell.Cmdlets.Chaos.Origin(Microsoft.Azure.PowerShell.Cmdlets.Chaos.PropertyOrigin.Inherited)]
@@ -129,27 +153,27 @@ public partial class CapabilityType :
/// The timestamp of resource creation (UTC).
[Microsoft.Azure.PowerShell.Cmdlets.Chaos.Origin(Microsoft.Azure.PowerShell.Cmdlets.Chaos.PropertyOrigin.Inlined)]
- public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); }
+ public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedAt; }
/// The identity that created the resource.
[Microsoft.Azure.PowerShell.Cmdlets.Chaos.Origin(Microsoft.Azure.PowerShell.Cmdlets.Chaos.PropertyOrigin.Inlined)]
- public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; }
+ public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedBy; }
/// The type of identity that created the resource.
[Microsoft.Azure.PowerShell.Cmdlets.Chaos.Origin(Microsoft.Azure.PowerShell.Cmdlets.Chaos.PropertyOrigin.Inlined)]
- public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; }
+ public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedByType; }
/// The timestamp of resource last modification (UTC)
[Microsoft.Azure.PowerShell.Cmdlets.Chaos.Origin(Microsoft.Azure.PowerShell.Cmdlets.Chaos.PropertyOrigin.Inlined)]
- public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); }
+ public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedAt; }
/// The identity that last modified the resource.
[Microsoft.Azure.PowerShell.Cmdlets.Chaos.Origin(Microsoft.Azure.PowerShell.Cmdlets.Chaos.PropertyOrigin.Inlined)]
- public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; }
+ public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedBy; }
/// The type of identity that last modified the resource.
[Microsoft.Azure.PowerShell.Cmdlets.Chaos.Origin(Microsoft.Azure.PowerShell.Cmdlets.Chaos.PropertyOrigin.Inlined)]
- public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; }
+ public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedByType; }
/// String of the Target Type that this Capability Type extends.
[Microsoft.Azure.PowerShell.Cmdlets.Chaos.Origin(Microsoft.Azure.PowerShell.Cmdlets.Chaos.PropertyOrigin.Inlined)]
diff --git a/generated/Chaos/Chaos.Autorest/generated/api/Models/CapabilityTypeProperties.cs b/generated/Chaos/Chaos.Autorest/generated/api/Models/CapabilityTypeProperties.cs
index cadbf22a74b2..8e1884b77746 100644
--- a/generated/Chaos/Chaos.Autorest/generated/api/Models/CapabilityTypeProperties.cs
+++ b/generated/Chaos/Chaos.Autorest/generated/api/Models/CapabilityTypeProperties.cs
@@ -67,7 +67,7 @@ public partial class CapabilityTypeProperties :
Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesRuntimeProperties Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesInternal.RuntimeProperty { get => (this._runtimeProperty = this._runtimeProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.CapabilityTypePropertiesRuntimeProperties()); set { {_runtimeProperty = value;} } }
/// Internal Acessors for RuntimePropertyKind
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesInternal.RuntimePropertyKind { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesRuntimePropertiesInternal)RuntimeProperty).Kind; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesRuntimePropertiesInternal)RuntimeProperty).Kind = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesInternal.RuntimePropertyKind { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesRuntimePropertiesInternal)RuntimeProperty).Kind; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesRuntimePropertiesInternal)RuntimeProperty).Kind = value ?? null; }
/// Internal Acessors for TargetType
string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapabilityTypePropertiesInternal.TargetType { get => this._targetType; set { {_targetType = value;} } }
diff --git a/generated/Chaos/Chaos.Autorest/generated/api/Models/ErrorResponse.cs b/generated/Chaos/Chaos.Autorest/generated/api/Models/ErrorResponse.cs
index 47612c8ac4eb..14a913af4985 100644
--- a/generated/Chaos/Chaos.Autorest/generated/api/Models/ErrorResponse.cs
+++ b/generated/Chaos/Chaos.Autorest/generated/api/Models/ErrorResponse.cs
@@ -40,22 +40,22 @@ public partial class ErrorResponse :
public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorDetailInternal)Error).Message; }
/// Internal Acessors for AdditionalInfo
- System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorDetailInternal)Error).AdditionalInfo = value; }
+ System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorDetailInternal)Error).AdditionalInfo = value ?? null /* arrayOf */; }
/// Internal Acessors for Code
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorDetailInternal)Error).Code = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorDetailInternal)Error).Code = value ?? null; }
/// Internal Acessors for Detail
- System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorDetailInternal)Error).Detail = value; }
+ System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorDetailInternal)Error).Detail = value ?? null /* arrayOf */; }
/// Internal Acessors for Error
Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ErrorDetail()); set { {_error = value;} } }
/// Internal Acessors for Message
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorDetailInternal)Error).Message = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorDetailInternal)Error).Message = value ?? null; }
/// Internal Acessors for Target
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorDetailInternal)Error).Target = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorDetailInternal)Error).Target = value ?? null; }
/// The error target.
[Microsoft.Azure.PowerShell.Cmdlets.Chaos.Origin(Microsoft.Azure.PowerShell.Cmdlets.Chaos.PropertyOrigin.Inlined)]
diff --git a/generated/Chaos/Chaos.Autorest/generated/api/Models/Experiment.cs b/generated/Chaos/Chaos.Autorest/generated/api/Models/Experiment.cs
index cf19a6ef5d47..1593707ae27e 100644
--- a/generated/Chaos/Chaos.Autorest/generated/api/Models/Experiment.cs
+++ b/generated/Chaos/Chaos.Autorest/generated/api/Models/Experiment.cs
@@ -58,28 +58,46 @@ public partial class Experiment :
Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceIdentity Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ResourceIdentity()); set { {_identity = value;} } }
/// Internal Acessors for IdentityPrincipalId
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceIdentityInternal)Identity).PrincipalId = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceIdentityInternal)Identity).PrincipalId = value ?? null; }
/// Internal Acessors for IdentityTenantId
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceIdentityInternal)Identity).TenantId = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceIdentityInternal)Identity).TenantId = value ?? null; }
/// Internal Acessors for Property
Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentProperties Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ExperimentProperties()); set { {_property = value;} } }
/// Internal Acessors for ProvisioningState
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentPropertiesInternal)Property).ProvisioningState = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentPropertiesInternal)Property).ProvisioningState = value ?? null; }
/// Internal Acessors for SystemData
Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.SystemData()); set { {_systemData = value;} } }
+ /// Internal Acessors for SystemDataCreatedAt
+ global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); }
+
+ /// Internal Acessors for SystemDataCreatedBy
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; }
+
+ /// Internal Acessors for SystemDataCreatedByType
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; }
+
+ /// Internal Acessors for SystemDataLastModifiedAt
+ global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); }
+
+ /// Internal Acessors for SystemDataLastModifiedBy
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; }
+
+ /// Internal Acessors for SystemDataLastModifiedByType
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; }
+
/// Internal Acessors for Id
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__trackedResource).Id = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__trackedResource).Id = value ?? null; }
/// Internal Acessors for Name
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__trackedResource).Name = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__trackedResource).Name = value ?? null; }
/// Internal Acessors for Type
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__trackedResource).Type = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__trackedResource).Type = value ?? null; }
/// The name of the resource
[Microsoft.Azure.PowerShell.Cmdlets.Chaos.Origin(Microsoft.Azure.PowerShell.Cmdlets.Chaos.PropertyOrigin.Inherited)]
@@ -117,27 +135,27 @@ public partial class Experiment :
/// The timestamp of resource creation (UTC).
[Microsoft.Azure.PowerShell.Cmdlets.Chaos.Origin(Microsoft.Azure.PowerShell.Cmdlets.Chaos.PropertyOrigin.Inlined)]
- public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); }
+ public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedAt; }
/// The identity that created the resource.
[Microsoft.Azure.PowerShell.Cmdlets.Chaos.Origin(Microsoft.Azure.PowerShell.Cmdlets.Chaos.PropertyOrigin.Inlined)]
- public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; }
+ public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedBy; }
/// The type of identity that created the resource.
[Microsoft.Azure.PowerShell.Cmdlets.Chaos.Origin(Microsoft.Azure.PowerShell.Cmdlets.Chaos.PropertyOrigin.Inlined)]
- public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; }
+ public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedByType; }
/// The timestamp of resource last modification (UTC)
[Microsoft.Azure.PowerShell.Cmdlets.Chaos.Origin(Microsoft.Azure.PowerShell.Cmdlets.Chaos.PropertyOrigin.Inlined)]
- public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); }
+ public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedAt; }
/// The identity that last modified the resource.
[Microsoft.Azure.PowerShell.Cmdlets.Chaos.Origin(Microsoft.Azure.PowerShell.Cmdlets.Chaos.PropertyOrigin.Inlined)]
- public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; }
+ public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedBy; }
/// The type of identity that last modified the resource.
[Microsoft.Azure.PowerShell.Cmdlets.Chaos.Origin(Microsoft.Azure.PowerShell.Cmdlets.Chaos.PropertyOrigin.Inlined)]
- public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; }
+ public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedByType; }
/// Resource tags.
[Microsoft.Azure.PowerShell.Cmdlets.Chaos.Origin(Microsoft.Azure.PowerShell.Cmdlets.Chaos.PropertyOrigin.Inherited)]
diff --git a/generated/Chaos/Chaos.Autorest/generated/api/Models/ExperimentExecution.cs b/generated/Chaos/Chaos.Autorest/generated/api/Models/ExperimentExecution.cs
index add59cbfb0cf..ca4355d07b46 100644
--- a/generated/Chaos/Chaos.Autorest/generated/api/Models/ExperimentExecution.cs
+++ b/generated/Chaos/Chaos.Autorest/generated/api/Models/ExperimentExecution.cs
@@ -30,13 +30,13 @@ public partial class ExperimentExecution :
Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionProperties Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ExperimentExecutionProperties()); set { {_property = value;} } }
/// Internal Acessors for StartedAt
- global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionInternal.StartedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionPropertiesInternal)Property).StartedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionPropertiesInternal)Property).StartedAt = value; }
+ global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionInternal.StartedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionPropertiesInternal)Property).StartedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionPropertiesInternal)Property).StartedAt = value ?? default(global::System.DateTime); }
/// Internal Acessors for Status
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionPropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionPropertiesInternal)Property).Status = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionPropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionPropertiesInternal)Property).Status = value ?? null; }
/// Internal Acessors for StoppedAt
- global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionInternal.StoppedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionPropertiesInternal)Property).StoppedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionPropertiesInternal)Property).StoppedAt = value; }
+ global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionInternal.StoppedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionPropertiesInternal)Property).StoppedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionPropertiesInternal)Property).StoppedAt = value ?? default(global::System.DateTime); }
/// Internal Acessors for Type
string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionInternal.Type { get => this._type; set { {_type = value;} } }
diff --git a/generated/Chaos/Chaos.Autorest/generated/api/Models/ExperimentExecutionActionTargetDetailsProperties.cs b/generated/Chaos/Chaos.Autorest/generated/api/Models/ExperimentExecutionActionTargetDetailsProperties.cs
index f09cec8a1a2d..f4c69e699a4d 100644
--- a/generated/Chaos/Chaos.Autorest/generated/api/Models/ExperimentExecutionActionTargetDetailsProperties.cs
+++ b/generated/Chaos/Chaos.Autorest/generated/api/Models/ExperimentExecutionActionTargetDetailsProperties.cs
@@ -29,13 +29,13 @@ public partial class ExperimentExecutionActionTargetDetailsProperties :
public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionActionTargetDetailsErrorInternal)Error).Message; }
/// Internal Acessors for Code
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionActionTargetDetailsPropertiesInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionActionTargetDetailsErrorInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionActionTargetDetailsErrorInternal)Error).Code = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionActionTargetDetailsPropertiesInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionActionTargetDetailsErrorInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionActionTargetDetailsErrorInternal)Error).Code = value ?? null; }
/// Internal Acessors for Error
Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionActionTargetDetailsError Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionActionTargetDetailsPropertiesInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ExperimentExecutionActionTargetDetailsError()); set { {_error = value;} } }
/// Internal Acessors for Message
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionActionTargetDetailsPropertiesInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionActionTargetDetailsErrorInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionActionTargetDetailsErrorInternal)Error).Message = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionActionTargetDetailsPropertiesInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionActionTargetDetailsErrorInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionActionTargetDetailsErrorInternal)Error).Message = value ?? null; }
/// Internal Acessors for Status
string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionActionTargetDetailsPropertiesInternal.Status { get => this._status; set { {_status = value;} } }
diff --git a/generated/Chaos/Chaos.Autorest/generated/api/Models/ExperimentExecutionDetails.cs b/generated/Chaos/Chaos.Autorest/generated/api/Models/ExperimentExecutionDetails.cs
index 4dd953b4bafa..bcd562d55b1a 100644
--- a/generated/Chaos/Chaos.Autorest/generated/api/Models/ExperimentExecutionDetails.cs
+++ b/generated/Chaos/Chaos.Autorest/generated/api/Models/ExperimentExecutionDetails.cs
@@ -29,13 +29,13 @@ public partial class ExperimentExecutionDetails :
public global::System.DateTime? LastActionAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionDetailsPropertiesInternal)Property).LastActionAt; }
/// Internal Acessors for FailureReason
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionDetailsInternal.FailureReason { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionDetailsPropertiesInternal)Property).FailureReason; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionDetailsPropertiesInternal)Property).FailureReason = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionDetailsInternal.FailureReason { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionDetailsPropertiesInternal)Property).FailureReason; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionDetailsPropertiesInternal)Property).FailureReason = value ?? null; }
/// Internal Acessors for Id
string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionDetailsInternal.Id { get => this._id; set { {_id = value;} } }
/// Internal Acessors for LastActionAt
- global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionDetailsInternal.LastActionAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionDetailsPropertiesInternal)Property).LastActionAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionDetailsPropertiesInternal)Property).LastActionAt = value; }
+ global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionDetailsInternal.LastActionAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionDetailsPropertiesInternal)Property).LastActionAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionDetailsPropertiesInternal)Property).LastActionAt = value ?? default(global::System.DateTime); }
/// Internal Acessors for Name
string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionDetailsInternal.Name { get => this._name; set { {_name = value;} } }
@@ -44,19 +44,19 @@ public partial class ExperimentExecutionDetails :
Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionDetailsProperties Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionDetailsInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ExperimentExecutionDetailsProperties()); set { {_property = value;} } }
/// Internal Acessors for RunInformation
- Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionDetailsPropertiesRunInformation Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionDetailsInternal.RunInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionDetailsPropertiesInternal)Property).RunInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionDetailsPropertiesInternal)Property).RunInformation = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionDetailsPropertiesRunInformation Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionDetailsInternal.RunInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionDetailsPropertiesInternal)Property).RunInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionDetailsPropertiesInternal)Property).RunInformation = value ?? null /* model class */; }
/// Internal Acessors for RunInformationStep
- System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionDetailsInternal.RunInformationStep { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionDetailsPropertiesInternal)Property).RunInformationStep; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionDetailsPropertiesInternal)Property).RunInformationStep = value; }
+ System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionDetailsInternal.RunInformationStep { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionDetailsPropertiesInternal)Property).RunInformationStep; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionDetailsPropertiesInternal)Property).RunInformationStep = value ?? null /* arrayOf */; }
/// Internal Acessors for StartedAt
- global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionDetailsInternal.StartedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionPropertiesInternal)Property).StartedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionPropertiesInternal)Property).StartedAt = value; }
+ global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionDetailsInternal.StartedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionPropertiesInternal)Property).StartedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionPropertiesInternal)Property).StartedAt = value ?? default(global::System.DateTime); }
/// Internal Acessors for Status
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionDetailsInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionPropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionPropertiesInternal)Property).Status = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionDetailsInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionPropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionPropertiesInternal)Property).Status = value ?? null; }
/// Internal Acessors for StoppedAt
- global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionDetailsInternal.StoppedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionPropertiesInternal)Property).StoppedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionPropertiesInternal)Property).StoppedAt = value; }
+ global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionDetailsInternal.StoppedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionPropertiesInternal)Property).StoppedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionPropertiesInternal)Property).StoppedAt = value ?? default(global::System.DateTime); }
/// Internal Acessors for Type
string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionDetailsInternal.Type { get => this._type; set { {_type = value;} } }
diff --git a/generated/Chaos/Chaos.Autorest/generated/api/Models/ExperimentExecutionDetailsProperties.cs b/generated/Chaos/Chaos.Autorest/generated/api/Models/ExperimentExecutionDetailsProperties.cs
index 2f5cd2c4507c..21c18cc45d00 100644
--- a/generated/Chaos/Chaos.Autorest/generated/api/Models/ExperimentExecutionDetailsProperties.cs
+++ b/generated/Chaos/Chaos.Autorest/generated/api/Models/ExperimentExecutionDetailsProperties.cs
@@ -43,16 +43,16 @@ public partial class ExperimentExecutionDetailsProperties :
Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionDetailsPropertiesRunInformation Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionDetailsPropertiesInternal.RunInformation { get => (this._runInformation = this._runInformation ?? new Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ExperimentExecutionDetailsPropertiesRunInformation()); set { {_runInformation = value;} } }
/// Internal Acessors for RunInformationStep
- System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionDetailsPropertiesInternal.RunInformationStep { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionDetailsPropertiesRunInformationInternal)RunInformation).Step; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionDetailsPropertiesRunInformationInternal)RunInformation).Step = value; }
+ System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionDetailsPropertiesInternal.RunInformationStep { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionDetailsPropertiesRunInformationInternal)RunInformation).Step; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionDetailsPropertiesRunInformationInternal)RunInformation).Step = value ?? null /* arrayOf */; }
/// Internal Acessors for StartedAt
- global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionPropertiesInternal.StartedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionPropertiesInternal)__experimentExecutionProperties).StartedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionPropertiesInternal)__experimentExecutionProperties).StartedAt = value; }
+ global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionPropertiesInternal.StartedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionPropertiesInternal)__experimentExecutionProperties).StartedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionPropertiesInternal)__experimentExecutionProperties).StartedAt = value ?? default(global::System.DateTime); }
/// Internal Acessors for Status
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionPropertiesInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionPropertiesInternal)__experimentExecutionProperties).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionPropertiesInternal)__experimentExecutionProperties).Status = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionPropertiesInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionPropertiesInternal)__experimentExecutionProperties).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionPropertiesInternal)__experimentExecutionProperties).Status = value ?? null; }
/// Internal Acessors for StoppedAt
- global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionPropertiesInternal.StoppedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionPropertiesInternal)__experimentExecutionProperties).StoppedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionPropertiesInternal)__experimentExecutionProperties).StoppedAt = value; }
+ global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionPropertiesInternal.StoppedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionPropertiesInternal)__experimentExecutionProperties).StoppedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionPropertiesInternal)__experimentExecutionProperties).StoppedAt = value ?? default(global::System.DateTime); }
/// Backing field for property.
private Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentExecutionDetailsPropertiesRunInformation _runInformation;
diff --git a/generated/Chaos/Chaos.Autorest/generated/api/Models/ExperimentUpdate.cs b/generated/Chaos/Chaos.Autorest/generated/api/Models/ExperimentUpdate.cs
index f75fabbf78df..4fb7b00bdb8b 100644
--- a/generated/Chaos/Chaos.Autorest/generated/api/Models/ExperimentUpdate.cs
+++ b/generated/Chaos/Chaos.Autorest/generated/api/Models/ExperimentUpdate.cs
@@ -43,10 +43,10 @@ public partial class ExperimentUpdate :
Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceIdentity Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentUpdateInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ResourceIdentity()); set { {_identity = value;} } }
/// Internal Acessors for IdentityPrincipalId
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentUpdateInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceIdentityInternal)Identity).PrincipalId = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentUpdateInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceIdentityInternal)Identity).PrincipalId = value ?? null; }
/// Internal Acessors for IdentityTenantId
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentUpdateInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceIdentityInternal)Identity).TenantId = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperimentUpdateInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceIdentityInternal)Identity).TenantId = value ?? null; }
/// Backing field for property.
private Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ITags _tag;
diff --git a/generated/Chaos/Chaos.Autorest/generated/api/Models/ListSelector.cs b/generated/Chaos/Chaos.Autorest/generated/api/Models/ListSelector.cs
index 3c29344d7932..1563aaac4a93 100644
--- a/generated/Chaos/Chaos.Autorest/generated/api/Models/ListSelector.cs
+++ b/generated/Chaos/Chaos.Autorest/generated/api/Models/ListSelector.cs
@@ -35,10 +35,10 @@ public partial class ListSelector :
public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISelectorInternal)__selector).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISelectorInternal)__selector).Id = value ; }
/// Internal Acessors for Filter
- Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IFilter Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISelectorInternal.Filter { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISelectorInternal)__selector).Filter; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISelectorInternal)__selector).Filter = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IFilter Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISelectorInternal.Filter { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISelectorInternal)__selector).Filter; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISelectorInternal)__selector).Filter = value ?? null /* model class */; }
/// Internal Acessors for FilterType
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISelectorInternal.FilterType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISelectorInternal)__selector).FilterType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISelectorInternal)__selector).FilterType = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISelectorInternal.FilterType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISelectorInternal)__selector).FilterType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISelectorInternal)__selector).FilterType = value ?? null; }
/// Backing field for property.
private System.Collections.Generic.List _target;
diff --git a/generated/Chaos/Chaos.Autorest/generated/api/Models/Operation.cs b/generated/Chaos/Chaos.Autorest/generated/api/Models/Operation.cs
index a089bc3832c1..fdd35b50f931 100644
--- a/generated/Chaos/Chaos.Autorest/generated/api/Models/Operation.cs
+++ b/generated/Chaos/Chaos.Autorest/generated/api/Models/Operation.cs
@@ -73,16 +73,16 @@ public partial class Operation :
Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IOperationDisplay Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IOperationInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.OperationDisplay()); set { {_display = value;} } }
/// Internal Acessors for DisplayDescription
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IOperationDisplayInternal)Display).Description = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IOperationDisplayInternal)Display).Description = value ?? null; }
/// Internal Acessors for DisplayOperation
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IOperationDisplayInternal)Display).Operation = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IOperationDisplayInternal)Display).Operation = value ?? null; }
/// Internal Acessors for DisplayProvider
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IOperationDisplayInternal)Display).Provider = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IOperationDisplayInternal)Display).Provider = value ?? null; }
/// Internal Acessors for DisplayResource
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IOperationDisplayInternal)Display).Resource = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IOperationDisplayInternal)Display).Resource = value ?? null; }
/// Internal Acessors for IsDataAction
bool? Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IOperationInternal.IsDataAction { get => this._isDataAction; set { {_isDataAction = value;} } }
diff --git a/generated/Chaos/Chaos.Autorest/generated/api/Models/OperationStatus.cs b/generated/Chaos/Chaos.Autorest/generated/api/Models/OperationStatus.cs
index 23a8ef945a9b..bf58ff60cf74 100644
--- a/generated/Chaos/Chaos.Autorest/generated/api/Models/OperationStatus.cs
+++ b/generated/Chaos/Chaos.Autorest/generated/api/Models/OperationStatus.cs
@@ -53,22 +53,22 @@ public partial class OperationStatus :
public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorResponseInternal)__errorResponse).Message; }
/// Internal Acessors for AdditionalInfo
- System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorResponseInternal)__errorResponse).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorResponseInternal)__errorResponse).AdditionalInfo = value; }
+ System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorResponseInternal)__errorResponse).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorResponseInternal)__errorResponse).AdditionalInfo = value ?? null /* arrayOf */; }
/// Internal Acessors for Code
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorResponseInternal)__errorResponse).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorResponseInternal)__errorResponse).Code = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorResponseInternal)__errorResponse).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorResponseInternal)__errorResponse).Code = value ?? null; }
/// Internal Acessors for Detail
- System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorResponseInternal)__errorResponse).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorResponseInternal)__errorResponse).Detail = value; }
+ System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorResponseInternal)__errorResponse).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorResponseInternal)__errorResponse).Detail = value ?? null /* arrayOf */; }
/// Internal Acessors for Error
- Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorResponseInternal.Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorResponseInternal)__errorResponse).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorResponseInternal)__errorResponse).Error = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorResponseInternal.Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorResponseInternal)__errorResponse).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorResponseInternal)__errorResponse).Error = value ?? null /* model class */; }
/// Internal Acessors for Message
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorResponseInternal)__errorResponse).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorResponseInternal)__errorResponse).Message = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorResponseInternal)__errorResponse).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorResponseInternal)__errorResponse).Message = value ?? null; }
/// Internal Acessors for Target
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorResponseInternal)__errorResponse).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorResponseInternal)__errorResponse).Target = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorResponseInternal)__errorResponse).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IErrorResponseInternal)__errorResponse).Target = value ?? null; }
/// Backing field for property.
private string _name;
diff --git a/generated/Chaos/Chaos.Autorest/generated/api/Models/QuerySelector.cs b/generated/Chaos/Chaos.Autorest/generated/api/Models/QuerySelector.cs
index 10ad2ac2c874..4915b060cb8c 100644
--- a/generated/Chaos/Chaos.Autorest/generated/api/Models/QuerySelector.cs
+++ b/generated/Chaos/Chaos.Autorest/generated/api/Models/QuerySelector.cs
@@ -35,10 +35,10 @@ public partial class QuerySelector :
public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISelectorInternal)__selector).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISelectorInternal)__selector).Id = value ; }
/// Internal Acessors for Filter
- Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IFilter Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISelectorInternal.Filter { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISelectorInternal)__selector).Filter; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISelectorInternal)__selector).Filter = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IFilter Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISelectorInternal.Filter { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISelectorInternal)__selector).Filter; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISelectorInternal)__selector).Filter = value ?? null /* model class */; }
/// Internal Acessors for FilterType
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISelectorInternal.FilterType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISelectorInternal)__selector).FilterType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISelectorInternal)__selector).FilterType = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISelectorInternal.FilterType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISelectorInternal)__selector).FilterType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISelectorInternal)__selector).FilterType = value ?? null; }
/// Backing field for property.
private string _queryString;
diff --git a/generated/Chaos/Chaos.Autorest/generated/api/Models/Selector.cs b/generated/Chaos/Chaos.Autorest/generated/api/Models/Selector.cs
index a7b642b4ee86..7e2c991c9b05 100644
--- a/generated/Chaos/Chaos.Autorest/generated/api/Models/Selector.cs
+++ b/generated/Chaos/Chaos.Autorest/generated/api/Models/Selector.cs
@@ -39,7 +39,7 @@ public partial class Selector :
Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IFilter Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISelectorInternal.Filter { get => (this._filter = this._filter ?? new Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.Filter()); set { {_filter = value;} } }
/// Internal Acessors for FilterType
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISelectorInternal.FilterType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IFilterInternal)Filter).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IFilterInternal)Filter).Type = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISelectorInternal.FilterType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IFilterInternal)Filter).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IFilterInternal)Filter).Type = value ?? null; }
/// Backing field for property.
private string _type;
diff --git a/generated/Chaos/Chaos.Autorest/generated/api/Models/SimpleFilter.cs b/generated/Chaos/Chaos.Autorest/generated/api/Models/SimpleFilter.cs
index cffdf42db510..31ac922fc06e 100644
--- a/generated/Chaos/Chaos.Autorest/generated/api/Models/SimpleFilter.cs
+++ b/generated/Chaos/Chaos.Autorest/generated/api/Models/SimpleFilter.cs
@@ -19,7 +19,7 @@ public partial class SimpleFilter :
private Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IFilter __filter = new Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.Filter();
/// Internal Acessors for Type
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IFilterInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IFilterInternal)__filter).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IFilterInternal)__filter).Type = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IFilterInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IFilterInternal)__filter).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IFilterInternal)__filter).Type = value ; }
/// Internal Acessors for Parameter
Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISimpleFilterParameters Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISimpleFilterInternal.Parameter { get => (this._parameter = this._parameter ?? new Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.SimpleFilterParameters()); set { {_parameter = value;} } }
diff --git a/generated/Chaos/Chaos.Autorest/generated/api/Models/Target.cs b/generated/Chaos/Chaos.Autorest/generated/api/Models/Target.cs
index ac528b44cd32..1f515d5a2346 100644
--- a/generated/Chaos/Chaos.Autorest/generated/api/Models/Target.cs
+++ b/generated/Chaos/Chaos.Autorest/generated/api/Models/Target.cs
@@ -32,17 +32,35 @@ public partial class Target :
public string Location { get => this._location; set => this._location = value; }
/// Internal Acessors for Id
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Id = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Id = value ?? null; }
/// Internal Acessors for Name
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Name = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Name = value ?? null; }
/// Internal Acessors for Type
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Type = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Type = value ?? null; }
/// Internal Acessors for SystemData
Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ITargetInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.SystemData()); set { {_systemData = value;} } }
+ /// Internal Acessors for SystemDataCreatedAt
+ global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ITargetInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); }
+
+ /// Internal Acessors for SystemDataCreatedBy
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ITargetInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; }
+
+ /// Internal Acessors for SystemDataCreatedByType
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ITargetInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; }
+
+ /// Internal Acessors for SystemDataLastModifiedAt
+ global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ITargetInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); }
+
+ /// Internal Acessors for SystemDataLastModifiedBy
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ITargetInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; }
+
+ /// Internal Acessors for SystemDataLastModifiedByType
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ITargetInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; }
+
/// The name of the resource
[Microsoft.Azure.PowerShell.Cmdlets.Chaos.Origin(Microsoft.Azure.PowerShell.Cmdlets.Chaos.PropertyOrigin.Inherited)]
public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Name; }
@@ -67,27 +85,27 @@ public partial class Target :
/// The timestamp of resource creation (UTC).
[Microsoft.Azure.PowerShell.Cmdlets.Chaos.Origin(Microsoft.Azure.PowerShell.Cmdlets.Chaos.PropertyOrigin.Inlined)]
- public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); }
+ public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedAt; }
/// The identity that created the resource.
[Microsoft.Azure.PowerShell.Cmdlets.Chaos.Origin(Microsoft.Azure.PowerShell.Cmdlets.Chaos.PropertyOrigin.Inlined)]
- public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; }
+ public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedBy; }
/// The type of identity that created the resource.
[Microsoft.Azure.PowerShell.Cmdlets.Chaos.Origin(Microsoft.Azure.PowerShell.Cmdlets.Chaos.PropertyOrigin.Inlined)]
- public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; }
+ public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedByType; }
/// The timestamp of resource last modification (UTC)
[Microsoft.Azure.PowerShell.Cmdlets.Chaos.Origin(Microsoft.Azure.PowerShell.Cmdlets.Chaos.PropertyOrigin.Inlined)]
- public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); }
+ public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedAt; }
/// The identity that last modified the resource.
[Microsoft.Azure.PowerShell.Cmdlets.Chaos.Origin(Microsoft.Azure.PowerShell.Cmdlets.Chaos.PropertyOrigin.Inlined)]
- public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; }
+ public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedBy; }
/// The type of identity that last modified the resource.
[Microsoft.Azure.PowerShell.Cmdlets.Chaos.Origin(Microsoft.Azure.PowerShell.Cmdlets.Chaos.PropertyOrigin.Inlined)]
- public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; }
+ public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedByType; }
///
/// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
diff --git a/generated/Chaos/Chaos.Autorest/generated/api/Models/TargetType.cs b/generated/Chaos/Chaos.Autorest/generated/api/Models/TargetType.cs
index 95d5f5ae5bc1..967f8bd20d0c 100644
--- a/generated/Chaos/Chaos.Autorest/generated/api/Models/TargetType.cs
+++ b/generated/Chaos/Chaos.Autorest/generated/api/Models/TargetType.cs
@@ -40,32 +40,50 @@ public partial class TargetType :
public string Location { get => this._location; set => this._location = value; }
/// Internal Acessors for Id
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Id = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Id = value ?? null; }
/// Internal Acessors for Name
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Name = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Name = value ?? null; }
/// Internal Acessors for Type
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Type = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Type = value ?? null; }
/// Internal Acessors for Description
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ITargetTypeInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ITargetTypePropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ITargetTypePropertiesInternal)Property).Description = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ITargetTypeInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ITargetTypePropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ITargetTypePropertiesInternal)Property).Description = value ?? null; }
/// Internal Acessors for DisplayName
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ITargetTypeInternal.DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ITargetTypePropertiesInternal)Property).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ITargetTypePropertiesInternal)Property).DisplayName = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ITargetTypeInternal.DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ITargetTypePropertiesInternal)Property).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ITargetTypePropertiesInternal)Property).DisplayName = value ?? null; }
/// Internal Acessors for PropertiesSchema
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ITargetTypeInternal.PropertiesSchema { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ITargetTypePropertiesInternal)Property).PropertiesSchema; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ITargetTypePropertiesInternal)Property).PropertiesSchema = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ITargetTypeInternal.PropertiesSchema { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ITargetTypePropertiesInternal)Property).PropertiesSchema; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ITargetTypePropertiesInternal)Property).PropertiesSchema = value ?? null; }
/// Internal Acessors for Property
Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ITargetTypeProperties Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ITargetTypeInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.TargetTypeProperties()); set { {_property = value;} } }
/// Internal Acessors for ResourceType
- System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ITargetTypeInternal.ResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ITargetTypePropertiesInternal)Property).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ITargetTypePropertiesInternal)Property).ResourceType = value; }
+ System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ITargetTypeInternal.ResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ITargetTypePropertiesInternal)Property).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ITargetTypePropertiesInternal)Property).ResourceType = value ?? null /* arrayOf */; }
/// Internal Acessors for SystemData
Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ITargetTypeInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.SystemData()); set { {_systemData = value;} } }
+ /// Internal Acessors for SystemDataCreatedAt
+ global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ITargetTypeInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); }
+
+ /// Internal Acessors for SystemDataCreatedBy
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ITargetTypeInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; }
+
+ /// Internal Acessors for SystemDataCreatedByType
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ITargetTypeInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; }
+
+ /// Internal Acessors for SystemDataLastModifiedAt
+ global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ITargetTypeInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); }
+
+ /// Internal Acessors for SystemDataLastModifiedBy
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ITargetTypeInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; }
+
+ /// Internal Acessors for SystemDataLastModifiedByType
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ITargetTypeInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; }
+
/// The name of the resource
[Microsoft.Azure.PowerShell.Cmdlets.Chaos.Origin(Microsoft.Azure.PowerShell.Cmdlets.Chaos.PropertyOrigin.Inherited)]
public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Name; }
@@ -98,27 +116,27 @@ public partial class TargetType :
/// The timestamp of resource creation (UTC).
[Microsoft.Azure.PowerShell.Cmdlets.Chaos.Origin(Microsoft.Azure.PowerShell.Cmdlets.Chaos.PropertyOrigin.Inlined)]
- public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); }
+ public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedAt; }
/// The identity that created the resource.
[Microsoft.Azure.PowerShell.Cmdlets.Chaos.Origin(Microsoft.Azure.PowerShell.Cmdlets.Chaos.PropertyOrigin.Inlined)]
- public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; }
+ public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedBy; }
/// The type of identity that created the resource.
[Microsoft.Azure.PowerShell.Cmdlets.Chaos.Origin(Microsoft.Azure.PowerShell.Cmdlets.Chaos.PropertyOrigin.Inlined)]
- public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; }
+ public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).CreatedByType; }
/// The timestamp of resource last modification (UTC)
[Microsoft.Azure.PowerShell.Cmdlets.Chaos.Origin(Microsoft.Azure.PowerShell.Cmdlets.Chaos.PropertyOrigin.Inlined)]
- public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); }
+ public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedAt; }
/// The identity that last modified the resource.
[Microsoft.Azure.PowerShell.Cmdlets.Chaos.Origin(Microsoft.Azure.PowerShell.Cmdlets.Chaos.PropertyOrigin.Inlined)]
- public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; }
+ public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedBy; }
/// The type of identity that last modified the resource.
[Microsoft.Azure.PowerShell.Cmdlets.Chaos.Origin(Microsoft.Azure.PowerShell.Cmdlets.Chaos.PropertyOrigin.Inlined)]
- public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; }
+ public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISystemDataInternal)SystemData).LastModifiedByType; }
///
/// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
diff --git a/generated/Chaos/Chaos.Autorest/generated/api/Models/TrackedResource.cs b/generated/Chaos/Chaos.Autorest/generated/api/Models/TrackedResource.cs
index 3cfe7319ba24..efc1408ae87d 100644
--- a/generated/Chaos/Chaos.Autorest/generated/api/Models/TrackedResource.cs
+++ b/generated/Chaos/Chaos.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.Chaos.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Id = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Id = value ?? null; }
/// Internal Acessors for Name
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Name = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Name = value ?? null; }
/// Internal Acessors for Type
- string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Type = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IResourceInternal)__resource).Type = value ?? null; }
/// The name of the resource
[Microsoft.Azure.PowerShell.Cmdlets.Chaos.Origin(Microsoft.Azure.PowerShell.Cmdlets.Chaos.PropertyOrigin.Inherited)]
diff --git a/generated/Chaos/Chaos.Autorest/generated/cmdlets/NewAzChaosCapability_CreateExpanded.cs b/generated/Chaos/Chaos.Autorest/generated/cmdlets/NewAzChaosCapability_CreateExpanded.cs
index bdf8f8a78361..00296d9efa3f 100644
--- a/generated/Chaos/Chaos.Autorest/generated/cmdlets/NewAzChaosCapability_CreateExpanded.cs
+++ b/generated/Chaos/Chaos.Autorest/generated/cmdlets/NewAzChaosCapability_CreateExpanded.cs
@@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Chaos.Cmdlets
using Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.Cmdlets;
using System;
- /// Create a Capability resource that extends a Target resource.
+ /// create a Capability resource that extends a Target resource.
///
/// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{parentProviderNamespace}/{parentResourceType}/{parentResourceName}/providers/Microsoft.Chaos/targets/{targetName}/capabilities/{capabilityName}"
///
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzChaosCapability_CreateExpanded", SupportsShouldProcess = true)]
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapability))]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Description(@"Create a Capability resource that extends a Target resource.")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Description(@"create a Capability resource that extends a Target resource.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Generated]
[global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{parentProviderNamespace}/{parentResourceType}/{parentResourceName}/providers/Microsoft.Chaos/targets/{targetName}/capabilities/{capabilityName}", ApiVersion = "2024-01-01")]
public partial class NewAzChaosCapability_CreateExpanded : global::System.Management.Automation.PSCmdlet,
diff --git a/generated/Chaos/Chaos.Autorest/generated/cmdlets/NewAzChaosCapability_CreateViaIdentityExpanded.cs b/generated/Chaos/Chaos.Autorest/generated/cmdlets/NewAzChaosCapability_CreateViaIdentityExpanded.cs
index f315fc9eb4df..38e1047f0fc9 100644
--- a/generated/Chaos/Chaos.Autorest/generated/cmdlets/NewAzChaosCapability_CreateViaIdentityExpanded.cs
+++ b/generated/Chaos/Chaos.Autorest/generated/cmdlets/NewAzChaosCapability_CreateViaIdentityExpanded.cs
@@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Chaos.Cmdlets
using Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.Cmdlets;
using System;
- /// Create a Capability resource that extends a Target resource.
+ /// create a Capability resource that extends a Target resource.
///
/// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{parentProviderNamespace}/{parentResourceType}/{parentResourceName}/providers/Microsoft.Chaos/targets/{targetName}/capabilities/{capabilityName}"
///
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzChaosCapability_CreateViaIdentityExpanded", SupportsShouldProcess = true)]
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapability))]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Description(@"Create a Capability resource that extends a Target resource.")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Description(@"create a Capability resource that extends a Target resource.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Generated]
[global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{parentProviderNamespace}/{parentResourceType}/{parentResourceName}/providers/Microsoft.Chaos/targets/{targetName}/capabilities/{capabilityName}", ApiVersion = "2024-01-01")]
public partial class NewAzChaosCapability_CreateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet,
diff --git a/generated/Chaos/Chaos.Autorest/generated/cmdlets/NewAzChaosCapability_CreateViaIdentityTargetExpanded.cs b/generated/Chaos/Chaos.Autorest/generated/cmdlets/NewAzChaosCapability_CreateViaIdentityTargetExpanded.cs
index dd896173e190..78e8ef91f836 100644
--- a/generated/Chaos/Chaos.Autorest/generated/cmdlets/NewAzChaosCapability_CreateViaIdentityTargetExpanded.cs
+++ b/generated/Chaos/Chaos.Autorest/generated/cmdlets/NewAzChaosCapability_CreateViaIdentityTargetExpanded.cs
@@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Chaos.Cmdlets
using Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.Cmdlets;
using System;
- /// Create a Capability resource that extends a Target resource.
+ /// create a Capability resource that extends a Target resource.
///
/// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{parentProviderNamespace}/{parentResourceType}/{parentResourceName}/providers/Microsoft.Chaos/targets/{targetName}/capabilities/{capabilityName}"
///
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzChaosCapability_CreateViaIdentityTargetExpanded", SupportsShouldProcess = true)]
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapability))]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Description(@"Create a Capability resource that extends a Target resource.")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Description(@"create a Capability resource that extends a Target resource.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Generated]
[global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{parentProviderNamespace}/{parentResourceType}/{parentResourceName}/providers/Microsoft.Chaos/targets/{targetName}/capabilities/{capabilityName}", ApiVersion = "2024-01-01")]
public partial class NewAzChaosCapability_CreateViaIdentityTargetExpanded : global::System.Management.Automation.PSCmdlet,
diff --git a/generated/Chaos/Chaos.Autorest/generated/cmdlets/NewAzChaosCapability_CreateViaJsonFilePath.cs b/generated/Chaos/Chaos.Autorest/generated/cmdlets/NewAzChaosCapability_CreateViaJsonFilePath.cs
index 0af64a845d91..3cadca111d93 100644
--- a/generated/Chaos/Chaos.Autorest/generated/cmdlets/NewAzChaosCapability_CreateViaJsonFilePath.cs
+++ b/generated/Chaos/Chaos.Autorest/generated/cmdlets/NewAzChaosCapability_CreateViaJsonFilePath.cs
@@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Chaos.Cmdlets
using Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.Cmdlets;
using System;
- /// Create a Capability resource that extends a Target resource.
+ /// create a Capability resource that extends a Target resource.
///
/// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{parentProviderNamespace}/{parentResourceType}/{parentResourceName}/providers/Microsoft.Chaos/targets/{targetName}/capabilities/{capabilityName}"
///
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzChaosCapability_CreateViaJsonFilePath", SupportsShouldProcess = true)]
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapability))]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Description(@"Create a Capability resource that extends a Target resource.")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Description(@"create a Capability resource that extends a Target resource.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Generated]
[global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{parentProviderNamespace}/{parentResourceType}/{parentResourceName}/providers/Microsoft.Chaos/targets/{targetName}/capabilities/{capabilityName}", ApiVersion = "2024-01-01")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.NotSuggestDefaultParameterSet]
diff --git a/generated/Chaos/Chaos.Autorest/generated/cmdlets/NewAzChaosCapability_CreateViaJsonString.cs b/generated/Chaos/Chaos.Autorest/generated/cmdlets/NewAzChaosCapability_CreateViaJsonString.cs
index df235828dac5..a4ae94d68fb6 100644
--- a/generated/Chaos/Chaos.Autorest/generated/cmdlets/NewAzChaosCapability_CreateViaJsonString.cs
+++ b/generated/Chaos/Chaos.Autorest/generated/cmdlets/NewAzChaosCapability_CreateViaJsonString.cs
@@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Chaos.Cmdlets
using Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.Cmdlets;
using System;
- /// Create a Capability resource that extends a Target resource.
+ /// create a Capability resource that extends a Target resource.
///
/// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{parentProviderNamespace}/{parentResourceType}/{parentResourceName}/providers/Microsoft.Chaos/targets/{targetName}/capabilities/{capabilityName}"
///
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzChaosCapability_CreateViaJsonString", SupportsShouldProcess = true)]
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapability))]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Description(@"Create a Capability resource that extends a Target resource.")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Description(@"create a Capability resource that extends a Target resource.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Generated]
[global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{parentProviderNamespace}/{parentResourceType}/{parentResourceName}/providers/Microsoft.Chaos/targets/{targetName}/capabilities/{capabilityName}", ApiVersion = "2024-01-01")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.NotSuggestDefaultParameterSet]
diff --git a/generated/Chaos/Chaos.Autorest/generated/cmdlets/NewAzChaosExperiment_CreateViaJsonFilePath.cs b/generated/Chaos/Chaos.Autorest/generated/cmdlets/NewAzChaosExperiment_CreateViaJsonFilePath.cs
index c2eaa3112b88..9221c2b9bdaa 100644
--- a/generated/Chaos/Chaos.Autorest/generated/cmdlets/NewAzChaosExperiment_CreateViaJsonFilePath.cs
+++ b/generated/Chaos/Chaos.Autorest/generated/cmdlets/NewAzChaosExperiment_CreateViaJsonFilePath.cs
@@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Chaos.Cmdlets
using Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.Cmdlets;
using System;
- /// Create a Experiment resource.
+ /// create a Experiment resource.
///
/// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Chaos/experiments/{experimentName}"
///
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzChaosExperiment_CreateViaJsonFilePath", SupportsShouldProcess = true)]
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperiment))]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Description(@"Create a Experiment resource.")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Description(@"create a Experiment resource.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Generated]
[global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Chaos/experiments/{experimentName}", ApiVersion = "2024-01-01")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.NotSuggestDefaultParameterSet]
@@ -41,17 +41,8 @@ public partial class NewAzChaosExperiment_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.Chaos.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.ParameterCategory.Runtime)]
@@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Chaos.Cmdlets.NewAzChaosExperiment_Cre
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Chaos.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.Chaos.Models.IExperiment
var result = (await response);
- if (null != result)
- {
- if (0 == _responseSize)
- {
- _firstResponse = result;
- _responseSize = 1;
- }
- else
- {
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject());
- }
- WriteObject(result.AddMultipleTypeNameIntoPSObject());
- _responseSize = 2;
- }
- }
+ WriteObject(result, false);
}
}
}
diff --git a/generated/Chaos/Chaos.Autorest/generated/cmdlets/NewAzChaosExperiment_CreateViaJsonString.cs b/generated/Chaos/Chaos.Autorest/generated/cmdlets/NewAzChaosExperiment_CreateViaJsonString.cs
index 1b2021e9f6bc..eccc22bed8b6 100644
--- a/generated/Chaos/Chaos.Autorest/generated/cmdlets/NewAzChaosExperiment_CreateViaJsonString.cs
+++ b/generated/Chaos/Chaos.Autorest/generated/cmdlets/NewAzChaosExperiment_CreateViaJsonString.cs
@@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Chaos.Cmdlets
using Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.Cmdlets;
using System;
- /// Create a Experiment resource.
+ /// create a Experiment resource.
///
/// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Chaos/experiments/{experimentName}"
///
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzChaosExperiment_CreateViaJsonString", SupportsShouldProcess = true)]
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperiment))]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Description(@"Create a Experiment resource.")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Description(@"create a Experiment resource.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Generated]
[global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Chaos/experiments/{experimentName}", ApiVersion = "2024-01-01")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.NotSuggestDefaultParameterSet]
@@ -41,15 +41,6 @@ public partial class NewAzChaosExperiment_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.Chaos.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.ParameterCategory.Runtime)]
@@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Chaos.Cmdlets.NewAzChaosExperiment_Cre
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Chaos.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.Chaos.Models.IExperiment
var result = (await response);
- if (null != result)
- {
- if (0 == _responseSize)
- {
- _firstResponse = result;
- _responseSize = 1;
- }
- else
- {
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject());
- }
- WriteObject(result.AddMultipleTypeNameIntoPSObject());
- _responseSize = 2;
- }
- }
+ WriteObject(result, false);
}
}
}
diff --git a/generated/Chaos/Chaos.Autorest/generated/cmdlets/NewAzChaosTarget_CreateExpanded.cs b/generated/Chaos/Chaos.Autorest/generated/cmdlets/NewAzChaosTarget_CreateExpanded.cs
index b420cb24957d..f88b5f233b6b 100644
--- a/generated/Chaos/Chaos.Autorest/generated/cmdlets/NewAzChaosTarget_CreateExpanded.cs
+++ b/generated/Chaos/Chaos.Autorest/generated/cmdlets/NewAzChaosTarget_CreateExpanded.cs
@@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Chaos.Cmdlets
using Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.Cmdlets;
using System;
- /// Create a Target resource that extends a tracked regional resource.
+ /// create a Target resource that extends a tracked regional resource.
///
/// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{parentProviderNamespace}/{parentResourceType}/{parentResourceName}/providers/Microsoft.Chaos/targets/{targetName}"
///
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzChaosTarget_CreateExpanded", SupportsShouldProcess = true)]
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ITarget))]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Description(@"Create a Target resource that extends a tracked regional resource.")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Description(@"create a Target resource that extends a tracked regional resource.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Generated]
[global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{parentProviderNamespace}/{parentResourceType}/{parentResourceName}/providers/Microsoft.Chaos/targets/{targetName}", ApiVersion = "2024-01-01")]
public partial class NewAzChaosTarget_CreateExpanded : global::System.Management.Automation.PSCmdlet,
diff --git a/generated/Chaos/Chaos.Autorest/generated/cmdlets/NewAzChaosTarget_CreateViaIdentityExpanded.cs b/generated/Chaos/Chaos.Autorest/generated/cmdlets/NewAzChaosTarget_CreateViaIdentityExpanded.cs
index da92088110a9..99fbed331fcc 100644
--- a/generated/Chaos/Chaos.Autorest/generated/cmdlets/NewAzChaosTarget_CreateViaIdentityExpanded.cs
+++ b/generated/Chaos/Chaos.Autorest/generated/cmdlets/NewAzChaosTarget_CreateViaIdentityExpanded.cs
@@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Chaos.Cmdlets
using Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.Cmdlets;
using System;
- /// Create a Target resource that extends a tracked regional resource.
+ /// create a Target resource that extends a tracked regional resource.
///
/// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{parentProviderNamespace}/{parentResourceType}/{parentResourceName}/providers/Microsoft.Chaos/targets/{targetName}"
///
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzChaosTarget_CreateViaIdentityExpanded", SupportsShouldProcess = true)]
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ITarget))]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Description(@"Create a Target resource that extends a tracked regional resource.")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Description(@"create a Target resource that extends a tracked regional resource.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Generated]
[global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{parentProviderNamespace}/{parentResourceType}/{parentResourceName}/providers/Microsoft.Chaos/targets/{targetName}", ApiVersion = "2024-01-01")]
public partial class NewAzChaosTarget_CreateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet,
diff --git a/generated/Chaos/Chaos.Autorest/generated/cmdlets/NewAzChaosTarget_CreateViaJsonFilePath.cs b/generated/Chaos/Chaos.Autorest/generated/cmdlets/NewAzChaosTarget_CreateViaJsonFilePath.cs
index b00275777473..3cf46d2b23f5 100644
--- a/generated/Chaos/Chaos.Autorest/generated/cmdlets/NewAzChaosTarget_CreateViaJsonFilePath.cs
+++ b/generated/Chaos/Chaos.Autorest/generated/cmdlets/NewAzChaosTarget_CreateViaJsonFilePath.cs
@@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Chaos.Cmdlets
using Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.Cmdlets;
using System;
- /// Create a Target resource that extends a tracked regional resource.
+ /// create a Target resource that extends a tracked regional resource.
///
/// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{parentProviderNamespace}/{parentResourceType}/{parentResourceName}/providers/Microsoft.Chaos/targets/{targetName}"
///
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzChaosTarget_CreateViaJsonFilePath", SupportsShouldProcess = true)]
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ITarget))]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Description(@"Create a Target resource that extends a tracked regional resource.")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Description(@"create a Target resource that extends a tracked regional resource.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Generated]
[global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{parentProviderNamespace}/{parentResourceType}/{parentResourceName}/providers/Microsoft.Chaos/targets/{targetName}", ApiVersion = "2024-01-01")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.NotSuggestDefaultParameterSet]
diff --git a/generated/Chaos/Chaos.Autorest/generated/cmdlets/NewAzChaosTarget_CreateViaJsonString.cs b/generated/Chaos/Chaos.Autorest/generated/cmdlets/NewAzChaosTarget_CreateViaJsonString.cs
index de0abafdb983..f641381d27df 100644
--- a/generated/Chaos/Chaos.Autorest/generated/cmdlets/NewAzChaosTarget_CreateViaJsonString.cs
+++ b/generated/Chaos/Chaos.Autorest/generated/cmdlets/NewAzChaosTarget_CreateViaJsonString.cs
@@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Chaos.Cmdlets
using Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.Cmdlets;
using System;
- /// Create a Target resource that extends a tracked regional resource.
+ /// create a Target resource that extends a tracked regional resource.
///
/// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{parentProviderNamespace}/{parentResourceType}/{parentResourceName}/providers/Microsoft.Chaos/targets/{targetName}"
///
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzChaosTarget_CreateViaJsonString", SupportsShouldProcess = true)]
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ITarget))]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Description(@"Create a Target resource that extends a tracked regional resource.")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Description(@"create a Target resource that extends a tracked regional resource.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Generated]
[global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{parentProviderNamespace}/{parentResourceType}/{parentResourceName}/providers/Microsoft.Chaos/targets/{targetName}", ApiVersion = "2024-01-01")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.NotSuggestDefaultParameterSet]
diff --git a/generated/Chaos/Chaos.Autorest/generated/cmdlets/RemoveAzChaosCapability_Delete.cs b/generated/Chaos/Chaos.Autorest/generated/cmdlets/RemoveAzChaosCapability_Delete.cs
index b2b36ca80d9d..078eb73c039a 100644
--- a/generated/Chaos/Chaos.Autorest/generated/cmdlets/RemoveAzChaosCapability_Delete.cs
+++ b/generated/Chaos/Chaos.Autorest/generated/cmdlets/RemoveAzChaosCapability_Delete.cs
@@ -551,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);
}
@@ -575,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/Chaos/Chaos.Autorest/generated/cmdlets/RemoveAzChaosCapability_DeleteViaIdentity.cs b/generated/Chaos/Chaos.Autorest/generated/cmdlets/RemoveAzChaosCapability_DeleteViaIdentity.cs
index 8e0ccacc7b21..1651f42b74cc 100644
--- a/generated/Chaos/Chaos.Autorest/generated/cmdlets/RemoveAzChaosCapability_DeleteViaIdentity.cs
+++ b/generated/Chaos/Chaos.Autorest/generated/cmdlets/RemoveAzChaosCapability_DeleteViaIdentity.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/Chaos/Chaos.Autorest/generated/cmdlets/RemoveAzChaosCapability_DeleteViaIdentityTarget.cs b/generated/Chaos/Chaos.Autorest/generated/cmdlets/RemoveAzChaosCapability_DeleteViaIdentityTarget.cs
index 758266e7c53a..1c8699e7efcb 100644
--- a/generated/Chaos/Chaos.Autorest/generated/cmdlets/RemoveAzChaosCapability_DeleteViaIdentityTarget.cs
+++ b/generated/Chaos/Chaos.Autorest/generated/cmdlets/RemoveAzChaosCapability_DeleteViaIdentityTarget.cs
@@ -503,7 +503,7 @@ protected override void StopProcessing()
return ;
}
// onNoContent - response for 204 /
- if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru"))
+ if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru"))
{
WriteObject(true);
}
@@ -527,7 +527,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/Chaos/Chaos.Autorest/generated/cmdlets/RemoveAzChaosExperiment_Delete.cs b/generated/Chaos/Chaos.Autorest/generated/cmdlets/RemoveAzChaosExperiment_Delete.cs
index d0d7a63a4839..72b2b7ee8836 100644
--- a/generated/Chaos/Chaos.Autorest/generated/cmdlets/RemoveAzChaosExperiment_Delete.cs
+++ b/generated/Chaos/Chaos.Autorest/generated/cmdlets/RemoveAzChaosExperiment_Delete.cs
@@ -40,15 +40,6 @@ public partial class RemoveAzChaosExperiment_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.Chaos.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.ParameterCategory.Runtime)]
@@ -251,11 +242,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Chaos.Cmdlets.RemoveAzChaosExperiment_
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Chaos.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
if (telemetryInfo != null)
{
@@ -567,7 +553,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/Chaos/Chaos.Autorest/generated/cmdlets/RemoveAzChaosExperiment_DeleteViaIdentity.cs b/generated/Chaos/Chaos.Autorest/generated/cmdlets/RemoveAzChaosExperiment_DeleteViaIdentity.cs
index e529ee12e266..e1ab950ef97b 100644
--- a/generated/Chaos/Chaos.Autorest/generated/cmdlets/RemoveAzChaosExperiment_DeleteViaIdentity.cs
+++ b/generated/Chaos/Chaos.Autorest/generated/cmdlets/RemoveAzChaosExperiment_DeleteViaIdentity.cs
@@ -40,15 +40,6 @@ public partial class RemoveAzChaosExperiment_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.Chaos.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.ParameterCategory.Runtime)]
@@ -208,11 +199,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Chaos.Cmdlets.RemoveAzChaosExperiment_
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Chaos.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
if (telemetryInfo != null)
{
@@ -544,7 +530,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/Chaos/Chaos.Autorest/generated/cmdlets/RemoveAzChaosTarget_Delete.cs b/generated/Chaos/Chaos.Autorest/generated/cmdlets/RemoveAzChaosTarget_Delete.cs
index d6e725f3a2ed..2b17b4520531 100644
--- a/generated/Chaos/Chaos.Autorest/generated/cmdlets/RemoveAzChaosTarget_Delete.cs
+++ b/generated/Chaos/Chaos.Autorest/generated/cmdlets/RemoveAzChaosTarget_Delete.cs
@@ -537,7 +537,7 @@ protected override void StopProcessing()
return ;
}
// onNoContent - response for 204 /
- if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru"))
+ if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru"))
{
WriteObject(true);
}
@@ -561,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/Chaos/Chaos.Autorest/generated/cmdlets/RemoveAzChaosTarget_DeleteViaIdentity.cs b/generated/Chaos/Chaos.Autorest/generated/cmdlets/RemoveAzChaosTarget_DeleteViaIdentity.cs
index 6389843e01be..a7b11aeeef8d 100644
--- a/generated/Chaos/Chaos.Autorest/generated/cmdlets/RemoveAzChaosTarget_DeleteViaIdentity.cs
+++ b/generated/Chaos/Chaos.Autorest/generated/cmdlets/RemoveAzChaosTarget_DeleteViaIdentity.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/Chaos/Chaos.Autorest/generated/cmdlets/StartAzChaosExperiment_Start.cs b/generated/Chaos/Chaos.Autorest/generated/cmdlets/StartAzChaosExperiment_Start.cs
index 31c07e798c16..4c8851e8635f 100644
--- a/generated/Chaos/Chaos.Autorest/generated/cmdlets/StartAzChaosExperiment_Start.cs
+++ b/generated/Chaos/Chaos.Autorest/generated/cmdlets/StartAzChaosExperiment_Start.cs
@@ -40,15 +40,6 @@ public partial class StartAzChaosExperiment_Start : 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.Chaos.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.ParameterCategory.Runtime)]
@@ -246,11 +237,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Chaos.Cmdlets.StartAzChaosExperiment_S
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Chaos.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.Chaos.Models.IExperiment
var result = (await response);
- if (null != result)
- {
- if (0 == _responseSize)
- {
- _firstResponse = result;
- _responseSize = 1;
- }
- else
- {
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject());
- }
- WriteObject(result.AddMultipleTypeNameIntoPSObject());
- _responseSize = 2;
- }
- }
+ WriteObject(result, false);
}
}
}
diff --git a/generated/Chaos/Chaos.Autorest/generated/cmdlets/StartAzChaosExperiment_StartViaIdentity.cs b/generated/Chaos/Chaos.Autorest/generated/cmdlets/StartAzChaosExperiment_StartViaIdentity.cs
index 79bb85f00c43..b864ee15957c 100644
--- a/generated/Chaos/Chaos.Autorest/generated/cmdlets/StartAzChaosExperiment_StartViaIdentity.cs
+++ b/generated/Chaos/Chaos.Autorest/generated/cmdlets/StartAzChaosExperiment_StartViaIdentity.cs
@@ -40,15 +40,6 @@ public partial class StartAzChaosExperiment_StartViaIdentity : 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.Chaos.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.ParameterCategory.Runtime)]
@@ -203,11 +194,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Chaos.Cmdlets.StartAzChaosExperiment_S
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Chaos.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.Chaos.Models.IExperiment
var result = (await response);
- if (null != result)
- {
- if (0 == _responseSize)
- {
- _firstResponse = result;
- _responseSize = 1;
- }
- else
- {
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject());
- }
- WriteObject(result.AddMultipleTypeNameIntoPSObject());
- _responseSize = 2;
- }
- }
+ WriteObject(result, false);
}
}
}
diff --git a/generated/Chaos/Chaos.Autorest/generated/cmdlets/StopAzChaosExperiment_Cancel.cs b/generated/Chaos/Chaos.Autorest/generated/cmdlets/StopAzChaosExperiment_Cancel.cs
index 515ca2792c78..246d4e355f7e 100644
--- a/generated/Chaos/Chaos.Autorest/generated/cmdlets/StopAzChaosExperiment_Cancel.cs
+++ b/generated/Chaos/Chaos.Autorest/generated/cmdlets/StopAzChaosExperiment_Cancel.cs
@@ -40,15 +40,6 @@ public partial class StopAzChaosExperiment_Cancel : 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.Chaos.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.ParameterCategory.Runtime)]
@@ -246,11 +237,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Chaos.Cmdlets.StopAzChaosExperiment_Ca
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Chaos.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.Chaos.Models.IExperiment
var result = (await response);
- if (null != result)
- {
- if (0 == _responseSize)
- {
- _firstResponse = result;
- _responseSize = 1;
- }
- else
- {
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject());
- }
- WriteObject(result.AddMultipleTypeNameIntoPSObject());
- _responseSize = 2;
- }
- }
+ WriteObject(result, false);
}
}
}
diff --git a/generated/Chaos/Chaos.Autorest/generated/cmdlets/StopAzChaosExperiment_CancelViaIdentity.cs b/generated/Chaos/Chaos.Autorest/generated/cmdlets/StopAzChaosExperiment_CancelViaIdentity.cs
index 36b9333bc3da..8a9dab3fc154 100644
--- a/generated/Chaos/Chaos.Autorest/generated/cmdlets/StopAzChaosExperiment_CancelViaIdentity.cs
+++ b/generated/Chaos/Chaos.Autorest/generated/cmdlets/StopAzChaosExperiment_CancelViaIdentity.cs
@@ -40,15 +40,6 @@ public partial class StopAzChaosExperiment_CancelViaIdentity : 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.Chaos.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.ParameterCategory.Runtime)]
@@ -203,11 +194,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Chaos.Cmdlets.StopAzChaosExperiment_Ca
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Chaos.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.Chaos.Models.IExperiment
var result = (await response);
- if (null != result)
- {
- if (0 == _responseSize)
- {
- _firstResponse = result;
- _responseSize = 1;
- }
- else
- {
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject());
- }
- WriteObject(result.AddMultipleTypeNameIntoPSObject());
- _responseSize = 2;
- }
- }
+ WriteObject(result, false);
}
}
}
diff --git a/generated/Chaos/Chaos.Autorest/generated/cmdlets/UpdateAzChaosCapability_UpdateExpanded.cs b/generated/Chaos/Chaos.Autorest/generated/cmdlets/UpdateAzChaosCapability_UpdateExpanded.cs
index 4113f93f0496..4017ceed7a03 100644
--- a/generated/Chaos/Chaos.Autorest/generated/cmdlets/UpdateAzChaosCapability_UpdateExpanded.cs
+++ b/generated/Chaos/Chaos.Autorest/generated/cmdlets/UpdateAzChaosCapability_UpdateExpanded.cs
@@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Chaos.Cmdlets
using Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.Cmdlets;
using System;
- /// Update a Capability resource that extends a Target resource.
+ /// update a Capability resource that extends a Target resource.
///
/// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{parentProviderNamespace}/{parentResourceType}/{parentResourceName}/providers/Microsoft.Chaos/targets/{targetName}/capabilities/{capabilityName}"
/// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{parentProviderNamespace}/{parentResourceType}/{parentResourceName}/providers/Microsoft.Chaos/targets/{targetName}/capabilities/{capabilityName}"
///
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzChaosCapability_UpdateExpanded", SupportsShouldProcess = true)]
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapability))]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Description(@"Update a Capability resource that extends a Target resource.")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Description(@"update a Capability resource that extends a Target resource.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Generated]
public partial class UpdateAzChaosCapability_UpdateExpanded : global::System.Management.Automation.PSCmdlet,
Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.IEventListener,
diff --git a/generated/Chaos/Chaos.Autorest/generated/cmdlets/UpdateAzChaosCapability_UpdateViaIdentityExpanded.cs b/generated/Chaos/Chaos.Autorest/generated/cmdlets/UpdateAzChaosCapability_UpdateViaIdentityExpanded.cs
index 516bb2336fb1..494987594a54 100644
--- a/generated/Chaos/Chaos.Autorest/generated/cmdlets/UpdateAzChaosCapability_UpdateViaIdentityExpanded.cs
+++ b/generated/Chaos/Chaos.Autorest/generated/cmdlets/UpdateAzChaosCapability_UpdateViaIdentityExpanded.cs
@@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Chaos.Cmdlets
using Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.Cmdlets;
using System;
- /// Update a Capability resource that extends a Target resource.
+ /// update a Capability resource that extends a Target resource.
///
/// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{parentProviderNamespace}/{parentResourceType}/{parentResourceName}/providers/Microsoft.Chaos/targets/{targetName}/capabilities/{capabilityName}"
/// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{parentProviderNamespace}/{parentResourceType}/{parentResourceName}/providers/Microsoft.Chaos/targets/{targetName}/capabilities/{capabilityName}"
///
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzChaosCapability_UpdateViaIdentityExpanded", SupportsShouldProcess = true)]
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapability))]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Description(@"Update a Capability resource that extends a Target resource.")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Description(@"update a Capability resource that extends a Target resource.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Generated]
public partial class UpdateAzChaosCapability_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet,
Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.IEventListener,
diff --git a/generated/Chaos/Chaos.Autorest/generated/cmdlets/UpdateAzChaosCapability_UpdateViaIdentityTargetExpanded.cs b/generated/Chaos/Chaos.Autorest/generated/cmdlets/UpdateAzChaosCapability_UpdateViaIdentityTargetExpanded.cs
index 3ef4322d6033..8233c367439f 100644
--- a/generated/Chaos/Chaos.Autorest/generated/cmdlets/UpdateAzChaosCapability_UpdateViaIdentityTargetExpanded.cs
+++ b/generated/Chaos/Chaos.Autorest/generated/cmdlets/UpdateAzChaosCapability_UpdateViaIdentityTargetExpanded.cs
@@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Chaos.Cmdlets
using Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.Cmdlets;
using System;
- /// Update a Capability resource that extends a Target resource.
+ /// update a Capability resource that extends a Target resource.
///
/// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{parentProviderNamespace}/{parentResourceType}/{parentResourceName}/providers/Microsoft.Chaos/targets/{targetName}/capabilities/{capabilityName}"
/// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{parentProviderNamespace}/{parentResourceType}/{parentResourceName}/providers/Microsoft.Chaos/targets/{targetName}/capabilities/{capabilityName}"
///
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzChaosCapability_UpdateViaIdentityTargetExpanded", SupportsShouldProcess = true)]
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ICapability))]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Description(@"Update a Capability resource that extends a Target resource.")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Description(@"update a Capability resource that extends a Target resource.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Generated]
public partial class UpdateAzChaosCapability_UpdateViaIdentityTargetExpanded : global::System.Management.Automation.PSCmdlet,
Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.IEventListener,
diff --git a/generated/Chaos/Chaos.Autorest/generated/cmdlets/UpdateAzChaosExperiment_UpdateExpanded.cs b/generated/Chaos/Chaos.Autorest/generated/cmdlets/UpdateAzChaosExperiment_UpdateExpanded.cs
index 312344c25cae..f537c55bd963 100644
--- a/generated/Chaos/Chaos.Autorest/generated/cmdlets/UpdateAzChaosExperiment_UpdateExpanded.cs
+++ b/generated/Chaos/Chaos.Autorest/generated/cmdlets/UpdateAzChaosExperiment_UpdateExpanded.cs
@@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Chaos.Cmdlets
using Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.Cmdlets;
using System;
- /// Update a Experiment resource.
+ /// update a Experiment resource.
///
/// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Chaos/experiments/{experimentName}"
/// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Chaos/experiments/{experimentName}"
///
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzChaosExperiment_UpdateExpanded", SupportsShouldProcess = true)]
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperiment))]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Description(@"Update a Experiment resource.")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Description(@"update a Experiment resource.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Generated]
public partial class UpdateAzChaosExperiment_UpdateExpanded : global::System.Management.Automation.PSCmdlet,
Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.IEventListener,
@@ -43,15 +43,6 @@ public partial class UpdateAzChaosExperiment_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;
-
/// when specified, runs this cmdlet as a PowerShell job
[global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.ParameterCategory.Runtime)]
@@ -78,8 +69,8 @@ public partial class UpdateAzChaosExperiment_UpdateExpanded : global::System.Man
[global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.ParameterCategory.Azure)]
public global::System.Management.Automation.PSObject DefaultProfile { get; set; }
- /// Decides if enable a system assigned identity for the resource.
- [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Decides if enable a system assigned identity for the resource.")]
+ /// Determines whether to enable a system-assigned identity for the resource.
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Determines whether to enable a system-assigned identity for the resource.")]
public System.Boolean? EnableSystemAssignedIdentity { get; set; }
/// Accessor for extensibleParameters.
@@ -309,11 +300,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Chaos.Cmdlets.UpdateAzChaosExperiment_
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Chaos.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
if (telemetryInfo != null)
{
@@ -690,24 +676,7 @@ private void Update_experimentBody()
// onOk - response for 200 / application/json
// (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperiment
var result = (await response);
- if (null != result)
- {
- if (0 == _responseSize)
- {
- _firstResponse = result;
- _responseSize = 1;
- }
- else
- {
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject());
- }
- WriteObject(result.AddMultipleTypeNameIntoPSObject());
- _responseSize = 2;
- }
- }
+ WriteObject(result, false);
}
}
}
diff --git a/generated/Chaos/Chaos.Autorest/generated/cmdlets/UpdateAzChaosExperiment_UpdateViaIdentityExpanded.cs b/generated/Chaos/Chaos.Autorest/generated/cmdlets/UpdateAzChaosExperiment_UpdateViaIdentityExpanded.cs
index 9d6ef0ec968d..f31859e31bee 100644
--- a/generated/Chaos/Chaos.Autorest/generated/cmdlets/UpdateAzChaosExperiment_UpdateViaIdentityExpanded.cs
+++ b/generated/Chaos/Chaos.Autorest/generated/cmdlets/UpdateAzChaosExperiment_UpdateViaIdentityExpanded.cs
@@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Chaos.Cmdlets
using Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.Cmdlets;
using System;
- /// Update a Experiment resource.
+ /// update a Experiment resource.
///
/// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Chaos/experiments/{experimentName}"
/// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Chaos/experiments/{experimentName}"
///
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzChaosExperiment_UpdateViaIdentityExpanded", SupportsShouldProcess = true)]
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperiment))]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Description(@"Update a Experiment resource.")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Description(@"update a Experiment resource.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Generated]
public partial class UpdateAzChaosExperiment_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet,
Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.IEventListener,
@@ -43,15 +43,6 @@ public partial class UpdateAzChaosExperiment_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;
-
/// when specified, runs this cmdlet as a PowerShell job
[global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.ParameterCategory.Runtime)]
@@ -78,8 +69,8 @@ public partial class UpdateAzChaosExperiment_UpdateViaIdentityExpanded : global:
[global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.ParameterCategory.Azure)]
public global::System.Management.Automation.PSObject DefaultProfile { get; set; }
- /// Decides if enable a system assigned identity for the resource.
- [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Decides if enable a system assigned identity for the resource.")]
+ /// Determines whether to enable a system-assigned identity for the resource.
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Determines whether to enable a system-assigned identity for the resource.")]
public System.Boolean? EnableSystemAssignedIdentity { get; set; }
/// Accessor for extensibleParameters.
@@ -266,11 +257,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Chaos.Cmdlets.UpdateAzChaosExperiment_
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Chaos.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
if (telemetryInfo != null)
{
@@ -670,24 +656,7 @@ private void Update_experimentBody()
// onOk - response for 200 / application/json
// (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IExperiment
var result = (await response);
- if (null != result)
- {
- if (0 == _responseSize)
- {
- _firstResponse = result;
- _responseSize = 1;
- }
- else
- {
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject());
- }
- WriteObject(result.AddMultipleTypeNameIntoPSObject());
- _responseSize = 2;
- }
- }
+ WriteObject(result, false);
}
}
}
diff --git a/generated/Chaos/Chaos.Autorest/generated/cmdlets/UpdateAzChaosTarget_UpdateExpanded.cs b/generated/Chaos/Chaos.Autorest/generated/cmdlets/UpdateAzChaosTarget_UpdateExpanded.cs
index abc8dc596010..f19e1ba4ecdc 100644
--- a/generated/Chaos/Chaos.Autorest/generated/cmdlets/UpdateAzChaosTarget_UpdateExpanded.cs
+++ b/generated/Chaos/Chaos.Autorest/generated/cmdlets/UpdateAzChaosTarget_UpdateExpanded.cs
@@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Chaos.Cmdlets
using Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.Cmdlets;
using System;
- /// Update a Target resource that extends a tracked regional resource.
+ /// update a Target resource that extends a tracked regional resource.
///
/// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{parentProviderNamespace}/{parentResourceType}/{parentResourceName}/providers/Microsoft.Chaos/targets/{targetName}"
/// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{parentProviderNamespace}/{parentResourceType}/{parentResourceName}/providers/Microsoft.Chaos/targets/{targetName}"
///
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzChaosTarget_UpdateExpanded", SupportsShouldProcess = true)]
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ITarget))]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Description(@"Update a Target resource that extends a tracked regional resource.")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Description(@"update a Target resource that extends a tracked regional resource.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Generated]
public partial class UpdateAzChaosTarget_UpdateExpanded : global::System.Management.Automation.PSCmdlet,
Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.IEventListener,
diff --git a/generated/Chaos/Chaos.Autorest/generated/cmdlets/UpdateAzChaosTarget_UpdateViaIdentityExpanded.cs b/generated/Chaos/Chaos.Autorest/generated/cmdlets/UpdateAzChaosTarget_UpdateViaIdentityExpanded.cs
index 73e03f5be8bb..c662731b5248 100644
--- a/generated/Chaos/Chaos.Autorest/generated/cmdlets/UpdateAzChaosTarget_UpdateViaIdentityExpanded.cs
+++ b/generated/Chaos/Chaos.Autorest/generated/cmdlets/UpdateAzChaosTarget_UpdateViaIdentityExpanded.cs
@@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Chaos.Cmdlets
using Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.Cmdlets;
using System;
- /// Update a Target resource that extends a tracked regional resource.
+ /// update a Target resource that extends a tracked regional resource.
///
/// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{parentProviderNamespace}/{parentResourceType}/{parentResourceName}/providers/Microsoft.Chaos/targets/{targetName}"
/// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{parentProviderNamespace}/{parentResourceType}/{parentResourceName}/providers/Microsoft.Chaos/targets/{targetName}"
///
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzChaosTarget_UpdateViaIdentityExpanded", SupportsShouldProcess = true)]
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ITarget))]
- [global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Description(@"Update a Target resource that extends a tracked regional resource.")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Description(@"update a Target resource that extends a tracked regional resource.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Chaos.Generated]
public partial class UpdateAzChaosTarget_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet,
Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.IEventListener,
diff --git a/generated/Chaos/Chaos.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/Chaos/Chaos.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs
index 5f649e4f67c0..55b7a80a292e 100644
--- a/generated/Chaos/Chaos.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs
+++ b/generated/Chaos/Chaos.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/Chaos/Chaos.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/Chaos/Chaos.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs
index f77948dced50..ebee2e81a52d 100644
--- a/generated/Chaos/Chaos.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs
+++ b/generated/Chaos/Chaos.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs
@@ -216,6 +216,20 @@ public string GetProcessCustomAttributesAtRuntime()
{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.Chaos.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.Chaos.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.Chaos.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/Chaos/Chaos.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/Chaos/Chaos.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs
index 0705c63a723a..e12088dc24c7 100644
--- a/generated/Chaos/Chaos.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs
+++ b/generated/Chaos/Chaos.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/Chaos/Chaos.Autorest/generated/runtime/BuildTime/PsAttributes.cs b/generated/Chaos/Chaos.Autorest/generated/runtime/BuildTime/PsAttributes.cs
index 361b6e0ea0fe..27d1ebedcc04 100644
--- a/generated/Chaos/Chaos.Autorest/generated/runtime/BuildTime/PsAttributes.cs
+++ b/generated/Chaos/Chaos.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/Chaos/Chaos.Autorest/generated/runtime/Context.cs b/generated/Chaos/Chaos.Autorest/generated/runtime/Context.cs
index 7871d6bb8439..1da698ddf029 100644
--- a/generated/Chaos/Chaos.Autorest/generated/runtime/Context.cs
+++ b/generated/Chaos/Chaos.Autorest/generated/runtime/Context.cs
@@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Chaos.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/Chaos/Chaos.Autorest/generated/runtime/MessageAttribute.cs b/generated/Chaos/Chaos.Autorest/generated/runtime/MessageAttribute.cs
index e8dcbeaca6dc..67c852d20e95 100644
--- a/generated/Chaos/Chaos.Autorest/generated/runtime/MessageAttribute.cs
+++ b/generated/Chaos/Chaos.Autorest/generated/runtime/MessageAttribute.cs
@@ -16,9 +16,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Chaos.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.Chaos" : @"";
+
//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/Chaos/Chaos.Autorest/generated/runtime/Properties/Resources.resx b/generated/Chaos/Chaos.Autorest/generated/runtime/Properties/Resources.resx
index a08a2e50172b..4ef90b70573d 100644
--- a/generated/Chaos/Chaos.Autorest/generated/runtime/Properties/Resources.resx
+++ b/generated/Chaos/Chaos.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/Chaos/Chaos.Autorest/internal/Get-AzChaosOperation.ps1 b/generated/Chaos/Chaos.Autorest/internal/Get-AzChaosOperation.ps1
index d68b59e57a7c..2485dcfbb1e7 100644
--- a/generated/Chaos/Chaos.Autorest/internal/Get-AzChaosOperation.ps1
+++ b/generated/Chaos/Chaos.Autorest/internal/Get-AzChaosOperation.ps1
@@ -90,11 +90,17 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
$mapping = @{
List = 'Az.Chaos.private\Get-AzChaosOperation_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/Chaos/Chaos.Autorest/internal/ProxyCmdletDefinitions.ps1 b/generated/Chaos/Chaos.Autorest/internal/ProxyCmdletDefinitions.ps1
index d68b59e57a7c..2485dcfbb1e7 100644
--- a/generated/Chaos/Chaos.Autorest/internal/ProxyCmdletDefinitions.ps1
+++ b/generated/Chaos/Chaos.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.Chaos.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
$mapping = @{
List = 'Az.Chaos.private\Get-AzChaosOperation_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/CloudHsm/CloudHsm.Autorest/resources/README.md b/generated/Chaos/Chaos.Autorest/resources/README.md
similarity index 100%
rename from src/CloudHsm/CloudHsm.Autorest/resources/README.md
rename to generated/Chaos/Chaos.Autorest/resources/README.md
diff --git a/generated/CloudHsm/CloudHsm.Autorest/exports/Backup-AzCloudHsm.ps1 b/generated/CloudHsm/CloudHsm.Autorest/exports/Backup-AzCloudHsm.ps1
index 51626f65858b..c290182ed338 100644
--- a/generated/CloudHsm/CloudHsm.Autorest/exports/Backup-AzCloudHsm.ps1
+++ b/generated/CloudHsm/CloudHsm.Autorest/exports/Backup-AzCloudHsm.ps1
@@ -135,8 +135,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/CloudHsm/CloudHsm.Autorest/exports/Get-AzCloudHsm.ps1 b/generated/CloudHsm/CloudHsm.Autorest/exports/Get-AzCloudHsm.ps1
index 92836c98af7b..623855822aa2 100644
--- a/generated/CloudHsm/CloudHsm.Autorest/exports/Get-AzCloudHsm.ps1
+++ b/generated/CloudHsm/CloudHsm.Autorest/exports/Get-AzCloudHsm.ps1
@@ -123,8 +123,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/CloudHsm/CloudHsm.Autorest/exports/New-AzCloudHsm.ps1 b/generated/CloudHsm/CloudHsm.Autorest/exports/New-AzCloudHsm.ps1
index c6760b1659fb..3073630a637c 100644
--- a/generated/CloudHsm/CloudHsm.Autorest/exports/New-AzCloudHsm.ps1
+++ b/generated/CloudHsm/CloudHsm.Autorest/exports/New-AzCloudHsm.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/CloudHsm/CloudHsm.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/CloudHsm/CloudHsm.Autorest/exports/ProxyCmdletDefinitions.ps1
index 8f4261ebd3ca..1dfcc8ea2c5d 100644
--- a/generated/CloudHsm/CloudHsm.Autorest/exports/ProxyCmdletDefinitions.ps1
+++ b/generated/CloudHsm/CloudHsm.Autorest/exports/ProxyCmdletDefinitions.ps1
@@ -135,8 +135,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -328,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) {
@@ -566,8 +564,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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) {
@@ -988,8 +984,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -1205,8 +1200,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/CloudHsm/CloudHsm.Autorest/exports/Remove-AzCloudHsm.ps1 b/generated/CloudHsm/CloudHsm.Autorest/exports/Remove-AzCloudHsm.ps1
index 5436089fd0e9..47e403011daf 100644
--- a/generated/CloudHsm/CloudHsm.Autorest/exports/Remove-AzCloudHsm.ps1
+++ b/generated/CloudHsm/CloudHsm.Autorest/exports/Remove-AzCloudHsm.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/CloudHsm/CloudHsm.Autorest/exports/Restore-AzCloudHsm.ps1 b/generated/CloudHsm/CloudHsm.Autorest/exports/Restore-AzCloudHsm.ps1
index 0c047d0b7adf..a02ec1577095 100644
--- a/generated/CloudHsm/CloudHsm.Autorest/exports/Restore-AzCloudHsm.ps1
+++ b/generated/CloudHsm/CloudHsm.Autorest/exports/Restore-AzCloudHsm.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/CloudHsm/CloudHsm.Autorest/exports/Update-AzCloudHsm.ps1 b/generated/CloudHsm/CloudHsm.Autorest/exports/Update-AzCloudHsm.ps1
index 12276e9ea8ee..c84db91f799d 100644
--- a/generated/CloudHsm/CloudHsm.Autorest/exports/Update-AzCloudHsm.ps1
+++ b/generated/CloudHsm/CloudHsm.Autorest/exports/Update-AzCloudHsm.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/CloudHsm/CloudHsm.Autorest/generated/api/CloudHsm.cs b/generated/CloudHsm/CloudHsm.Autorest/generated/api/CloudHsm.cs
index 4b0e0419d6c3..b0256932d7c1 100644
--- a/generated/CloudHsm/CloudHsm.Autorest/generated/api/CloudHsm.cs
+++ b/generated/CloudHsm/CloudHsm.Autorest/generated/api/CloudHsm.cs
@@ -321,7 +321,7 @@ public partial class CloudHsm
case global::System.Net.HttpStatusCode.Accepted:
{
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudHsm.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onAccepted(_response,null /* deserializeFromResponse doesn't support '-header-' C:\Users\cloudtest\.autorest\@autorest_powershell@4.0.742\node_modules\@autorest\powershell\dist\llcsharp\schema\object.js*/);
+ await onAccepted(_response,null /* deserializeFromResponse doesn't support '-header-' C:\Users\cloudtest\.autorest\@autorest_powershell@4.0.752\node_modules\@autorest\powershell\dist\llcsharp\schema\object.js*/);
break;
}
default:
@@ -2132,7 +2132,7 @@ public partial class CloudHsm
case global::System.Net.HttpStatusCode.Accepted:
{
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudHsm.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onAccepted(_response,null /* deserializeFromResponse doesn't support '-header-' C:\Users\cloudtest\.autorest\@autorest_powershell@4.0.742\node_modules\@autorest\powershell\dist\llcsharp\schema\object.js*/);
+ await onAccepted(_response,null /* deserializeFromResponse doesn't support '-header-' C:\Users\cloudtest\.autorest\@autorest_powershell@4.0.752\node_modules\@autorest\powershell\dist\llcsharp\schema\object.js*/);
break;
}
default:
diff --git a/generated/CloudHsm/CloudHsm.Autorest/generated/cmdlets/BackupAzCloudHsm_BackupExpanded.cs b/generated/CloudHsm/CloudHsm.Autorest/generated/cmdlets/BackupAzCloudHsm_BackupExpanded.cs
index 137daa78cdb3..79890e82f6b5 100644
--- a/generated/CloudHsm/CloudHsm.Autorest/generated/cmdlets/BackupAzCloudHsm_BackupExpanded.cs
+++ b/generated/CloudHsm/CloudHsm.Autorest/generated/cmdlets/BackupAzCloudHsm_BackupExpanded.cs
@@ -44,15 +44,6 @@ public partial class BackupAzCloudHsm_BackupExpanded : 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.CloudHsm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudHsm.ParameterCategory.Runtime)]
@@ -287,11 +278,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.CloudHsm.Cmdlets.BackupAzCloudHsm_Back
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.CloudHsm.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.CloudHsm.Models.IBackupResult
var result = (await response);
- if (null != result)
- {
- if (0 == _responseSize)
- {
- _firstResponse = result;
- _responseSize = 1;
- }
- else
- {
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject());
- }
- WriteObject(result.AddMultipleTypeNameIntoPSObject());
- _responseSize = 2;
- }
- }
+ WriteObject(result, false);
}
}
}
diff --git a/generated/CloudHsm/CloudHsm.Autorest/generated/cmdlets/NewAzCloudHsm_CreateExpanded.cs b/generated/CloudHsm/CloudHsm.Autorest/generated/cmdlets/NewAzCloudHsm_CreateExpanded.cs
index d673aef4b383..53f3513ad666 100644
--- a/generated/CloudHsm/CloudHsm.Autorest/generated/cmdlets/NewAzCloudHsm_CreateExpanded.cs
+++ b/generated/CloudHsm/CloudHsm.Autorest/generated/cmdlets/NewAzCloudHsm_CreateExpanded.cs
@@ -44,15 +44,6 @@ public partial class NewAzCloudHsm_CreateExpanded : 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.CloudHsm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudHsm.ParameterCategory.Runtime)]
@@ -343,11 +334,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.CloudHsm.Cmdlets.NewAzCloudHsm_CreateE
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.CloudHsm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
if (telemetryInfo != null)
{
@@ -697,24 +683,7 @@ protected override void StopProcessing()
// onOk - response for 200 / application/json
// (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.CloudHsm.Models.ICloudHsmCluster
var result = (await response);
- if (null != result)
- {
- if (0 == _responseSize)
- {
- _firstResponse = result;
- _responseSize = 1;
- }
- else
- {
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject());
- }
- WriteObject(result.AddMultipleTypeNameIntoPSObject());
- _responseSize = 2;
- }
- }
+ WriteObject(result, false);
}
}
}
diff --git a/generated/CloudHsm/CloudHsm.Autorest/generated/cmdlets/RemoveAzCloudHsm_Delete.cs b/generated/CloudHsm/CloudHsm.Autorest/generated/cmdlets/RemoveAzCloudHsm_Delete.cs
index 8e1393cabed6..f5ff4664ce62 100644
--- a/generated/CloudHsm/CloudHsm.Autorest/generated/cmdlets/RemoveAzCloudHsm_Delete.cs
+++ b/generated/CloudHsm/CloudHsm.Autorest/generated/cmdlets/RemoveAzCloudHsm_Delete.cs
@@ -41,15 +41,6 @@ public partial class RemoveAzCloudHsm_Delete : global::System.Management.Automat
/// A dictionary to carry over additional data for pipeline.
private global::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.CloudHsm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudHsm.ParameterCategory.Runtime)]
@@ -265,11 +256,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.CloudHsm.Cmdlets.RemoveAzCloudHsm_Dele
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.CloudHsm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
if (telemetryInfo != null)
{
@@ -581,7 +567,7 @@ protected override void StopProcessing()
return ;
}
// onNoContent - response for 204 /
- if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru"))
+ if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru"))
{
WriteObject(true);
}
@@ -605,7 +591,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/CloudHsm/CloudHsm.Autorest/generated/cmdlets/RestoreAzCloudHsm_RestoreExpanded.cs b/generated/CloudHsm/CloudHsm.Autorest/generated/cmdlets/RestoreAzCloudHsm_RestoreExpanded.cs
index 88094419155a..6da59190249c 100644
--- a/generated/CloudHsm/CloudHsm.Autorest/generated/cmdlets/RestoreAzCloudHsm_RestoreExpanded.cs
+++ b/generated/CloudHsm/CloudHsm.Autorest/generated/cmdlets/RestoreAzCloudHsm_RestoreExpanded.cs
@@ -41,15 +41,6 @@ public partial class RestoreAzCloudHsm_RestoreExpanded : 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;
-
/// Cloud Hsm Cluster restore information
private Microsoft.Azure.PowerShell.Cmdlets.CloudHsm.Models.IRestoreRequestProperties _restoreRequestPropertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.CloudHsm.Models.RestoreRequestProperties();
@@ -292,11 +283,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.CloudHsm.Cmdlets.RestoreAzCloudHsm_Res
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.CloudHsm.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.CloudHsm.Models.IRestoreResult
var result = (await response);
- if (null != result)
- {
- if (0 == _responseSize)
- {
- _firstResponse = result;
- _responseSize = 1;
- }
- else
- {
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject());
- }
- WriteObject(result.AddMultipleTypeNameIntoPSObject());
- _responseSize = 2;
- }
- }
+ WriteObject(result, false);
}
}
}
diff --git a/generated/CloudHsm/CloudHsm.Autorest/generated/cmdlets/UpdateAzCloudHsm_UpdateExpanded.cs b/generated/CloudHsm/CloudHsm.Autorest/generated/cmdlets/UpdateAzCloudHsm_UpdateExpanded.cs
index eab560c5e737..d6c8ffbc301f 100644
--- a/generated/CloudHsm/CloudHsm.Autorest/generated/cmdlets/UpdateAzCloudHsm_UpdateExpanded.cs
+++ b/generated/CloudHsm/CloudHsm.Autorest/generated/cmdlets/UpdateAzCloudHsm_UpdateExpanded.cs
@@ -44,15 +44,6 @@ public partial class UpdateAzCloudHsm_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;
-
- ///
- /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object.
- /// Two means multiple returned objects in response.
- ///
- private int _responseSize = 0;
-
/// when specified, runs this cmdlet as a PowerShell job
[global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")]
[global::Microsoft.Azure.PowerShell.Cmdlets.CloudHsm.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudHsm.ParameterCategory.Runtime)]
@@ -304,11 +295,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.CloudHsm.Cmdlets.UpdateAzCloudHsm_Upda
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.CloudHsm.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
if (telemetryInfo != null)
{
@@ -689,24 +675,7 @@ private void Update_body()
// onOk - response for 200 / application/json
// (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.CloudHsm.Models.ICloudHsmCluster
var result = (await response);
- if (null != result)
- {
- if (0 == _responseSize)
- {
- _firstResponse = result;
- _responseSize = 1;
- }
- else
- {
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject());
- }
- WriteObject(result.AddMultipleTypeNameIntoPSObject());
- _responseSize = 2;
- }
- }
+ WriteObject(result, false);
}
}
}
diff --git a/generated/CloudHsm/CloudHsm.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/CloudHsm/CloudHsm.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs
index 96c60f861427..fe992f6b9692 100644
--- a/generated/CloudHsm/CloudHsm.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs
+++ b/generated/CloudHsm/CloudHsm.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/CloudHsm/CloudHsm.Autorest/generated/runtime/Context.cs b/generated/CloudHsm/CloudHsm.Autorest/generated/runtime/Context.cs
index fe587db86179..83ae8db9de47 100644
--- a/generated/CloudHsm/CloudHsm.Autorest/generated/runtime/Context.cs
+++ b/generated/CloudHsm/CloudHsm.Autorest/generated/runtime/Context.cs
@@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.CloudHsm.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/Communication/Communication.Autorest/exports/Get-AzCommunicationService.ps1 b/generated/Communication/Communication.Autorest/exports/Get-AzCommunicationService.ps1
index 77125c9ef876..279f43f6963e 100644
--- a/generated/Communication/Communication.Autorest/exports/Get-AzCommunicationService.ps1
+++ b/generated/Communication/Communication.Autorest/exports/Get-AzCommunicationService.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/Communication/Communication.Autorest/exports/Get-AzCommunicationServiceKey.ps1 b/generated/Communication/Communication.Autorest/exports/Get-AzCommunicationServiceKey.ps1
index 6a804fdbc6da..9b56cf065354 100644
--- a/generated/Communication/Communication.Autorest/exports/Get-AzCommunicationServiceKey.ps1
+++ b/generated/Communication/Communication.Autorest/exports/Get-AzCommunicationServiceKey.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/Communication/Communication.Autorest/exports/New-AzCommunicationService.ps1 b/generated/Communication/Communication.Autorest/exports/New-AzCommunicationService.ps1
index 71e0a876c51d..24fd08cf0b9d 100644
--- a/generated/Communication/Communication.Autorest/exports/New-AzCommunicationService.ps1
+++ b/generated/Communication/Communication.Autorest/exports/New-AzCommunicationService.ps1
@@ -16,9 +16,9 @@
<#
.Synopsis
-create a new CommunicationService or create an existing CommunicationService.
+Create a new CommunicationService or create an existing CommunicationService.
.Description
-create a new CommunicationService or create an existing CommunicationService.
+Create a new CommunicationService or create an existing CommunicationService.
.Example
New-AzCommunicationService -ResourceGroupName ContosoResourceProvider1 -Name ContosoAcsResource1 -DataLocation UnitedStates -Location Global
.Example
@@ -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/Communication/Communication.Autorest/exports/New-AzCommunicationServiceKey.ps1 b/generated/Communication/Communication.Autorest/exports/New-AzCommunicationServiceKey.ps1
index 48989079a004..31e838b5a802 100644
--- a/generated/Communication/Communication.Autorest/exports/New-AzCommunicationServiceKey.ps1
+++ b/generated/Communication/Communication.Autorest/exports/New-AzCommunicationServiceKey.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/Communication/Communication.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/Communication/Communication.Autorest/exports/ProxyCmdletDefinitions.ps1
index d8cada33fb84..37580dcc442b 100644
--- a/generated/Communication/Communication.Autorest/exports/ProxyCmdletDefinitions.ps1
+++ b/generated/Communication/Communication.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) {
@@ -322,8 +321,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -556,8 +554,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -645,9 +642,9 @@ end {
<#
.Synopsis
-create a new CommunicationService or create an existing CommunicationService.
+Create a new CommunicationService or create an existing CommunicationService.
.Description
-create a new CommunicationService or create an existing CommunicationService.
+Create a new CommunicationService or create an existing CommunicationService.
.Example
New-AzCommunicationService -ResourceGroupName ContosoResourceProvider1 -Name ContosoAcsResource1 -DataLocation UnitedStates -Location Global
.Example
@@ -814,8 +811,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -1037,8 +1033,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -1262,8 +1257,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -1456,8 +1450,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -1547,9 +1540,9 @@ end {
<#
.Synopsis
-update a new CommunicationService or update an existing CommunicationService.
+Update a new CommunicationService or update an existing CommunicationService.
.Description
-update a new CommunicationService or update an existing CommunicationService.
+Update a new CommunicationService or update an existing CommunicationService.
.Example
Update-AzCommunicationService -Name ContosoAcsResource2 -ResourceGroupName ContosoResourceProvider1 -Tag @{ExampleKey1="ExampleValue1"}
.Example
@@ -1710,8 +1703,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/Communication/Communication.Autorest/exports/Remove-AzCommunicationService.ps1 b/generated/Communication/Communication.Autorest/exports/Remove-AzCommunicationService.ps1
index 24b0bf835881..0429225a3c70 100644
--- a/generated/Communication/Communication.Autorest/exports/Remove-AzCommunicationService.ps1
+++ b/generated/Communication/Communication.Autorest/exports/Remove-AzCommunicationService.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/Communication/Communication.Autorest/exports/Set-AzCommunicationServiceNotificationHub.ps1 b/generated/Communication/Communication.Autorest/exports/Set-AzCommunicationServiceNotificationHub.ps1
index bcb5eeb2296f..a9edce010231 100644
--- a/generated/Communication/Communication.Autorest/exports/Set-AzCommunicationServiceNotificationHub.ps1
+++ b/generated/Communication/Communication.Autorest/exports/Set-AzCommunicationServiceNotificationHub.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/Communication/Communication.Autorest/exports/Test-AzCommunicationServiceNameAvailability.ps1 b/generated/Communication/Communication.Autorest/exports/Test-AzCommunicationServiceNameAvailability.ps1
index 87b5039c7d4a..575fbf297474 100644
--- a/generated/Communication/Communication.Autorest/exports/Test-AzCommunicationServiceNameAvailability.ps1
+++ b/generated/Communication/Communication.Autorest/exports/Test-AzCommunicationServiceNameAvailability.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/Communication/Communication.Autorest/exports/Update-AzCommunicationService.ps1 b/generated/Communication/Communication.Autorest/exports/Update-AzCommunicationService.ps1
index 73e283c81b1d..b9c500fee248 100644
--- a/generated/Communication/Communication.Autorest/exports/Update-AzCommunicationService.ps1
+++ b/generated/Communication/Communication.Autorest/exports/Update-AzCommunicationService.ps1
@@ -16,9 +16,9 @@
<#
.Synopsis
-update a new CommunicationService or update an existing CommunicationService.
+Update a new CommunicationService or update an existing CommunicationService.
.Description
-update a new CommunicationService or update an existing CommunicationService.
+Update a new CommunicationService or update an existing CommunicationService.
.Example
Update-AzCommunicationService -Name ContosoAcsResource2 -ResourceGroupName ContosoResourceProvider1 -Tag @{ExampleKey1="ExampleValue1"}
.Example
@@ -179,8 +179,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/Communication/Communication.Autorest/generated/api/Models/CommunicationServiceResource.cs b/generated/Communication/Communication.Autorest/generated/api/Models/CommunicationServiceResource.cs
index dcc9abf6b368..e1cb1785878f 100644
--- a/generated/Communication/Communication.Autorest/generated/api/Models/CommunicationServiceResource.cs
+++ b/generated/Communication/Communication.Autorest/generated/api/Models/CommunicationServiceResource.cs
@@ -79,61 +79,61 @@ public partial class CommunicationServiceResource :
public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; }
/// Internal Acessors for HostName
- string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServiceResourceInternal.HostName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServicePropertiesInternal)Property).HostName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServicePropertiesInternal)Property).HostName = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServiceResourceInternal.HostName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServicePropertiesInternal)Property).HostName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServicePropertiesInternal)Property).HostName = value ?? null; }
/// Internal Acessors for Identity
Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IManagedServiceIdentity Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServiceResourceInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ManagedServiceIdentity()); set { {_identity = value;} } }
/// Internal Acessors for IdentityPrincipalId
- string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServiceResourceInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IManagedServiceIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IManagedServiceIdentityInternal)Identity).PrincipalId = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServiceResourceInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IManagedServiceIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IManagedServiceIdentityInternal)Identity).PrincipalId = value ?? null; }
/// Internal Acessors for IdentityTenantId
- string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServiceResourceInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IManagedServiceIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IManagedServiceIdentityInternal)Identity).TenantId = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServiceResourceInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IManagedServiceIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IManagedServiceIdentityInternal)Identity).TenantId = value ?? null; }
/// Internal Acessors for ImmutableResourceId
- string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServiceResourceInternal.ImmutableResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServicePropertiesInternal)Property).ImmutableResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServicePropertiesInternal)Property).ImmutableResourceId = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServiceResourceInternal.ImmutableResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServicePropertiesInternal)Property).ImmutableResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServicePropertiesInternal)Property).ImmutableResourceId = value ?? null; }
/// Internal Acessors for NotificationHubId
- string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServiceResourceInternal.NotificationHubId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServicePropertiesInternal)Property).NotificationHubId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServicePropertiesInternal)Property).NotificationHubId = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServiceResourceInternal.NotificationHubId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServicePropertiesInternal)Property).NotificationHubId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServicePropertiesInternal)Property).NotificationHubId = value ?? null; }
/// Internal Acessors for Property
Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServiceProperties Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServiceResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.CommunicationServiceProperties()); set { {_property = value;} } }
/// Internal Acessors for ProvisioningState
- string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServiceResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServicePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServicePropertiesInternal)Property).ProvisioningState = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServiceResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServicePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServicePropertiesInternal)Property).ProvisioningState = value ?? null; }
/// Internal Acessors for Version
- string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServiceResourceInternal.Version { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServicePropertiesInternal)Property).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServicePropertiesInternal)Property).Version = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServiceResourceInternal.Version { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServicePropertiesInternal)Property).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServicePropertiesInternal)Property).Version = value ?? null; }
/// Internal Acessors for Id
- string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__trackedResource).Id = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__trackedResource).Id = value ?? null; }
/// Internal Acessors for Name
- string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__trackedResource).Name = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__trackedResource).Name = value ?? null; }
/// Internal Acessors for SystemData
- Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__trackedResource).SystemData = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; }
/// Internal Acessors for SystemDataCreatedAt
- global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value; }
+ global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); }
/// Internal Acessors for SystemDataCreatedBy
- string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; }
/// Internal Acessors for SystemDataCreatedByType
- string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; }
/// Internal Acessors for SystemDataLastModifiedAt
- global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value; }
+ global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); }
/// Internal Acessors for SystemDataLastModifiedBy
- string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; }
/// Internal Acessors for SystemDataLastModifiedByType
- string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; }
/// Internal Acessors for Type
- string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__trackedResource).Type = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__trackedResource).Type = value ?? null; }
/// The name of the resource
[Microsoft.Azure.PowerShell.Cmdlets.Communication.Origin(Microsoft.Azure.PowerShell.Cmdlets.Communication.PropertyOrigin.Inherited)]
diff --git a/generated/Communication/Communication.Autorest/generated/api/Models/CommunicationServiceResourceUpdate.cs b/generated/Communication/Communication.Autorest/generated/api/Models/CommunicationServiceResourceUpdate.cs
index 3fbbcc6f84a3..023ae5a6dee6 100644
--- a/generated/Communication/Communication.Autorest/generated/api/Models/CommunicationServiceResourceUpdate.cs
+++ b/generated/Communication/Communication.Autorest/generated/api/Models/CommunicationServiceResourceUpdate.cs
@@ -60,10 +60,10 @@ public partial class CommunicationServiceResourceUpdate :
Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IManagedServiceIdentity Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServiceResourceUpdateInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ManagedServiceIdentity()); set { {_identity = value;} } }
/// Internal Acessors for IdentityPrincipalId
- string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServiceResourceUpdateInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IManagedServiceIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IManagedServiceIdentityInternal)Identity).PrincipalId = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServiceResourceUpdateInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IManagedServiceIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IManagedServiceIdentityInternal)Identity).PrincipalId = value ?? null; }
/// Internal Acessors for IdentityTenantId
- string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServiceResourceUpdateInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IManagedServiceIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IManagedServiceIdentityInternal)Identity).TenantId = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServiceResourceUpdateInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IManagedServiceIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IManagedServiceIdentityInternal)Identity).TenantId = value ?? null; }
/// Internal Acessors for Property
Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServiceUpdateProperties Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServiceResourceUpdateInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.CommunicationServiceUpdateProperties()); set { {_property = value;} } }
diff --git a/generated/Communication/Communication.Autorest/generated/api/Models/ErrorResponse.cs b/generated/Communication/Communication.Autorest/generated/api/Models/ErrorResponse.cs
index 27456512e386..efd324c47c4c 100644
--- a/generated/Communication/Communication.Autorest/generated/api/Models/ErrorResponse.cs
+++ b/generated/Communication/Communication.Autorest/generated/api/Models/ErrorResponse.cs
@@ -40,22 +40,22 @@ public partial class ErrorResponse :
public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IErrorDetailInternal)Error).Message; }
/// Internal Acessors for AdditionalInfo
- System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IErrorDetailInternal)Error).AdditionalInfo = value; }
+ System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IErrorDetailInternal)Error).AdditionalInfo = value ?? null /* arrayOf */; }
/// Internal Acessors for Code
- string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IErrorDetailInternal)Error).Code = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IErrorDetailInternal)Error).Code = value ?? null; }
/// Internal Acessors for Detail
- System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IErrorDetailInternal)Error).Detail = value; }
+ System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IErrorDetailInternal)Error).Detail = value ?? null /* arrayOf */; }
/// Internal Acessors for Error
Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ErrorDetail()); set { {_error = value;} } }
/// Internal Acessors for Message
- string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IErrorDetailInternal)Error).Message = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IErrorDetailInternal)Error).Message = value ?? null; }
/// Internal Acessors for Target
- string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IErrorDetailInternal)Error).Target = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IErrorDetailInternal)Error).Target = value ?? null; }
/// The error target.
[Microsoft.Azure.PowerShell.Cmdlets.Communication.Origin(Microsoft.Azure.PowerShell.Cmdlets.Communication.PropertyOrigin.Inlined)]
diff --git a/generated/Communication/Communication.Autorest/generated/api/Models/Operation.cs b/generated/Communication/Communication.Autorest/generated/api/Models/Operation.cs
index f75788c4ea2d..4840fc7407a3 100644
--- a/generated/Communication/Communication.Autorest/generated/api/Models/Operation.cs
+++ b/generated/Communication/Communication.Autorest/generated/api/Models/Operation.cs
@@ -73,16 +73,16 @@ public partial class Operation :
Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IOperationDisplay Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IOperationInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.OperationDisplay()); set { {_display = value;} } }
/// Internal Acessors for DisplayDescription
- string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IOperationDisplayInternal)Display).Description = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IOperationDisplayInternal)Display).Description = value ?? null; }
/// Internal Acessors for DisplayOperation
- string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IOperationDisplayInternal)Display).Operation = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IOperationDisplayInternal)Display).Operation = value ?? null; }
/// Internal Acessors for DisplayProvider
- string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IOperationDisplayInternal)Display).Provider = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IOperationDisplayInternal)Display).Provider = value ?? null; }
/// Internal Acessors for DisplayResource
- string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IOperationDisplayInternal)Display).Resource = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IOperationDisplayInternal)Display).Resource = value ?? null; }
/// Internal Acessors for IsDataAction
bool? Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IOperationInternal.IsDataAction { get => this._isDataAction; set { {_isDataAction = value;} } }
diff --git a/generated/Communication/Communication.Autorest/generated/api/Models/Resource.cs b/generated/Communication/Communication.Autorest/generated/api/Models/Resource.cs
index 3e6b7b100c3f..967009623e02 100644
--- a/generated/Communication/Communication.Autorest/generated/api/Models/Resource.cs
+++ b/generated/Communication/Communication.Autorest/generated/api/Models/Resource.cs
@@ -34,22 +34,22 @@ public partial class Resource :
Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.SystemData()); set { {_systemData = value;} } }
/// Internal Acessors for SystemDataCreatedAt
- global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ISystemDataInternal)SystemData).CreatedAt = value; }
+ global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); }
/// Internal Acessors for SystemDataCreatedBy
- string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ISystemDataInternal)SystemData).CreatedBy = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; }
/// Internal Acessors for SystemDataCreatedByType
- string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ISystemDataInternal)SystemData).CreatedByType = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; }
/// Internal Acessors for SystemDataLastModifiedAt
- global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ISystemDataInternal)SystemData).LastModifiedAt = value; }
+ global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); }
/// Internal Acessors for SystemDataLastModifiedBy
- string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ISystemDataInternal)SystemData).LastModifiedBy = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; }
/// Internal Acessors for SystemDataLastModifiedByType
- string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ISystemDataInternal)SystemData).LastModifiedByType = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; }
/// Internal Acessors for Type
string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal.Type { get => this._type; set { {_type = value;} } }
diff --git a/generated/Communication/Communication.Autorest/generated/api/Models/TrackedResource.cs b/generated/Communication/Communication.Autorest/generated/api/Models/TrackedResource.cs
index 3c7a29f831b2..781210efffee 100644
--- a/generated/Communication/Communication.Autorest/generated/api/Models/TrackedResource.cs
+++ b/generated/Communication/Communication.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.Communication.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__resource).Id = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__resource).Id = value ?? null; }
/// Internal Acessors for Name
- string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__resource).Name = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__resource).Name = value ?? null; }
/// Internal Acessors for SystemData
- Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__resource).SystemData = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; }
/// Internal Acessors for SystemDataCreatedAt
- global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__resource).SystemDataCreatedAt = value; }
+ global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); }
/// Internal Acessors for SystemDataCreatedBy
- string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__resource).SystemDataCreatedBy = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; }
/// Internal Acessors for SystemDataCreatedByType
- string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__resource).SystemDataCreatedByType = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; }
/// Internal Acessors for SystemDataLastModifiedAt
- global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value; }
+ global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); }
/// Internal Acessors for SystemDataLastModifiedBy
- string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; }
/// Internal Acessors for SystemDataLastModifiedByType
- string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; }
/// Internal Acessors for Type
- string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__resource).Type = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IResourceInternal)__resource).Type = value ?? null; }
/// The name of the resource
[Microsoft.Azure.PowerShell.Cmdlets.Communication.Origin(Microsoft.Azure.PowerShell.Cmdlets.Communication.PropertyOrigin.Inherited)]
diff --git a/generated/Communication/Communication.Autorest/generated/cmdlets/NewAzCommunicationService_CreateExpanded.cs b/generated/Communication/Communication.Autorest/generated/cmdlets/NewAzCommunicationService_CreateExpanded.cs
index fa354980b706..1041036630f7 100644
--- a/generated/Communication/Communication.Autorest/generated/cmdlets/NewAzCommunicationService_CreateExpanded.cs
+++ b/generated/Communication/Communication.Autorest/generated/cmdlets/NewAzCommunicationService_CreateExpanded.cs
@@ -40,18 +40,9 @@ public partial class NewAzCommunicationService_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 class representing a CommunicationService resource.
private Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServiceResource _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.CommunicationServiceResource();
- ///
- /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object.
- /// Two means multiple returned objects in response.
- ///
- private int _responseSize = 0;
-
/// when specified, runs this cmdlet as a PowerShell job
[global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Communication.ParameterCategory.Runtime)]
@@ -308,11 +299,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Communication.Cmdlets.NewAzCommunicati
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Communication.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
if (telemetryInfo != null)
{
@@ -654,24 +640,7 @@ protected override void StopProcessing()
// onOk - response for 200 / application/json
// (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServiceResource
var result = (await response);
- if (null != result)
- {
- if (0 == _responseSize)
- {
- _firstResponse = result;
- _responseSize = 1;
- }
- else
- {
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject());
- }
- WriteObject(result.AddMultipleTypeNameIntoPSObject());
- _responseSize = 2;
- }
- }
+ WriteObject(result, false);
}
}
}
diff --git a/generated/Communication/Communication.Autorest/generated/cmdlets/NewAzCommunicationService_CreateViaJsonFilePath.cs b/generated/Communication/Communication.Autorest/generated/cmdlets/NewAzCommunicationService_CreateViaJsonFilePath.cs
index dbdf4ed8c42a..2353909dcc7c 100644
--- a/generated/Communication/Communication.Autorest/generated/cmdlets/NewAzCommunicationService_CreateViaJsonFilePath.cs
+++ b/generated/Communication/Communication.Autorest/generated/cmdlets/NewAzCommunicationService_CreateViaJsonFilePath.cs
@@ -41,17 +41,8 @@ public partial class NewAzCommunicationService_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.Communication.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Communication.ParameterCategory.Runtime)]
@@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Communication.Cmdlets.NewAzCommunicati
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Communication.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.Communication.Models.ICommunicationServiceResource
var result = (await response);
- if (null != result)
- {
- if (0 == _responseSize)
- {
- _firstResponse = result;
- _responseSize = 1;
- }
- else
- {
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject());
- }
- WriteObject(result.AddMultipleTypeNameIntoPSObject());
- _responseSize = 2;
- }
- }
+ WriteObject(result, false);
}
}
}
diff --git a/generated/Communication/Communication.Autorest/generated/cmdlets/NewAzCommunicationService_CreateViaJsonString.cs b/generated/Communication/Communication.Autorest/generated/cmdlets/NewAzCommunicationService_CreateViaJsonString.cs
index 6bc8dcc12301..0a23b28f7295 100644
--- a/generated/Communication/Communication.Autorest/generated/cmdlets/NewAzCommunicationService_CreateViaJsonString.cs
+++ b/generated/Communication/Communication.Autorest/generated/cmdlets/NewAzCommunicationService_CreateViaJsonString.cs
@@ -41,15 +41,6 @@ public partial class NewAzCommunicationService_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.Communication.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Communication.ParameterCategory.Runtime)]
@@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Communication.Cmdlets.NewAzCommunicati
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Communication.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.Communication.Models.ICommunicationServiceResource
var result = (await response);
- if (null != result)
- {
- if (0 == _responseSize)
- {
- _firstResponse = result;
- _responseSize = 1;
- }
- else
- {
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject());
- }
- WriteObject(result.AddMultipleTypeNameIntoPSObject());
- _responseSize = 2;
- }
- }
+ WriteObject(result, false);
}
}
}
diff --git a/generated/Communication/Communication.Autorest/generated/cmdlets/RemoveAzCommunicationService_Delete.cs b/generated/Communication/Communication.Autorest/generated/cmdlets/RemoveAzCommunicationService_Delete.cs
index f23d09f5b19e..ca7e95f9270a 100644
--- a/generated/Communication/Communication.Autorest/generated/cmdlets/RemoveAzCommunicationService_Delete.cs
+++ b/generated/Communication/Communication.Autorest/generated/cmdlets/RemoveAzCommunicationService_Delete.cs
@@ -40,15 +40,6 @@ public partial class RemoveAzCommunicationService_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.Communication.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Communication.ParameterCategory.Runtime)]
@@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Communication.Cmdlets.RemoveAzCommunic
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Communication.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/Communication/Communication.Autorest/generated/cmdlets/RemoveAzCommunicationService_DeleteViaIdentity.cs b/generated/Communication/Communication.Autorest/generated/cmdlets/RemoveAzCommunicationService_DeleteViaIdentity.cs
index a059bb29540a..329c13c7b7c7 100644
--- a/generated/Communication/Communication.Autorest/generated/cmdlets/RemoveAzCommunicationService_DeleteViaIdentity.cs
+++ b/generated/Communication/Communication.Autorest/generated/cmdlets/RemoveAzCommunicationService_DeleteViaIdentity.cs
@@ -40,15 +40,6 @@ public partial class RemoveAzCommunicationService_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.Communication.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Communication.ParameterCategory.Runtime)]
@@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Communication.Cmdlets.RemoveAzCommunic
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Communication.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/Communication/Communication.Autorest/generated/cmdlets/UpdateAzCommunicationService_UpdateExpanded.cs b/generated/Communication/Communication.Autorest/generated/cmdlets/UpdateAzCommunicationService_UpdateExpanded.cs
index 2014db0cfce3..771b9a312900 100644
--- a/generated/Communication/Communication.Autorest/generated/cmdlets/UpdateAzCommunicationService_UpdateExpanded.cs
+++ b/generated/Communication/Communication.Autorest/generated/cmdlets/UpdateAzCommunicationService_UpdateExpanded.cs
@@ -40,18 +40,9 @@ public partial class UpdateAzCommunicationService_UpdateExpanded : 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 class representing a CommunicationService resource.
private Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServiceResource _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.CommunicationServiceResource();
- ///
- /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object.
- /// Two means multiple returned objects in response.
- ///
- private int _responseSize = 0;
-
/// when specified, runs this cmdlet as a PowerShell job
[global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Communication.ParameterCategory.Runtime)]
@@ -286,11 +277,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Communication.Cmdlets.UpdateAzCommunic
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Communication.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
if (telemetryInfo != null)
{
@@ -659,24 +645,7 @@ private void Update_parametersBody()
// onOk - response for 200 / application/json
// (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServiceResource
var result = (await response);
- if (null != result)
- {
- if (0 == _responseSize)
- {
- _firstResponse = result;
- _responseSize = 1;
- }
- else
- {
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject());
- }
- WriteObject(result.AddMultipleTypeNameIntoPSObject());
- _responseSize = 2;
- }
- }
+ WriteObject(result, false);
}
}
}
diff --git a/generated/Communication/Communication.Autorest/generated/cmdlets/UpdateAzCommunicationService_UpdateViaIdentityExpanded.cs b/generated/Communication/Communication.Autorest/generated/cmdlets/UpdateAzCommunicationService_UpdateViaIdentityExpanded.cs
index a6ec6f5b2287..c55682de1272 100644
--- a/generated/Communication/Communication.Autorest/generated/cmdlets/UpdateAzCommunicationService_UpdateViaIdentityExpanded.cs
+++ b/generated/Communication/Communication.Autorest/generated/cmdlets/UpdateAzCommunicationService_UpdateViaIdentityExpanded.cs
@@ -40,18 +40,9 @@ public partial class UpdateAzCommunicationService_UpdateViaIdentityExpanded : 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 class representing a CommunicationService resource.
private Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServiceResource _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.CommunicationServiceResource();
- ///
- /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object.
- /// Two means multiple returned objects in response.
- ///
- private int _responseSize = 0;
-
/// when specified, runs this cmdlet as a PowerShell job
[global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Communication.ParameterCategory.Runtime)]
@@ -243,11 +234,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Communication.Cmdlets.UpdateAzCommunic
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Communication.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
if (telemetryInfo != null)
{
@@ -639,24 +625,7 @@ private void Update_parametersBody()
// onOk - response for 200 / application/json
// (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServiceResource
var result = (await response);
- if (null != result)
- {
- if (0 == _responseSize)
- {
- _firstResponse = result;
- _responseSize = 1;
- }
- else
- {
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject());
- }
- WriteObject(result.AddMultipleTypeNameIntoPSObject());
- _responseSize = 2;
- }
- }
+ WriteObject(result, false);
}
}
}
diff --git a/generated/Communication/Communication.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/Communication/Communication.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs
index e3c028b8a940..b84d1d5011a6 100644
--- a/generated/Communication/Communication.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs
+++ b/generated/Communication/Communication.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/Communication/Communication.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/Communication/Communication.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs
index ae831fbab59a..ee0f4562edf6 100644
--- a/generated/Communication/Communication.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs
+++ b/generated/Communication/Communication.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/Communication/Communication.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/Communication/Communication.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs
index b397a109f6b0..d1d7a302e0ad 100644
--- a/generated/Communication/Communication.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs
+++ b/generated/Communication/Communication.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/Communication/Communication.Autorest/generated/runtime/Context.cs b/generated/Communication/Communication.Autorest/generated/runtime/Context.cs
index 6d6b4b15e3d4..2fc49c8ff225 100644
--- a/generated/Communication/Communication.Autorest/generated/runtime/Context.cs
+++ b/generated/Communication/Communication.Autorest/generated/runtime/Context.cs
@@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Communication.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/Communication/Communication.Autorest/generated/runtime/MessageAttribute.cs b/generated/Communication/Communication.Autorest/generated/runtime/MessageAttribute.cs
index b14ac2a006a0..11b0a80f3223 100644
--- a/generated/Communication/Communication.Autorest/generated/runtime/MessageAttribute.cs
+++ b/generated/Communication/Communication.Autorest/generated/runtime/MessageAttribute.cs
@@ -16,9 +16,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Communication.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.Communication" : @"";
+
//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/Communication/Communication.Autorest/generated/runtime/Properties/Resources.resx b/generated/Communication/Communication.Autorest/generated/runtime/Properties/Resources.resx
index a08a2e50172b..4ef90b70573d 100644
--- a/generated/Communication/Communication.Autorest/generated/runtime/Properties/Resources.resx
+++ b/generated/Communication/Communication.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/Communication/CommunicationServiceSmtpUsername.Autorest/exports/Get-AzCommunicationServiceSmtpUsername.ps1 b/generated/Communication/CommunicationServiceSmtpUsername.Autorest/exports/Get-AzCommunicationServiceSmtpUsername.ps1
index 769e44edc67c..26594ca40669 100644
--- a/generated/Communication/CommunicationServiceSmtpUsername.Autorest/exports/Get-AzCommunicationServiceSmtpUsername.ps1
+++ b/generated/Communication/CommunicationServiceSmtpUsername.Autorest/exports/Get-AzCommunicationServiceSmtpUsername.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/Communication/CommunicationServiceSmtpUsername.Autorest/exports/New-AzCommunicationServiceSmtpUsername.ps1 b/generated/Communication/CommunicationServiceSmtpUsername.Autorest/exports/New-AzCommunicationServiceSmtpUsername.ps1
index 370d9a9d1bd5..98a96bc46422 100644
--- a/generated/Communication/CommunicationServiceSmtpUsername.Autorest/exports/New-AzCommunicationServiceSmtpUsername.ps1
+++ b/generated/Communication/CommunicationServiceSmtpUsername.Autorest/exports/New-AzCommunicationServiceSmtpUsername.ps1
@@ -16,9 +16,9 @@
<#
.Synopsis
-create an SmtpUsernameResource.
+Create an SmtpUsernameResource.
.Description
-create an SmtpUsernameResource.
+Create an SmtpUsernameResource.
.Example
New-AzCommunicationServiceSmtpUsername -SmtpUsername ContosoSmtpUsernameResource1 -CommunicationServiceName ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1 -EntraApplicationId 1ebe1d1a-1111-1111-1c11-11ad111bf111 -TenantId 11f111b1-11f1-11af-11ab-1d1cd111db11 -Username ContosoUsername1
@@ -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/Communication/CommunicationServiceSmtpUsername.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/Communication/CommunicationServiceSmtpUsername.Autorest/exports/ProxyCmdletDefinitions.ps1
index e1757c22d96d..9b2d5f88ed72 100644
--- a/generated/Communication/CommunicationServiceSmtpUsername.Autorest/exports/ProxyCmdletDefinitions.ps1
+++ b/generated/Communication/CommunicationServiceSmtpUsername.Autorest/exports/ProxyCmdletDefinitions.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) {
@@ -247,9 +246,9 @@ end {
<#
.Synopsis
-create an SmtpUsernameResource.
+Create an SmtpUsernameResource.
.Description
-create an SmtpUsernameResource.
+Create an SmtpUsernameResource.
.Example
New-AzCommunicationServiceSmtpUsername -SmtpUsername ContosoSmtpUsernameResource1 -CommunicationServiceName ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1 -EntraApplicationId 1ebe1d1a-1111-1111-1c11-11ad111bf111 -TenantId 11f111b1-11f1-11af-11ab-1d1cd111db11 -Username ContosoUsername1
@@ -382,8 +381,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -613,8 +611,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -701,9 +698,9 @@ end {
<#
.Synopsis
-update an SmtpUsernameResource.
+Update an SmtpUsernameResource.
.Description
-update an SmtpUsernameResource.
+Update an SmtpUsernameResource.
.Example
Update-AzCommunicationServiceSmtpUsername -SmtpUsername ContosoSmtpUsernameResource1 -CommunicationServiceName ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1 -EntraApplicationId 1ebe1d1a-1111-1111-1c11-11ad111bf111
@@ -857,8 +854,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/Communication/CommunicationServiceSmtpUsername.Autorest/exports/Remove-AzCommunicationServiceSmtpUsername.ps1 b/generated/Communication/CommunicationServiceSmtpUsername.Autorest/exports/Remove-AzCommunicationServiceSmtpUsername.ps1
index 7cc73b6df44a..033a9be4a317 100644
--- a/generated/Communication/CommunicationServiceSmtpUsername.Autorest/exports/Remove-AzCommunicationServiceSmtpUsername.ps1
+++ b/generated/Communication/CommunicationServiceSmtpUsername.Autorest/exports/Remove-AzCommunicationServiceSmtpUsername.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/Communication/CommunicationServiceSmtpUsername.Autorest/exports/Update-AzCommunicationServiceSmtpUsername.ps1 b/generated/Communication/CommunicationServiceSmtpUsername.Autorest/exports/Update-AzCommunicationServiceSmtpUsername.ps1
index ab3363e2d0d9..82f93f9ac294 100644
--- a/generated/Communication/CommunicationServiceSmtpUsername.Autorest/exports/Update-AzCommunicationServiceSmtpUsername.ps1
+++ b/generated/Communication/CommunicationServiceSmtpUsername.Autorest/exports/Update-AzCommunicationServiceSmtpUsername.ps1
@@ -16,9 +16,9 @@
<#
.Synopsis
-update an SmtpUsernameResource.
+Update an SmtpUsernameResource.
.Description
-update an SmtpUsernameResource.
+Update an SmtpUsernameResource.
.Example
Update-AzCommunicationServiceSmtpUsername -SmtpUsername ContosoSmtpUsernameResource1 -CommunicationServiceName ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1 -EntraApplicationId 1ebe1d1a-1111-1111-1c11-11ad111bf111
@@ -172,8 +172,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/Communication/CommunicationServiceSmtpUsername.Autorest/generated/Module.cs b/generated/Communication/CommunicationServiceSmtpUsername.Autorest/generated/Module.cs
index 7f76f4d05620..771c8ce4717d 100644
--- a/generated/Communication/CommunicationServiceSmtpUsername.Autorest/generated/Module.cs
+++ b/generated/Communication/CommunicationServiceSmtpUsername.Autorest/generated/Module.cs
@@ -68,7 +68,7 @@ public partial class Module
public static Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Module Instance { get { if (_instance == null) { lock (_singletonLock) { if (_instance == null) { _instance = new Module(); }}} return _instance; } }
/// The Name of this module
- public string Name => @"Az.CommunicationServiceSmtpUsername";
+ public string Name => @"Az.Communication";
/// The delegate to call when this module is loaded (supporting a commmon module).
public ModuleLoadPipelineDelegate OnModuleLoad { get; set; }
@@ -80,7 +80,7 @@ public partial class Module
public global::System.String ProfileName { get; set; }
/// The ResourceID for this module (azure arm).
- public string ResourceId => @"Az.CommunicationServiceSmtpUsername";
+ public string ResourceId => @"Az.Communication";
/// The delegate to call in WriteObject to sanitize the output object.
public SanitizerDelegate SanitizeOutput { get; set; }
diff --git a/generated/Communication/CommunicationServiceSmtpUsername.Autorest/generated/api/Models/ErrorResponse.cs b/generated/Communication/CommunicationServiceSmtpUsername.Autorest/generated/api/Models/ErrorResponse.cs
index 401a00dd7f5e..c54b1972173a 100644
--- a/generated/Communication/CommunicationServiceSmtpUsername.Autorest/generated/api/Models/ErrorResponse.cs
+++ b/generated/Communication/CommunicationServiceSmtpUsername.Autorest/generated/api/Models/ErrorResponse.cs
@@ -40,22 +40,22 @@ public partial class ErrorResponse :
public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IErrorDetailInternal)Error).Message; }
/// Internal Acessors for AdditionalInfo
- System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IErrorDetailInternal)Error).AdditionalInfo = value; }
+ System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IErrorDetailInternal)Error).AdditionalInfo = value ?? null /* arrayOf */; }
/// Internal Acessors for Code
- string Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IErrorDetailInternal)Error).Code = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IErrorDetailInternal)Error).Code = value ?? null; }
/// Internal Acessors for Detail
- System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IErrorDetailInternal)Error).Detail = value; }
+ System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IErrorDetailInternal)Error).Detail = value ?? null /* arrayOf */; }
/// Internal Acessors for Error
Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.ErrorDetail()); set { {_error = value;} } }
/// Internal Acessors for Message
- string Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IErrorDetailInternal)Error).Message = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IErrorDetailInternal)Error).Message = value ?? null; }
/// Internal Acessors for Target
- string Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IErrorDetailInternal)Error).Target = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IErrorDetailInternal)Error).Target = value ?? null; }
/// The error target.
[Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Origin(Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.PropertyOrigin.Inlined)]
diff --git a/generated/Communication/CommunicationServiceSmtpUsername.Autorest/generated/api/Models/ProxyResource.cs b/generated/Communication/CommunicationServiceSmtpUsername.Autorest/generated/api/Models/ProxyResource.cs
index aca9f62c2424..2e943dfac5bf 100644
--- a/generated/Communication/CommunicationServiceSmtpUsername.Autorest/generated/api/Models/ProxyResource.cs
+++ b/generated/Communication/CommunicationServiceSmtpUsername.Autorest/generated/api/Models/ProxyResource.cs
@@ -28,16 +28,34 @@ public partial class ProxyResource :
public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__resource).Id; }
/// Internal Acessors for Id
- string Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__resource).Id = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__resource).Id = value ?? null; }
/// Internal Acessors for Name
- string Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__resource).Name = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__resource).Name = value ?? null; }
/// Internal Acessors for SystemData
- Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__resource).SystemData = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; }
+
+ /// Internal Acessors for SystemDataCreatedAt
+ global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); }
+
+ /// Internal Acessors for SystemDataCreatedBy
+ string Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; }
+
+ /// Internal Acessors for SystemDataCreatedByType
+ string Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; }
+
+ /// Internal Acessors for SystemDataLastModifiedAt
+ global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); }
+
+ /// Internal Acessors for SystemDataLastModifiedBy
+ string Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; }
+
+ /// Internal Acessors for SystemDataLastModifiedByType
+ string Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; }
/// Internal Acessors for Type
- string Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__resource).Type = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__resource).Type = value ?? null; }
/// The name of the resource
[Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Origin(Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.PropertyOrigin.Inherited)]
@@ -47,31 +65,31 @@ public partial class ProxyResource :
/// Azure Resource Manager metadata containing createdBy and modifiedBy information.
///
[Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Origin(Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.PropertyOrigin.Inherited)]
- internal Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__resource).SystemData; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; }
/// The timestamp of resource creation (UTC).
[Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Origin(Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.PropertyOrigin.Inherited)]
- public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); }
+ public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__resource).SystemDataCreatedAt; }
/// The identity that created the resource.
[Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Origin(Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.PropertyOrigin.Inherited)]
- public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; }
+ public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__resource).SystemDataCreatedBy; }
/// The type of identity that created the resource.
[Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Origin(Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.PropertyOrigin.Inherited)]
- public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; }
+ public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__resource).SystemDataCreatedByType; }
/// The timestamp of resource last modification (UTC)
[Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Origin(Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.PropertyOrigin.Inherited)]
- public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); }
+ public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; }
/// The identity that last modified the resource.
[Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Origin(Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.PropertyOrigin.Inherited)]
- public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; }
+ public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; }
/// The type of identity that last modified the resource.
[Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Origin(Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.PropertyOrigin.Inherited)]
- public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; }
+ public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; }
///
/// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
diff --git a/generated/Communication/CommunicationServiceSmtpUsername.Autorest/generated/api/Models/Resource.cs b/generated/Communication/CommunicationServiceSmtpUsername.Autorest/generated/api/Models/Resource.cs
index d8c595f3b18f..d78cc5ad727f 100644
--- a/generated/Communication/CommunicationServiceSmtpUsername.Autorest/generated/api/Models/Resource.cs
+++ b/generated/Communication/CommunicationServiceSmtpUsername.Autorest/generated/api/Models/Resource.cs
@@ -33,6 +33,24 @@ public partial class Resource :
/// Internal Acessors for SystemData
Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.SystemData()); set { {_systemData = value;} } }
+ /// Internal Acessors for SystemDataCreatedAt
+ global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); }
+
+ /// Internal Acessors for SystemDataCreatedBy
+ string Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; }
+
+ /// Internal Acessors for SystemDataCreatedByType
+ string Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; }
+
+ /// Internal Acessors for SystemDataLastModifiedAt
+ global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); }
+
+ /// Internal Acessors for SystemDataLastModifiedBy
+ string Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; }
+
+ /// Internal Acessors for SystemDataLastModifiedByType
+ string Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; }
+
/// Internal Acessors for Type
string Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.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.CommunicationServiceSmtpUsername.Origin(Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.PropertyOrigin.Inlined)]
- public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); }
+ public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.ISystemDataInternal)SystemData).CreatedAt; }
/// The identity that created the resource.
[Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Origin(Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.PropertyOrigin.Inlined)]
- public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; }
+ public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.ISystemDataInternal)SystemData).CreatedBy; }
/// The type of identity that created the resource.
[Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Origin(Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.PropertyOrigin.Inlined)]
- public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; }
+ public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.ISystemDataInternal)SystemData).CreatedByType; }
/// The timestamp of resource last modification (UTC)
[Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Origin(Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.PropertyOrigin.Inlined)]
- public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); }
+ public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.ISystemDataInternal)SystemData).LastModifiedAt; }
/// The identity that last modified the resource.
[Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Origin(Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.PropertyOrigin.Inlined)]
- public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; }
+ public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.ISystemDataInternal)SystemData).LastModifiedBy; }
/// The type of identity that last modified the resource.
[Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Origin(Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.PropertyOrigin.Inlined)]
- public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; }
+ public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.ISystemDataInternal)SystemData).LastModifiedByType; }
/// Backing field for property.
private string _type;
diff --git a/generated/Communication/CommunicationServiceSmtpUsername.Autorest/generated/api/Models/SmtpUsernameResource.cs b/generated/Communication/CommunicationServiceSmtpUsername.Autorest/generated/api/Models/SmtpUsernameResource.cs
index 8eb540f9ab4f..23124786ab11 100644
--- a/generated/Communication/CommunicationServiceSmtpUsername.Autorest/generated/api/Models/SmtpUsernameResource.cs
+++ b/generated/Communication/CommunicationServiceSmtpUsername.Autorest/generated/api/Models/SmtpUsernameResource.cs
@@ -30,16 +30,34 @@ public partial class SmtpUsernameResource :
public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__proxyResource).Id; }
/// Internal Acessors for Id
- string Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__proxyResource).Id = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__proxyResource).Id = value ?? null; }
/// Internal Acessors for Name
- string Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__proxyResource).Name = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__proxyResource).Name = value ?? null; }
/// Internal Acessors for SystemData
- Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__proxyResource).SystemData = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; }
+
+ /// Internal Acessors for SystemDataCreatedAt
+ global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); }
+
+ /// Internal Acessors for SystemDataCreatedBy
+ string Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; }
+
+ /// Internal Acessors for SystemDataCreatedByType
+ string Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; }
+
+ /// Internal Acessors for SystemDataLastModifiedAt
+ global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); }
+
+ /// Internal Acessors for SystemDataLastModifiedBy
+ string Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; }
+
+ /// Internal Acessors for SystemDataLastModifiedByType
+ string Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; }
/// Internal Acessors for Type
- string Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__proxyResource).Type = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__proxyResource).Type = value ?? null; }
/// Internal Acessors for Property
Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.ISmtpUsernameProperties Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.ISmtpUsernameResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.SmtpUsernameProperties()); set { {_property = value;} } }
@@ -63,31 +81,31 @@ public partial class SmtpUsernameResource :
/// Azure Resource Manager metadata containing createdBy and modifiedBy information.
///
[Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Origin(Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.PropertyOrigin.Inherited)]
- internal Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__proxyResource).SystemData; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; }
/// The timestamp of resource creation (UTC).
[Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Origin(Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.PropertyOrigin.Inherited)]
- public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); }
+ public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; }
/// The identity that created the resource.
[Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Origin(Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.PropertyOrigin.Inherited)]
- public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; }
+ public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; }
/// The type of identity that created the resource.
[Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Origin(Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.PropertyOrigin.Inherited)]
- public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; }
+ public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; }
/// The timestamp of resource last modification (UTC)
[Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Origin(Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.PropertyOrigin.Inherited)]
- public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); }
+ public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; }
/// The identity that last modified the resource.
[Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Origin(Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.PropertyOrigin.Inherited)]
- public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; }
+ public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; }
/// The type of identity that last modified the resource.
[Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Origin(Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.PropertyOrigin.Inherited)]
- public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; }
+ public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; }
/// The tenant of the linked Entra Application.
[Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Origin(Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.PropertyOrigin.Inlined)]
diff --git a/generated/Communication/CommunicationServiceSmtpUsername.Autorest/generated/cmdlets/RemoveAzCommunicationServiceSmtpUsername_Delete.cs b/generated/Communication/CommunicationServiceSmtpUsername.Autorest/generated/cmdlets/RemoveAzCommunicationServiceSmtpUsername_Delete.cs
index 5e48e916da57..53d862a58069 100644
--- a/generated/Communication/CommunicationServiceSmtpUsername.Autorest/generated/cmdlets/RemoveAzCommunicationServiceSmtpUsername_Delete.cs
+++ b/generated/Communication/CommunicationServiceSmtpUsername.Autorest/generated/cmdlets/RemoveAzCommunicationServiceSmtpUsername_Delete.cs
@@ -508,7 +508,7 @@ protected override void StopProcessing()
return ;
}
// onNoContent - response for 204 /
- if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru"))
+ if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru"))
{
WriteObject(true);
}
@@ -532,7 +532,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/Communication/CommunicationServiceSmtpUsername.Autorest/generated/cmdlets/RemoveAzCommunicationServiceSmtpUsername_DeleteViaIdentity.cs b/generated/Communication/CommunicationServiceSmtpUsername.Autorest/generated/cmdlets/RemoveAzCommunicationServiceSmtpUsername_DeleteViaIdentity.cs
index 7aed353608ba..28bafbf0c06e 100644
--- a/generated/Communication/CommunicationServiceSmtpUsername.Autorest/generated/cmdlets/RemoveAzCommunicationServiceSmtpUsername_DeleteViaIdentity.cs
+++ b/generated/Communication/CommunicationServiceSmtpUsername.Autorest/generated/cmdlets/RemoveAzCommunicationServiceSmtpUsername_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/Communication/CommunicationServiceSmtpUsername.Autorest/generated/cmdlets/RemoveAzCommunicationServiceSmtpUsername_DeleteViaIdentityCommunicationService.cs b/generated/Communication/CommunicationServiceSmtpUsername.Autorest/generated/cmdlets/RemoveAzCommunicationServiceSmtpUsername_DeleteViaIdentityCommunicationService.cs
index b73898de7085..43a01b630b2c 100644
--- a/generated/Communication/CommunicationServiceSmtpUsername.Autorest/generated/cmdlets/RemoveAzCommunicationServiceSmtpUsername_DeleteViaIdentityCommunicationService.cs
+++ b/generated/Communication/CommunicationServiceSmtpUsername.Autorest/generated/cmdlets/RemoveAzCommunicationServiceSmtpUsername_DeleteViaIdentityCommunicationService.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/Communication/CommunicationServiceSmtpUsername.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/Communication/CommunicationServiceSmtpUsername.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs
index fe4ee8d301b2..7f972f81d75d 100644
--- a/generated/Communication/CommunicationServiceSmtpUsername.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs
+++ b/generated/Communication/CommunicationServiceSmtpUsername.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/Communication/CommunicationServiceSmtpUsername.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/Communication/CommunicationServiceSmtpUsername.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs
index e97eed46adab..6ffe26b2cca1 100644
--- a/generated/Communication/CommunicationServiceSmtpUsername.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs
+++ b/generated/Communication/CommunicationServiceSmtpUsername.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/Communication/CommunicationServiceSmtpUsername.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/Communication/CommunicationServiceSmtpUsername.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs
index f83643fe7c67..980d64337536 100644
--- a/generated/Communication/CommunicationServiceSmtpUsername.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs
+++ b/generated/Communication/CommunicationServiceSmtpUsername.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/Communication/CommunicationServiceSmtpUsername.Autorest/generated/runtime/Context.cs b/generated/Communication/CommunicationServiceSmtpUsername.Autorest/generated/runtime/Context.cs
index fe4dcd076692..617005530e5b 100644
--- a/generated/Communication/CommunicationServiceSmtpUsername.Autorest/generated/runtime/Context.cs
+++ b/generated/Communication/CommunicationServiceSmtpUsername.Autorest/generated/runtime/Context.cs
@@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Ru
/// 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/Communication/CommunicationServiceSmtpUsername.Autorest/generated/runtime/MessageAttribute.cs b/generated/Communication/CommunicationServiceSmtpUsername.Autorest/generated/runtime/MessageAttribute.cs
index 4ef1264502be..3f326e26b963 100644
--- a/generated/Communication/CommunicationServiceSmtpUsername.Autorest/generated/runtime/MessageAttribute.cs
+++ b/generated/Communication/CommunicationServiceSmtpUsername.Autorest/generated/runtime/MessageAttribute.cs
@@ -16,9 +16,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.CommunicationServiceSmtpUsername.Ru
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.Communication") ? @"Az.CommunicationServiceSmtpUsername" : @"Az.Communication";
+
//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/Communication/CommunicationServiceSmtpUsername.Autorest/generated/runtime/Properties/Resources.resx b/generated/Communication/CommunicationServiceSmtpUsername.Autorest/generated/runtime/Properties/Resources.resx
index a08a2e50172b..4ef90b70573d 100644
--- a/generated/Communication/CommunicationServiceSmtpUsername.Autorest/generated/runtime/Properties/Resources.resx
+++ b/generated/Communication/CommunicationServiceSmtpUsername.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/Communication/EmailService.Autorest/Properties/AssemblyInfo.cs b/generated/Communication/EmailService.Autorest/Properties/AssemblyInfo.cs
deleted file mode 100644
index b5b6bd63eb50..000000000000
--- a/generated/Communication/EmailService.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 - EmailService")]
-[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("4e069eb6-3f86-439a-92ad-00a7479e846e")]
-[assembly: AssemblyVersion("0.4.2")]
-[assembly: AssemblyFileVersion("0.4.2")]
diff --git a/generated/Communication/EmailService.Autorest/exports/Get-AzEmailService.ps1 b/generated/Communication/EmailService.Autorest/exports/Get-AzEmailService.ps1
index c31a0179df9e..b2bda6e01fce 100644
--- a/generated/Communication/EmailService.Autorest/exports/Get-AzEmailService.ps1
+++ b/generated/Communication/EmailService.Autorest/exports/Get-AzEmailService.ps1
@@ -135,6 +135,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ }
+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
@@ -159,8 +167,6 @@ begin {
List1 = 'Az.EmailService.private\Get-AzEmailService_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.EmailService.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -174,6 +180,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -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/Communication/EmailService.Autorest/exports/Get-AzEmailServiceDomain.ps1 b/generated/Communication/EmailService.Autorest/exports/Get-AzEmailServiceDomain.ps1
index bbb6b199abc1..4760ca4c9b83 100644
--- a/generated/Communication/EmailService.Autorest/exports/Get-AzEmailServiceDomain.ps1
+++ b/generated/Communication/EmailService.Autorest/exports/Get-AzEmailServiceDomain.ps1
@@ -156,6 +156,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-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,8 +188,6 @@ begin {
List = 'Az.EmailService.private\Get-AzEmailServiceDomain_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.EmailService.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -195,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/Communication/EmailService.Autorest/exports/Get-AzEmailServiceSenderUsername.ps1 b/generated/Communication/EmailService.Autorest/exports/Get-AzEmailServiceSenderUsername.ps1
index afc4fc94bf78..9dd1cc5fb650 100644
--- a/generated/Communication/EmailService.Autorest/exports/Get-AzEmailServiceSenderUsername.ps1
+++ b/generated/Communication/EmailService.Autorest/exports/Get-AzEmailServiceSenderUsername.ps1
@@ -178,6 +178,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ }
+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
@@ -203,8 +211,6 @@ begin {
List = 'Az.EmailService.private\Get-AzEmailServiceSenderUsername_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.EmailService.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -218,6 +224,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -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/Communication/EmailService.Autorest/exports/Invoke-AzEmailServiceInitiateDomainVerification.ps1 b/generated/Communication/EmailService.Autorest/exports/Invoke-AzEmailServiceInitiateDomainVerification.ps1
index 6aa7fe7ab11d..de5fe6d1e4cc 100644
--- a/generated/Communication/EmailService.Autorest/exports/Invoke-AzEmailServiceInitiateDomainVerification.ps1
+++ b/generated/Communication/EmailService.Autorest/exports/Invoke-AzEmailServiceInitiateDomainVerification.ps1
@@ -183,6 +183,12 @@ param(
# Run the command asynchronously
${NoWait},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.EmailService.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Returns true when the command succeeds
+ ${PassThru},
+
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Category('Runtime')]
[System.Uri]
@@ -211,6 +217,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-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 +253,6 @@ begin {
InitiateViaJsonString = 'Az.EmailService.private\Invoke-AzEmailServiceInitiateDomainVerification_InitiateViaJsonString';
}
if (('Initiate', 'InitiateExpanded', 'InitiateViaJsonFilePath', 'InitiateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EmailService.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 +266,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -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/Communication/EmailService.Autorest/exports/New-AzEmailService.ps1 b/generated/Communication/EmailService.Autorest/exports/New-AzEmailService.ps1
index 0bea118f8bf4..0f9b3d77d5f5 100644
--- a/generated/Communication/EmailService.Autorest/exports/New-AzEmailService.ps1
+++ b/generated/Communication/EmailService.Autorest/exports/New-AzEmailService.ps1
@@ -16,9 +16,9 @@
<#
.Synopsis
-create a new EmailService or create an existing EmailService.
+Create a new EmailService or create an existing EmailService.
.Description
-create a new EmailService or create an existing EmailService.
+Create a new EmailService or create an existing EmailService.
.Example
New-AzEmailService -Name ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1 -DataLocation "United States"
@@ -154,6 +154,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ }
+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
@@ -177,8 +185,6 @@ begin {
CreateViaJsonString = 'Az.EmailService.private\New-AzEmailService_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.EmailService.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -195,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/Communication/EmailService.Autorest/exports/New-AzEmailServiceDomain.ps1 b/generated/Communication/EmailService.Autorest/exports/New-AzEmailServiceDomain.ps1
index ecbe58bbf9ad..b1975a4d8d26 100644
--- a/generated/Communication/EmailService.Autorest/exports/New-AzEmailServiceDomain.ps1
+++ b/generated/Communication/EmailService.Autorest/exports/New-AzEmailServiceDomain.ps1
@@ -44,7 +44,7 @@ EMAILSERVICEINPUTOBJECT : Identity Parameter
[SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
PARAMETER : A class representing a Domains resource.
- 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.
[DomainManagement ]: Describes how a Domains resource is being managed.
@@ -216,6 +216,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ }
+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
@@ -241,8 +249,6 @@ begin {
CreateViaJsonString = 'Az.EmailService.private\New-AzEmailServiceDomain_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.EmailService.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -259,6 +265,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -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/Communication/EmailService.Autorest/exports/New-AzEmailServiceSenderUsername.ps1 b/generated/Communication/EmailService.Autorest/exports/New-AzEmailServiceSenderUsername.ps1
index eebc1af47fff..618150a7cabc 100644
--- a/generated/Communication/EmailService.Autorest/exports/New-AzEmailServiceSenderUsername.ps1
+++ b/generated/Communication/EmailService.Autorest/exports/New-AzEmailServiceSenderUsername.ps1
@@ -210,6 +210,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-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 {
CreateViaJsonString = 'Az.EmailService.private\New-AzEmailServiceSenderUsername_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.EmailService.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/Communication/EmailService.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/Communication/EmailService.Autorest/exports/ProxyCmdletDefinitions.ps1
index a101dd519566..c886ac23b181 100644
--- a/generated/Communication/EmailService.Autorest/exports/ProxyCmdletDefinitions.ps1
+++ b/generated/Communication/EmailService.Autorest/exports/ProxyCmdletDefinitions.ps1
@@ -156,6 +156,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-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,8 +188,6 @@ begin {
List = 'Az.EmailService.private\Get-AzEmailServiceDomain_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.EmailService.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -195,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)
@@ -402,6 +411,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ }
+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
@@ -427,8 +444,6 @@ begin {
List = 'Az.EmailService.private\Get-AzEmailServiceSenderUsername_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.EmailService.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -442,6 +457,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -606,6 +624,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ }
+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
@@ -630,8 +656,6 @@ begin {
List1 = 'Az.EmailService.private\Get-AzEmailService_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.EmailService.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -645,6 +669,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -857,6 +884,12 @@ param(
# Run the command asynchronously
${NoWait},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.EmailService.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Returns true when the command succeeds
+ ${PassThru},
+
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Category('Runtime')]
[System.Uri]
@@ -885,6 +918,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ }
+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
@@ -913,8 +954,6 @@ begin {
InitiateViaJsonString = 'Az.EmailService.private\Invoke-AzEmailServiceInitiateDomainVerification_InitiateViaJsonString';
}
if (('Initiate', 'InitiateExpanded', 'InitiateViaJsonFilePath', 'InitiateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -928,6 +967,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -1001,7 +1043,7 @@ EMAILSERVICEINPUTOBJECT : Identity Parameter
[SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
PARAMETER : A class representing a Domains resource.
- 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.
[DomainManagement ]: Describes how a Domains resource is being managed.
@@ -1173,6 +1215,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ }
+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
@@ -1198,8 +1248,6 @@ begin {
CreateViaJsonString = 'Az.EmailService.private\New-AzEmailServiceDomain_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.EmailService.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -1216,6 +1264,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -1455,6 +1506,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ }
+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
@@ -1482,8 +1541,6 @@ begin {
CreateViaJsonString = 'Az.EmailService.private\New-AzEmailServiceSenderUsername_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.EmailService.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -1497,6 +1554,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -1542,9 +1602,9 @@ end {
<#
.Synopsis
-create a new EmailService or create an existing EmailService.
+Create a new EmailService or create an existing EmailService.
.Description
-create a new EmailService or create an existing EmailService.
+Create a new EmailService or create an existing EmailService.
.Example
New-AzEmailService -Name ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1 -DataLocation "United States"
@@ -1680,6 +1740,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ }
+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
@@ -1703,8 +1771,6 @@ begin {
CreateViaJsonString = 'Az.EmailService.private\New-AzEmailService_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.EmailService.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -1721,6 +1787,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -1921,6 +1990,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ }
+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
@@ -1944,8 +2021,6 @@ begin {
DeleteViaIdentityEmailService = 'Az.EmailService.private\Remove-AzEmailServiceDomain_DeleteViaIdentityEmailService';
}
if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -1959,6 +2034,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -2168,6 +2246,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ }
+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
@@ -2192,8 +2278,6 @@ begin {
DeleteViaIdentityEmailService = 'Az.EmailService.private\Remove-AzEmailServiceSenderUsername_DeleteViaIdentityEmailService';
}
if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -2207,6 +2291,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -2384,6 +2471,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ }
+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
@@ -2406,8 +2501,6 @@ begin {
DeleteViaIdentity = 'Az.EmailService.private\Remove-AzEmailService_DeleteViaIdentity';
}
if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -2421,6 +2514,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -2633,6 +2729,12 @@ param(
# Run the command asynchronously
${NoWait},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.EmailService.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Returns true when the command succeeds
+ ${PassThru},
+
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Category('Runtime')]
[System.Uri]
@@ -2661,6 +2763,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ }
+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
@@ -2689,8 +2799,6 @@ begin {
CancelViaJsonString = 'Az.EmailService.private\Stop-AzEmailServiceDomainVerification_CancelViaJsonString';
}
if (('Cancel', 'CancelExpanded', 'CancelViaJsonFilePath', 'CancelViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -2704,6 +2812,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -2951,6 +3062,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ }
+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
@@ -2977,8 +3096,6 @@ begin {
UpdateViaJsonString = 'Az.EmailService.private\Update-AzEmailServiceDomain_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.EmailService.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -2992,6 +3109,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -3231,6 +3351,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ }
+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
@@ -3257,8 +3385,6 @@ begin {
UpdateViaIdentityExpanded = 'Az.EmailService.private\Update-AzEmailServiceSenderUsername_UpdateViaIdentityExpanded';
}
if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -3272,6 +3398,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -3469,6 +3598,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ }
+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
@@ -3493,8 +3630,6 @@ begin {
UpdateViaJsonString = 'Az.EmailService.private\Update-AzEmailService_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.EmailService.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -3508,6 +3643,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -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/Communication/EmailService.Autorest/exports/Remove-AzEmailService.ps1 b/generated/Communication/EmailService.Autorest/exports/Remove-AzEmailService.ps1
index 92e601cd8742..ea257750d3e9 100644
--- a/generated/Communication/EmailService.Autorest/exports/Remove-AzEmailService.ps1
+++ b/generated/Communication/EmailService.Autorest/exports/Remove-AzEmailService.ps1
@@ -148,6 +148,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-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 {
DeleteViaIdentity = 'Az.EmailService.private\Remove-AzEmailService_DeleteViaIdentity';
}
if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EmailService.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/Communication/EmailService.Autorest/exports/Remove-AzEmailServiceDomain.ps1 b/generated/Communication/EmailService.Autorest/exports/Remove-AzEmailServiceDomain.ps1
index 54880fab603b..2c7545389371 100644
--- a/generated/Communication/EmailService.Autorest/exports/Remove-AzEmailServiceDomain.ps1
+++ b/generated/Communication/EmailService.Autorest/exports/Remove-AzEmailServiceDomain.ps1
@@ -171,6 +171,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ }
+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
@@ -194,8 +202,6 @@ begin {
DeleteViaIdentityEmailService = 'Az.EmailService.private\Remove-AzEmailServiceDomain_DeleteViaIdentityEmailService';
}
if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -209,6 +215,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -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/Communication/EmailService.Autorest/exports/Remove-AzEmailServiceSenderUsername.ps1 b/generated/Communication/EmailService.Autorest/exports/Remove-AzEmailServiceSenderUsername.ps1
index e95f07086d86..c21e7008807f 100644
--- a/generated/Communication/EmailService.Autorest/exports/Remove-AzEmailServiceSenderUsername.ps1
+++ b/generated/Communication/EmailService.Autorest/exports/Remove-AzEmailServiceSenderUsername.ps1
@@ -180,6 +180,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ }
+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
@@ -204,8 +212,6 @@ begin {
DeleteViaIdentityEmailService = 'Az.EmailService.private\Remove-AzEmailServiceSenderUsername_DeleteViaIdentityEmailService';
}
if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -219,6 +225,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -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/Communication/EmailService.Autorest/exports/Stop-AzEmailServiceDomainVerification.ps1 b/generated/Communication/EmailService.Autorest/exports/Stop-AzEmailServiceDomainVerification.ps1
index 5eea34f806bc..45dea4ea14e6 100644
--- a/generated/Communication/EmailService.Autorest/exports/Stop-AzEmailServiceDomainVerification.ps1
+++ b/generated/Communication/EmailService.Autorest/exports/Stop-AzEmailServiceDomainVerification.ps1
@@ -183,6 +183,12 @@ param(
# Run the command asynchronously
${NoWait},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.EmailService.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Returns true when the command succeeds
+ ${PassThru},
+
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Category('Runtime')]
[System.Uri]
@@ -211,6 +217,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-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 +253,6 @@ begin {
CancelViaJsonString = 'Az.EmailService.private\Stop-AzEmailServiceDomainVerification_CancelViaJsonString';
}
if (('Cancel', 'CancelExpanded', 'CancelViaJsonFilePath', 'CancelViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EmailService.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 +266,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -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/Communication/EmailService.Autorest/exports/Update-AzEmailService.ps1 b/generated/Communication/EmailService.Autorest/exports/Update-AzEmailService.ps1
index e676d1aedf6e..635c7e47fa07 100644
--- a/generated/Communication/EmailService.Autorest/exports/Update-AzEmailService.ps1
+++ b/generated/Communication/EmailService.Autorest/exports/Update-AzEmailService.ps1
@@ -168,6 +168,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-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,8 +200,6 @@ begin {
UpdateViaJsonString = 'Az.EmailService.private\Update-AzEmailService_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.EmailService.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -207,6 +213,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -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/Communication/EmailService.Autorest/exports/Update-AzEmailServiceDomain.ps1 b/generated/Communication/EmailService.Autorest/exports/Update-AzEmailServiceDomain.ps1
index 1e0e210b047f..462151685c42 100644
--- a/generated/Communication/EmailService.Autorest/exports/Update-AzEmailServiceDomain.ps1
+++ b/generated/Communication/EmailService.Autorest/exports/Update-AzEmailServiceDomain.ps1
@@ -218,6 +218,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ }
+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
@@ -244,8 +252,6 @@ begin {
UpdateViaJsonString = 'Az.EmailService.private\Update-AzEmailServiceDomain_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.EmailService.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -259,6 +265,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -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/Communication/EmailService.Autorest/exports/Update-AzEmailServiceSenderUsername.ps1 b/generated/Communication/EmailService.Autorest/exports/Update-AzEmailServiceSenderUsername.ps1
index f960f264495e..9047f1c6c173 100644
--- a/generated/Communication/EmailService.Autorest/exports/Update-AzEmailServiceSenderUsername.ps1
+++ b/generated/Communication/EmailService.Autorest/exports/Update-AzEmailServiceSenderUsername.ps1
@@ -210,6 +210,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ }
+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
@@ -236,8 +244,6 @@ begin {
UpdateViaIdentityExpanded = 'Az.EmailService.private\Update-AzEmailServiceSenderUsername_UpdateViaIdentityExpanded';
}
if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -251,6 +257,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -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/Communication/EmailService.Autorest/generated/Module.cs b/generated/Communication/EmailService.Autorest/generated/Module.cs
index d581fc051ba5..fc3b59a5c6a7 100644
--- a/generated/Communication/EmailService.Autorest/generated/Module.cs
+++ b/generated/Communication/EmailService.Autorest/generated/Module.cs
@@ -68,7 +68,7 @@ public partial class Module
public static Microsoft.Azure.PowerShell.Cmdlets.EmailService.Module Instance { get { if (_instance == null) { lock (_singletonLock) { if (_instance == null) { _instance = new Module(); }}} return _instance; } }
/// The Name of this module
- public string Name => @"Az.EmailService";
+ public string Name => @"Az.Communication";
/// The delegate to call when this module is loaded (supporting a commmon module).
public ModuleLoadPipelineDelegate OnModuleLoad { get; set; }
@@ -80,7 +80,7 @@ public partial class Module
public global::System.String ProfileName { get; set; }
/// The ResourceID for this module (azure arm).
- public string ResourceId => @"Az.EmailService";
+ public string ResourceId => @"Az.Communication";
/// The delegate to call in WriteObject to sanitize the output object.
public SanitizerDelegate SanitizeOutput { get; set; }
diff --git a/generated/Communication/EmailService.Autorest/generated/api/EmailService.cs b/generated/Communication/EmailService.Autorest/generated/api/EmailService.cs
index acf4af4a7b49..877e28ac20c3 100644
--- a/generated/Communication/EmailService.Autorest/generated/api/EmailService.cs
+++ b/generated/Communication/EmailService.Autorest/generated/api/EmailService.cs
@@ -20,6 +20,7 @@ public partial class EmailService
/// The name of the EmailService resource.
/// The name of the Domains resource.
/// Type of verification to be canceled.
+ /// a delegate that is called when the remote service returns 200 (OK).
/// a delegate that is called when the remote service returns default (any response code not handled
/// elsewhere).
/// an instance that will receive events.
@@ -28,7 +29,7 @@ public partial class EmailService
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task DomainsCancelVerification(string subscriptionId, string resourceGroupName, string emailServiceName, string domainName, Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationParameter body, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.SerializationMode.IncludeUpdate)
+ public async global::System.Threading.Tasks.Task DomainsCancelVerification(string subscriptionId, string resourceGroupName, string emailServiceName, string domainName, Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationParameter body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.SerializationMode.IncludeUpdate)
{
var apiVersion = @"2023-06-01-preview";
// Constant Parameters
@@ -62,13 +63,14 @@ public partial class EmailService
request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json");
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; }
// make the call
- await this.DomainsCancelVerification_Call (request, onDefault,eventListener,sender);
+ await this.DomainsCancelVerification_Call (request, onOk,onDefault,eventListener,sender);
}
}
/// Cancel verification of DNS record.
///
/// Type of verification to be canceled.
+ /// a delegate that is called when the remote service returns 200 (OK).
/// a delegate that is called when the remote service returns default (any response code not handled
/// elsewhere).
/// an instance that will receive events.
@@ -77,7 +79,7 @@ public partial class EmailService
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task DomainsCancelVerificationViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationParameter body, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.SerializationMode.IncludeUpdate)
+ public async global::System.Threading.Tasks.Task DomainsCancelVerificationViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationParameter body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.SerializationMode.IncludeUpdate)
{
var apiVersion = @"2023-06-01-preview";
// Constant Parameters
@@ -124,7 +126,7 @@ public partial class EmailService
request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json");
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; }
// make the call
- await this.DomainsCancelVerification_Call (request, onDefault,eventListener,sender);
+ await this.DomainsCancelVerification_Call (request, onOk,onDefault,eventListener,sender);
}
}
@@ -134,6 +136,7 @@ public partial class EmailService
/// The name of the EmailService resource.
/// The name of the Domains resource.
/// Json string supplied to the DomainsCancelVerification operation
+ /// a delegate that is called when the remote service returns 200 (OK).
/// a delegate that is called when the remote service returns default (any response code not handled
/// elsewhere).
/// an instance that will receive events.
@@ -141,7 +144,7 @@ public partial class EmailService
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task DomainsCancelVerificationViaJsonString(string subscriptionId, string resourceGroupName, string emailServiceName, string domainName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task DomainsCancelVerificationViaJsonString(string subscriptionId, string resourceGroupName, string emailServiceName, string domainName, global::System.String jsonString, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.ISendAsync sender)
{
var apiVersion = @"2023-06-01-preview";
// Constant Parameters
@@ -175,12 +178,13 @@ public partial class EmailService
request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json");
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; }
// make the call
- await this.DomainsCancelVerification_Call (request, onDefault,eventListener,sender);
+ await this.DomainsCancelVerification_Call (request, onOk,onDefault,eventListener,sender);
}
}
/// Actual wire call for method.
/// the prepared HttpRequestMessage to send.
+ /// a delegate that is called when the remote service returns 200 (OK).
/// a delegate that is called when the remote service returns default (any response code not handled
/// elsewhere).
/// an instance that will receive events.
@@ -188,20 +192,20 @@ public partial class EmailService
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task DomainsCancelVerification_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.ISendAsync sender)
+ internal async global::System.Threading.Tasks.Task DomainsCancelVerification_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.ISendAsync sender)
{
using( NoSynchronizationContext )
{
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.EmailService.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; }
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; }
_response = await sendTask;
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.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");
@@ -297,6 +301,12 @@ public partial class EmailService
switch ( _response.StatusCode )
{
+ case global::System.Net.HttpStatusCode.OK:
+ {
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await onOk(_response);
+ break;
+ }
default:
{
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
@@ -700,13 +710,13 @@ public partial class EmailService
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.EmailService.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; }
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; }
_response = await sendTask;
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.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");
@@ -854,13 +864,13 @@ public partial class EmailService
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.EmailService.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; }
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; }
_response = await sendTask;
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.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");
@@ -1135,13 +1145,13 @@ public partial class EmailService
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.EmailService.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; }
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; }
_response = await sendTask;
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.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");
@@ -1645,6 +1655,7 @@ public partial class EmailService
/// The name of the EmailService resource.
/// The name of the Domains resource.
/// Type of verification to be initiated.
+ /// a delegate that is called when the remote service returns 200 (OK).
/// a delegate that is called when the remote service returns default (any response code not handled
/// elsewhere).
/// an instance that will receive events.
@@ -1653,7 +1664,7 @@ public partial class EmailService
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task DomainsInitiateVerification(string subscriptionId, string resourceGroupName, string emailServiceName, string domainName, Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationParameter body, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.SerializationMode.IncludeUpdate)
+ public async global::System.Threading.Tasks.Task DomainsInitiateVerification(string subscriptionId, string resourceGroupName, string emailServiceName, string domainName, Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationParameter body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.SerializationMode.IncludeUpdate)
{
var apiVersion = @"2023-06-01-preview";
// Constant Parameters
@@ -1687,13 +1698,14 @@ public partial class EmailService
request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json");
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; }
// make the call
- await this.DomainsInitiateVerification_Call (request, onDefault,eventListener,sender);
+ await this.DomainsInitiateVerification_Call (request, onOk,onDefault,eventListener,sender);
}
}
/// Initiate verification of DNS record.
///
/// Type of verification to be initiated.
+ /// a delegate that is called when the remote service returns 200 (OK).
/// a delegate that is called when the remote service returns default (any response code not handled
/// elsewhere).
/// an instance that will receive events.
@@ -1702,7 +1714,7 @@ public partial class EmailService
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task DomainsInitiateVerificationViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationParameter body, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.SerializationMode.IncludeUpdate)
+ public async global::System.Threading.Tasks.Task DomainsInitiateVerificationViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationParameter body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.SerializationMode.IncludeUpdate)
{
var apiVersion = @"2023-06-01-preview";
// Constant Parameters
@@ -1749,7 +1761,7 @@ public partial class EmailService
request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json");
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; }
// make the call
- await this.DomainsInitiateVerification_Call (request, onDefault,eventListener,sender);
+ await this.DomainsInitiateVerification_Call (request, onOk,onDefault,eventListener,sender);
}
}
@@ -1759,6 +1771,7 @@ public partial class EmailService
/// The name of the EmailService resource.
/// The name of the Domains resource.
/// Json string supplied to the DomainsInitiateVerification operation
+ /// a delegate that is called when the remote service returns 200 (OK).
/// a delegate that is called when the remote service returns default (any response code not handled
/// elsewhere).
/// an instance that will receive events.
@@ -1766,7 +1779,7 @@ public partial class EmailService
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task DomainsInitiateVerificationViaJsonString(string subscriptionId, string resourceGroupName, string emailServiceName, string domainName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task DomainsInitiateVerificationViaJsonString(string subscriptionId, string resourceGroupName, string emailServiceName, string domainName, global::System.String jsonString, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.ISendAsync sender)
{
var apiVersion = @"2023-06-01-preview";
// Constant Parameters
@@ -1800,12 +1813,13 @@ public partial class EmailService
request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json");
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; }
// make the call
- await this.DomainsInitiateVerification_Call (request, onDefault,eventListener,sender);
+ await this.DomainsInitiateVerification_Call (request, onOk,onDefault,eventListener,sender);
}
}
/// Actual wire call for method.
/// the prepared HttpRequestMessage to send.
+ /// a delegate that is called when the remote service returns 200 (OK).
/// a delegate that is called when the remote service returns default (any response code not handled
/// elsewhere).
/// an instance that will receive events.
@@ -1813,20 +1827,20 @@ public partial class EmailService
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task DomainsInitiateVerification_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.ISendAsync sender)
+ internal async global::System.Threading.Tasks.Task DomainsInitiateVerification_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.ISendAsync sender)
{
using( NoSynchronizationContext )
{
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.EmailService.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; }
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; }
_response = await sendTask;
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.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");
@@ -1922,6 +1936,12 @@ public partial class EmailService
switch ( _response.StatusCode )
{
+ case global::System.Net.HttpStatusCode.OK:
+ {
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await onOk(_response);
+ break;
+ }
default:
{
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
@@ -2652,13 +2672,13 @@ public partial class EmailService
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.EmailService.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; }
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; }
_response = await sendTask;
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.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");
@@ -2806,13 +2826,13 @@ public partial class EmailService
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.EmailService.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; }
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; }
_response = await sendTask;
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.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");
@@ -3288,13 +3308,13 @@ public partial class EmailService
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.EmailService.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; }
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; }
_response = await sendTask;
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.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");
@@ -3442,13 +3462,13 @@ public partial class EmailService
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.EmailService.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; }
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; }
_response = await sendTask;
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.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");
@@ -3713,13 +3733,13 @@ public partial class EmailService
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.EmailService.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; }
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; }
_response = await sendTask;
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.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");
@@ -5430,13 +5450,13 @@ public partial class EmailService
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.EmailService.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; }
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; }
_response = await sendTask;
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.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");
@@ -5584,13 +5604,13 @@ public partial class EmailService
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.EmailService.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; }
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; }
_response = await sendTask;
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.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");
diff --git a/generated/Communication/EmailService.Autorest/generated/api/Models/DomainProperties.cs b/generated/Communication/EmailService.Autorest/generated/api/Models/DomainProperties.cs
index 8397a3e5e6f5..7eb98a0c372f 100644
--- a/generated/Communication/EmailService.Autorest/generated/api/Models/DomainProperties.cs
+++ b/generated/Communication/EmailService.Autorest/generated/api/Models/DomainProperties.cs
@@ -77,28 +77,28 @@ public partial class DomainProperties :
string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal.DataLocation { get => this._dataLocation; set { {_dataLocation = value;} } }
/// Internal Acessors for Dkim2ErrorCode
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal.Dkim2ErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).Dkim2ErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).Dkim2ErrorCode = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal.Dkim2ErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).Dkim2ErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).Dkim2ErrorCode = value ?? null; }
/// Internal Acessors for Dkim2Status
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal.Dkim2Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).Dkim2Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).Dkim2Status = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal.Dkim2Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).Dkim2Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).Dkim2Status = value ?? null; }
/// Internal Acessors for DkimErrorCode
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal.DkimErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).DkimErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).DkimErrorCode = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal.DkimErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).DkimErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).DkimErrorCode = value ?? null; }
/// Internal Acessors for DkimStatus
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal.DkimStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).DkimStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).DkimStatus = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal.DkimStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).DkimStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).DkimStatus = value ?? null; }
/// Internal Acessors for DmarcErrorCode
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal.DmarcErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).DmarcErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).DmarcErrorCode = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal.DmarcErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).DmarcErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).DmarcErrorCode = value ?? null; }
/// Internal Acessors for DmarcStatus
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal.DmarcStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).DmarcStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).DmarcStatus = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal.DmarcStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).DmarcStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).DmarcStatus = value ?? null; }
/// Internal Acessors for DomainErrorCode
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal.DomainErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).DomainErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).DomainErrorCode = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal.DomainErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).DomainErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).DomainErrorCode = value ?? null; }
/// Internal Acessors for DomainStatus
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal.DomainStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).DomainStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).DomainStatus = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal.DomainStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).DomainStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).DomainStatus = value ?? null; }
/// Internal Acessors for FromSenderDomain
string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal.FromSenderDomain { get => this._fromSenderDomain; set { {_fromSenderDomain = value;} } }
@@ -110,10 +110,10 @@ public partial class DomainProperties :
string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } }
/// Internal Acessors for SpfErrorCode
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal.SpfErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).SpfErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).SpfErrorCode = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal.SpfErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).SpfErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).SpfErrorCode = value ?? null; }
/// Internal Acessors for SpfStatus
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal.SpfStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).SpfStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).SpfStatus = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal.SpfStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).SpfStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).SpfStatus = value ?? null; }
/// Internal Acessors for VerificationRecord
Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationRecords Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal.VerificationRecord { get => (this._verificationRecord = this._verificationRecord ?? new Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.DomainPropertiesVerificationRecords()); set { {_verificationRecord = value;} } }
@@ -122,19 +122,19 @@ public partial class DomainProperties :
Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStates Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal.VerificationState { get => (this._verificationState = this._verificationState ?? new Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.DomainPropertiesVerificationStates()); set { {_verificationState = value;} } }
/// Internal Acessors for VerificationStateDkim
- Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecord Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal.VerificationStateDkim { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).Dkim; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).Dkim = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecord Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal.VerificationStateDkim { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).Dkim; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).Dkim = value ?? null /* model class */; }
/// Internal Acessors for VerificationStateDkim2
- Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecord Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal.VerificationStateDkim2 { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).Dkim2; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).Dkim2 = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecord Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal.VerificationStateDkim2 { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).Dkim2; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).Dkim2 = value ?? null /* model class */; }
/// Internal Acessors for VerificationStateDmarc
- Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecord Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal.VerificationStateDmarc { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).Dmarc; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).Dmarc = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecord Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal.VerificationStateDmarc { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).Dmarc; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).Dmarc = value ?? null /* model class */; }
/// Internal Acessors for VerificationStateDomain
- Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecord Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal.VerificationStateDomain { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).Domain; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).Domain = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecord Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal.VerificationStateDomain { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).Domain; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).Domain = value ?? null /* model class */; }
/// Internal Acessors for VerificationStateSpf
- Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecord Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal.VerificationStateSpf { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).Spf; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).Spf = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecord Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal.VerificationStateSpf { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).Spf; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal)VerificationState).Spf = value ?? null /* model class */; }
/// Backing field for property.
private string _provisioningState;
diff --git a/generated/Communication/EmailService.Autorest/generated/api/Models/DomainPropertiesVerificationRecords.cs b/generated/Communication/EmailService.Autorest/generated/api/Models/DomainPropertiesVerificationRecords.cs
index fdd7a327be30..2e07c6df5902 100644
--- a/generated/Communication/EmailService.Autorest/generated/api/Models/DomainPropertiesVerificationRecords.cs
+++ b/generated/Communication/EmailService.Autorest/generated/api/Models/DomainPropertiesVerificationRecords.cs
@@ -120,73 +120,73 @@ public partial class DomainPropertiesVerificationRecords :
Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecord Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationRecordsInternal.Dkim2 { get => (this._dkim2 = this._dkim2 ?? new Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.DnsRecord()); set { {_dkim2 = value;} } }
/// Internal Acessors for Dkim2Name
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationRecordsInternal.Dkim2Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Dkim2).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Dkim2).Name = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationRecordsInternal.Dkim2Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Dkim2).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Dkim2).Name = value ?? null; }
/// Internal Acessors for Dkim2Ttl
- int? Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationRecordsInternal.Dkim2Ttl { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Dkim2).Ttl; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Dkim2).Ttl = value; }
+ int? Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationRecordsInternal.Dkim2Ttl { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Dkim2).Ttl; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Dkim2).Ttl = value ?? default(int); }
/// Internal Acessors for Dkim2Type
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationRecordsInternal.Dkim2Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Dkim2).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Dkim2).Type = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationRecordsInternal.Dkim2Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Dkim2).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Dkim2).Type = value ?? null; }
/// Internal Acessors for Dkim2Value
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationRecordsInternal.Dkim2Value { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Dkim2).Value; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Dkim2).Value = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationRecordsInternal.Dkim2Value { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Dkim2).Value; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Dkim2).Value = value ?? null; }
/// Internal Acessors for DkimName
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationRecordsInternal.DkimName { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Dkim).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Dkim).Name = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationRecordsInternal.DkimName { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Dkim).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Dkim).Name = value ?? null; }
/// Internal Acessors for DkimTtl
- int? Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationRecordsInternal.DkimTtl { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Dkim).Ttl; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Dkim).Ttl = value; }
+ int? Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationRecordsInternal.DkimTtl { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Dkim).Ttl; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Dkim).Ttl = value ?? default(int); }
/// Internal Acessors for DkimType
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationRecordsInternal.DkimType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Dkim).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Dkim).Type = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationRecordsInternal.DkimType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Dkim).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Dkim).Type = value ?? null; }
/// Internal Acessors for DkimValue
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationRecordsInternal.DkimValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Dkim).Value; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Dkim).Value = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationRecordsInternal.DkimValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Dkim).Value; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Dkim).Value = value ?? null; }
/// Internal Acessors for Dmarc
Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecord Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationRecordsInternal.Dmarc { get => (this._dmarc = this._dmarc ?? new Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.DnsRecord()); set { {_dmarc = value;} } }
/// Internal Acessors for DmarcName
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationRecordsInternal.DmarcName { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Dmarc).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Dmarc).Name = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationRecordsInternal.DmarcName { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Dmarc).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Dmarc).Name = value ?? null; }
/// Internal Acessors for DmarcTtl
- int? Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationRecordsInternal.DmarcTtl { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Dmarc).Ttl; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Dmarc).Ttl = value; }
+ int? Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationRecordsInternal.DmarcTtl { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Dmarc).Ttl; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Dmarc).Ttl = value ?? default(int); }
/// Internal Acessors for DmarcType
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationRecordsInternal.DmarcType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Dmarc).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Dmarc).Type = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationRecordsInternal.DmarcType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Dmarc).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Dmarc).Type = value ?? null; }
/// Internal Acessors for DmarcValue
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationRecordsInternal.DmarcValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Dmarc).Value; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Dmarc).Value = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationRecordsInternal.DmarcValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Dmarc).Value; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Dmarc).Value = value ?? null; }
/// Internal Acessors for Domain
Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecord Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationRecordsInternal.Domain { get => (this._domain = this._domain ?? new Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.DnsRecord()); set { {_domain = value;} } }
/// Internal Acessors for DomainName
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationRecordsInternal.DomainName { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Domain).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Domain).Name = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationRecordsInternal.DomainName { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Domain).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Domain).Name = value ?? null; }
/// Internal Acessors for DomainTtl
- int? Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationRecordsInternal.DomainTtl { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Domain).Ttl; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Domain).Ttl = value; }
+ int? Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationRecordsInternal.DomainTtl { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Domain).Ttl; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Domain).Ttl = value ?? default(int); }
/// Internal Acessors for DomainType
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationRecordsInternal.DomainType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Domain).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Domain).Type = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationRecordsInternal.DomainType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Domain).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Domain).Type = value ?? null; }
/// Internal Acessors for DomainValue
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationRecordsInternal.DomainValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Domain).Value; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Domain).Value = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationRecordsInternal.DomainValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Domain).Value; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Domain).Value = value ?? null; }
/// Internal Acessors for Spf
Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecord Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationRecordsInternal.Spf { get => (this._spf = this._spf ?? new Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.DnsRecord()); set { {_spf = value;} } }
/// Internal Acessors for SpfName
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationRecordsInternal.SpfName { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Spf).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Spf).Name = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationRecordsInternal.SpfName { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Spf).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Spf).Name = value ?? null; }
/// Internal Acessors for SpfTtl
- int? Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationRecordsInternal.SpfTtl { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Spf).Ttl; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Spf).Ttl = value; }
+ int? Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationRecordsInternal.SpfTtl { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Spf).Ttl; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Spf).Ttl = value ?? default(int); }
/// Internal Acessors for SpfType
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationRecordsInternal.SpfType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Spf).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Spf).Type = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationRecordsInternal.SpfType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Spf).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Spf).Type = value ?? null; }
/// Internal Acessors for SpfValue
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationRecordsInternal.SpfValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Spf).Value; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Spf).Value = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationRecordsInternal.SpfValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Spf).Value; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecordInternal)Spf).Value = value ?? null; }
/// Backing field for property.
private Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDnsRecord _spf;
diff --git a/generated/Communication/EmailService.Autorest/generated/api/Models/DomainPropertiesVerificationStates.cs b/generated/Communication/EmailService.Autorest/generated/api/Models/DomainPropertiesVerificationStates.cs
index 9c9d863f273a..4cbea7f7f436 100644
--- a/generated/Communication/EmailService.Autorest/generated/api/Models/DomainPropertiesVerificationStates.cs
+++ b/generated/Communication/EmailService.Autorest/generated/api/Models/DomainPropertiesVerificationStates.cs
@@ -80,43 +80,43 @@ public partial class DomainPropertiesVerificationStates :
Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecord Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal.Dkim2 { get => (this._dkim2 = this._dkim2 ?? new Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.VerificationStatusRecord()); set { {_dkim2 = value;} } }
/// Internal Acessors for Dkim2ErrorCode
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal.Dkim2ErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecordInternal)Dkim2).ErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecordInternal)Dkim2).ErrorCode = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal.Dkim2ErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecordInternal)Dkim2).ErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecordInternal)Dkim2).ErrorCode = value ?? null; }
/// Internal Acessors for Dkim2Status
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal.Dkim2Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecordInternal)Dkim2).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecordInternal)Dkim2).Status = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal.Dkim2Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecordInternal)Dkim2).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecordInternal)Dkim2).Status = value ?? null; }
/// Internal Acessors for DkimErrorCode
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal.DkimErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecordInternal)Dkim).ErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecordInternal)Dkim).ErrorCode = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal.DkimErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecordInternal)Dkim).ErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecordInternal)Dkim).ErrorCode = value ?? null; }
/// Internal Acessors for DkimStatus
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal.DkimStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecordInternal)Dkim).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecordInternal)Dkim).Status = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal.DkimStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecordInternal)Dkim).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecordInternal)Dkim).Status = value ?? null; }
/// Internal Acessors for Dmarc
Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecord Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal.Dmarc { get => (this._dmarc = this._dmarc ?? new Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.VerificationStatusRecord()); set { {_dmarc = value;} } }
/// Internal Acessors for DmarcErrorCode
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal.DmarcErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecordInternal)Dmarc).ErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecordInternal)Dmarc).ErrorCode = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal.DmarcErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecordInternal)Dmarc).ErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecordInternal)Dmarc).ErrorCode = value ?? null; }
/// Internal Acessors for DmarcStatus
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal.DmarcStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecordInternal)Dmarc).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecordInternal)Dmarc).Status = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal.DmarcStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecordInternal)Dmarc).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecordInternal)Dmarc).Status = value ?? null; }
/// Internal Acessors for Domain
Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecord Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal.Domain { get => (this._domain = this._domain ?? new Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.VerificationStatusRecord()); set { {_domain = value;} } }
/// Internal Acessors for DomainErrorCode
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal.DomainErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecordInternal)Domain).ErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecordInternal)Domain).ErrorCode = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal.DomainErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecordInternal)Domain).ErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecordInternal)Domain).ErrorCode = value ?? null; }
/// Internal Acessors for DomainStatus
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal.DomainStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecordInternal)Domain).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecordInternal)Domain).Status = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal.DomainStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecordInternal)Domain).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecordInternal)Domain).Status = value ?? null; }
/// Internal Acessors for Spf
Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecord Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal.Spf { get => (this._spf = this._spf ?? new Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.VerificationStatusRecord()); set { {_spf = value;} } }
/// Internal Acessors for SpfErrorCode
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal.SpfErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecordInternal)Spf).ErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecordInternal)Spf).ErrorCode = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal.SpfErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecordInternal)Spf).ErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecordInternal)Spf).ErrorCode = value ?? null; }
/// Internal Acessors for SpfStatus
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal.SpfStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecordInternal)Spf).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecordInternal)Spf).Status = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStatesInternal.SpfStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecordInternal)Spf).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecordInternal)Spf).Status = value ?? null; }
/// Backing field for property.
private Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecord _spf;
diff --git a/generated/Communication/EmailService.Autorest/generated/api/Models/DomainResource.cs b/generated/Communication/EmailService.Autorest/generated/api/Models/DomainResource.cs
index 75793d806e2f..79686d07426f 100644
--- a/generated/Communication/EmailService.Autorest/generated/api/Models/DomainResource.cs
+++ b/generated/Communication/EmailService.Autorest/generated/api/Models/DomainResource.cs
@@ -71,89 +71,107 @@ public partial class DomainResource :
/// The geo-location where the resource lives
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Origin(Microsoft.Azure.PowerShell.Cmdlets.EmailService.PropertyOrigin.Inherited)]
- public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ITrackedResourceInternal)__trackedResource).Location = value ; }
+ public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; }
/// P1 sender domain that is present on the email envelope [RFC 5321].
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Origin(Microsoft.Azure.PowerShell.Cmdlets.EmailService.PropertyOrigin.Inlined)]
public string MailFromSenderDomain { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).MailFromSenderDomain; }
/// Internal Acessors for DataLocation
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResourceInternal.DataLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).DataLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).DataLocation = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResourceInternal.DataLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).DataLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).DataLocation = value ?? null; }
/// Internal Acessors for Dkim2ErrorCode
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResourceInternal.Dkim2ErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).Dkim2ErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).Dkim2ErrorCode = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResourceInternal.Dkim2ErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).Dkim2ErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).Dkim2ErrorCode = value ?? null; }
/// Internal Acessors for Dkim2Status
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResourceInternal.Dkim2Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).Dkim2Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).Dkim2Status = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResourceInternal.Dkim2Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).Dkim2Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).Dkim2Status = value ?? null; }
/// Internal Acessors for DkimErrorCode
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResourceInternal.DkimErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).DkimErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).DkimErrorCode = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResourceInternal.DkimErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).DkimErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).DkimErrorCode = value ?? null; }
/// Internal Acessors for DkimStatus
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResourceInternal.DkimStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).DkimStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).DkimStatus = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResourceInternal.DkimStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).DkimStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).DkimStatus = value ?? null; }
/// Internal Acessors for DmarcErrorCode
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResourceInternal.DmarcErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).DmarcErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).DmarcErrorCode = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResourceInternal.DmarcErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).DmarcErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).DmarcErrorCode = value ?? null; }
/// Internal Acessors for DmarcStatus
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResourceInternal.DmarcStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).DmarcStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).DmarcStatus = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResourceInternal.DmarcStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).DmarcStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).DmarcStatus = value ?? null; }
/// Internal Acessors for DomainErrorCode
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResourceInternal.DomainErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).DomainErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).DomainErrorCode = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResourceInternal.DomainErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).DomainErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).DomainErrorCode = value ?? null; }
/// Internal Acessors for DomainStatus
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResourceInternal.DomainStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).DomainStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).DomainStatus = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResourceInternal.DomainStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).DomainStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).DomainStatus = value ?? null; }
/// Internal Acessors for FromSenderDomain
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResourceInternal.FromSenderDomain { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).FromSenderDomain; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).FromSenderDomain = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResourceInternal.FromSenderDomain { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).FromSenderDomain; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).FromSenderDomain = value ?? null; }
/// Internal Acessors for MailFromSenderDomain
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResourceInternal.MailFromSenderDomain { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).MailFromSenderDomain; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).MailFromSenderDomain = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResourceInternal.MailFromSenderDomain { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).MailFromSenderDomain; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).MailFromSenderDomain = value ?? null; }
/// Internal Acessors for Property
Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainProperties Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.DomainProperties()); set { {_property = value;} } }
/// Internal Acessors for ProvisioningState
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).ProvisioningState = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).ProvisioningState = value ?? null; }
/// Internal Acessors for SpfErrorCode
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResourceInternal.SpfErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).SpfErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).SpfErrorCode = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResourceInternal.SpfErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).SpfErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).SpfErrorCode = value ?? null; }
/// Internal Acessors for SpfStatus
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResourceInternal.SpfStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).SpfStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).SpfStatus = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResourceInternal.SpfStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).SpfStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).SpfStatus = value ?? null; }
/// Internal Acessors for VerificationRecord
- Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationRecords Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResourceInternal.VerificationRecord { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).VerificationRecord; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).VerificationRecord = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationRecords Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResourceInternal.VerificationRecord { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).VerificationRecord; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).VerificationRecord = value ?? null /* model class */; }
/// Internal Acessors for VerificationState
- Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStates Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResourceInternal.VerificationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).VerificationState; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).VerificationState = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesVerificationStates Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResourceInternal.VerificationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).VerificationState; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).VerificationState = value ?? null /* model class */; }
/// Internal Acessors for VerificationStateDkim
- Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecord Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResourceInternal.VerificationStateDkim { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).VerificationStateDkim; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).VerificationStateDkim = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecord Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResourceInternal.VerificationStateDkim { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).VerificationStateDkim; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).VerificationStateDkim = value ?? null /* model class */; }
/// Internal Acessors for VerificationStateDkim2
- Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecord Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResourceInternal.VerificationStateDkim2 { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).VerificationStateDkim2; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).VerificationStateDkim2 = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecord Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResourceInternal.VerificationStateDkim2 { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).VerificationStateDkim2; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).VerificationStateDkim2 = value ?? null /* model class */; }
/// Internal Acessors for VerificationStateDmarc
- Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecord Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResourceInternal.VerificationStateDmarc { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).VerificationStateDmarc; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).VerificationStateDmarc = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecord Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResourceInternal.VerificationStateDmarc { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).VerificationStateDmarc; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).VerificationStateDmarc = value ?? null /* model class */; }
/// Internal Acessors for VerificationStateDomain
- Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecord Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResourceInternal.VerificationStateDomain { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).VerificationStateDomain; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).VerificationStateDomain = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecord Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResourceInternal.VerificationStateDomain { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).VerificationStateDomain; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).VerificationStateDomain = value ?? null /* model class */; }
/// Internal Acessors for VerificationStateSpf
- Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecord Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResourceInternal.VerificationStateSpf { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).VerificationStateSpf; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).VerificationStateSpf = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationStatusRecord Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResourceInternal.VerificationStateSpf { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).VerificationStateSpf; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainPropertiesInternal)Property).VerificationStateSpf = value ?? null /* model class */; }
/// Internal Acessors for Id
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).Id = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).Id = value ?? null; }
/// Internal Acessors for Name
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).Name = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).Name = value ?? null; }
/// Internal Acessors for SystemData
- Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemData = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; }
+
+ /// Internal Acessors for SystemDataCreatedAt
+ global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); }
+
+ /// Internal Acessors for SystemDataCreatedBy
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; }
+
+ /// Internal Acessors for SystemDataCreatedByType
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; }
+
+ /// Internal Acessors for SystemDataLastModifiedAt
+ global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); }
+
+ /// Internal Acessors for SystemDataLastModifiedBy
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; }
+
+ /// Internal Acessors for SystemDataLastModifiedByType
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; }
/// Internal Acessors for Type
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).Type = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).Type = value ?? null; }
/// The name of the resource
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Origin(Microsoft.Azure.PowerShell.Cmdlets.EmailService.PropertyOrigin.Inherited)]
@@ -186,31 +204,31 @@ public partial class DomainResource :
/// Azure Resource Manager metadata containing createdBy and modifiedBy information.
///
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Origin(Microsoft.Azure.PowerShell.Cmdlets.EmailService.PropertyOrigin.Inherited)]
- internal Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemData; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; }
/// The timestamp of resource creation (UTC).
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Origin(Microsoft.Azure.PowerShell.Cmdlets.EmailService.PropertyOrigin.Inherited)]
- public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); }
+ public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; }
/// The identity that created the resource.
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Origin(Microsoft.Azure.PowerShell.Cmdlets.EmailService.PropertyOrigin.Inherited)]
- public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; }
+ public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; }
/// The type of identity that created the resource.
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Origin(Microsoft.Azure.PowerShell.Cmdlets.EmailService.PropertyOrigin.Inherited)]
- public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; }
+ public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; }
/// The timestamp of resource last modification (UTC)
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Origin(Microsoft.Azure.PowerShell.Cmdlets.EmailService.PropertyOrigin.Inherited)]
- public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); }
+ public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; }
/// The identity that last modified the resource.
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Origin(Microsoft.Azure.PowerShell.Cmdlets.EmailService.PropertyOrigin.Inherited)]
- public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; }
+ public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; }
/// The type of identity that last modified the resource.
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Origin(Microsoft.Azure.PowerShell.Cmdlets.EmailService.PropertyOrigin.Inherited)]
- public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; }
+ public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; }
/// Resource tags.
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Origin(Microsoft.Azure.PowerShell.Cmdlets.EmailService.PropertyOrigin.Inherited)]
diff --git a/generated/Communication/EmailService.Autorest/generated/api/Models/EmailServiceProperties.cs b/generated/Communication/EmailService.Autorest/generated/api/Models/EmailServiceProperties.cs
index 23f75de0c7e5..63ad32ea265e 100644
--- a/generated/Communication/EmailService.Autorest/generated/api/Models/EmailServiceProperties.cs
+++ b/generated/Communication/EmailService.Autorest/generated/api/Models/EmailServiceProperties.cs
@@ -42,7 +42,7 @@ public partial interface IEmailServiceProperties :
{
/// The location where the email service stores its data at rest.
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.Info(
- Required = true,
+ Required = false,
ReadOnly = false,
Read = true,
Create = true,
diff --git a/generated/Communication/EmailService.Autorest/generated/api/Models/EmailServiceResource.cs b/generated/Communication/EmailService.Autorest/generated/api/Models/EmailServiceResource.cs
index 3aa14f0eb73a..d3fe39774785 100644
--- a/generated/Communication/EmailService.Autorest/generated/api/Models/EmailServiceResource.cs
+++ b/generated/Communication/EmailService.Autorest/generated/api/Models/EmailServiceResource.cs
@@ -31,25 +31,43 @@ public partial class EmailServiceResource :
/// The geo-location where the resource lives
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Origin(Microsoft.Azure.PowerShell.Cmdlets.EmailService.PropertyOrigin.Inherited)]
- public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ITrackedResourceInternal)__trackedResource).Location = value ; }
+ public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; }
/// Internal Acessors for Property
Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IEmailServiceProperties Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IEmailServiceResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.EmailServiceProperties()); set { {_property = value;} } }
/// Internal Acessors for ProvisioningState
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IEmailServiceResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IEmailServicePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IEmailServicePropertiesInternal)Property).ProvisioningState = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IEmailServiceResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IEmailServicePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IEmailServicePropertiesInternal)Property).ProvisioningState = value ?? null; }
/// Internal Acessors for Id
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).Id = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).Id = value ?? null; }
/// Internal Acessors for Name
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).Name = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).Name = value ?? null; }
/// Internal Acessors for SystemData
- Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemData = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; }
+
+ /// Internal Acessors for SystemDataCreatedAt
+ global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); }
+
+ /// Internal Acessors for SystemDataCreatedBy
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; }
+
+ /// Internal Acessors for SystemDataCreatedByType
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; }
+
+ /// Internal Acessors for SystemDataLastModifiedAt
+ global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); }
+
+ /// Internal Acessors for SystemDataLastModifiedBy
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; }
+
+ /// Internal Acessors for SystemDataLastModifiedByType
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; }
/// Internal Acessors for Type
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).Type = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).Type = value ?? null; }
/// The name of the resource
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Origin(Microsoft.Azure.PowerShell.Cmdlets.EmailService.PropertyOrigin.Inherited)]
@@ -74,31 +92,31 @@ public partial class EmailServiceResource :
/// Azure Resource Manager metadata containing createdBy and modifiedBy information.
///
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Origin(Microsoft.Azure.PowerShell.Cmdlets.EmailService.PropertyOrigin.Inherited)]
- internal Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemData; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; }
/// The timestamp of resource creation (UTC).
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Origin(Microsoft.Azure.PowerShell.Cmdlets.EmailService.PropertyOrigin.Inherited)]
- public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); }
+ public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; }
/// The identity that created the resource.
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Origin(Microsoft.Azure.PowerShell.Cmdlets.EmailService.PropertyOrigin.Inherited)]
- public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; }
+ public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; }
/// The type of identity that created the resource.
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Origin(Microsoft.Azure.PowerShell.Cmdlets.EmailService.PropertyOrigin.Inherited)]
- public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; }
+ public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; }
/// The timestamp of resource last modification (UTC)
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Origin(Microsoft.Azure.PowerShell.Cmdlets.EmailService.PropertyOrigin.Inherited)]
- public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); }
+ public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; }
/// The identity that last modified the resource.
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Origin(Microsoft.Azure.PowerShell.Cmdlets.EmailService.PropertyOrigin.Inherited)]
- public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; }
+ public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; }
/// The type of identity that last modified the resource.
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Origin(Microsoft.Azure.PowerShell.Cmdlets.EmailService.PropertyOrigin.Inherited)]
- public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; }
+ public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; }
/// Resource tags.
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Origin(Microsoft.Azure.PowerShell.Cmdlets.EmailService.PropertyOrigin.Inherited)]
diff --git a/generated/Communication/EmailService.Autorest/generated/api/Models/ErrorResponse.cs b/generated/Communication/EmailService.Autorest/generated/api/Models/ErrorResponse.cs
index 095c81c1b537..2454eb7b4d06 100644
--- a/generated/Communication/EmailService.Autorest/generated/api/Models/ErrorResponse.cs
+++ b/generated/Communication/EmailService.Autorest/generated/api/Models/ErrorResponse.cs
@@ -40,22 +40,22 @@ public partial class ErrorResponse :
public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IErrorDetailInternal)Error).Message; }
/// Internal Acessors for AdditionalInfo
- System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IErrorDetailInternal)Error).AdditionalInfo = value; }
+ System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IErrorDetailInternal)Error).AdditionalInfo = value ?? null /* arrayOf */; }
/// Internal Acessors for Code
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IErrorDetailInternal)Error).Code = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IErrorDetailInternal)Error).Code = value ?? null; }
/// Internal Acessors for Detail
- System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IErrorDetailInternal)Error).Detail = value; }
+ System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IErrorDetailInternal)Error).Detail = value ?? null /* arrayOf */; }
/// Internal Acessors for Error
Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ErrorDetail()); set { {_error = value;} } }
/// Internal Acessors for Message
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IErrorDetailInternal)Error).Message = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IErrorDetailInternal)Error).Message = value ?? null; }
/// Internal Acessors for Target
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IErrorDetailInternal)Error).Target = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IErrorDetailInternal)Error).Target = value ?? null; }
/// The error target.
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Origin(Microsoft.Azure.PowerShell.Cmdlets.EmailService.PropertyOrigin.Inlined)]
diff --git a/generated/Communication/EmailService.Autorest/generated/api/Models/ProxyResource.cs b/generated/Communication/EmailService.Autorest/generated/api/Models/ProxyResource.cs
index bbbdb5a54895..067d4b8b5c21 100644
--- a/generated/Communication/EmailService.Autorest/generated/api/Models/ProxyResource.cs
+++ b/generated/Communication/EmailService.Autorest/generated/api/Models/ProxyResource.cs
@@ -27,16 +27,34 @@ public partial class ProxyResource :
public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).Id; }
/// Internal Acessors for Id
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).Id = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).Id = value ?? null; }
/// Internal Acessors for Name
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).Name = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).Name = value ?? null; }
/// Internal Acessors for SystemData
- Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemData = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; }
+
+ /// Internal Acessors for SystemDataCreatedAt
+ global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); }
+
+ /// Internal Acessors for SystemDataCreatedBy
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; }
+
+ /// Internal Acessors for SystemDataCreatedByType
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; }
+
+ /// Internal Acessors for SystemDataLastModifiedAt
+ global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); }
+
+ /// Internal Acessors for SystemDataLastModifiedBy
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; }
+
+ /// Internal Acessors for SystemDataLastModifiedByType
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; }
/// Internal Acessors for Type
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).Type = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).Type = value ?? null; }
/// The name of the resource
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Origin(Microsoft.Azure.PowerShell.Cmdlets.EmailService.PropertyOrigin.Inherited)]
@@ -46,31 +64,31 @@ public partial class ProxyResource :
/// Azure Resource Manager metadata containing createdBy and modifiedBy information.
///
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Origin(Microsoft.Azure.PowerShell.Cmdlets.EmailService.PropertyOrigin.Inherited)]
- internal Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemData; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; }
/// The timestamp of resource creation (UTC).
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Origin(Microsoft.Azure.PowerShell.Cmdlets.EmailService.PropertyOrigin.Inherited)]
- public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); }
+ public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataCreatedAt; }
/// The identity that created the resource.
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Origin(Microsoft.Azure.PowerShell.Cmdlets.EmailService.PropertyOrigin.Inherited)]
- public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; }
+ public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataCreatedBy; }
/// The type of identity that created the resource.
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Origin(Microsoft.Azure.PowerShell.Cmdlets.EmailService.PropertyOrigin.Inherited)]
- public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; }
+ public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataCreatedByType; }
/// The timestamp of resource last modification (UTC)
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Origin(Microsoft.Azure.PowerShell.Cmdlets.EmailService.PropertyOrigin.Inherited)]
- public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); }
+ public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; }
/// The identity that last modified the resource.
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Origin(Microsoft.Azure.PowerShell.Cmdlets.EmailService.PropertyOrigin.Inherited)]
- public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; }
+ public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; }
/// The type of identity that last modified the resource.
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Origin(Microsoft.Azure.PowerShell.Cmdlets.EmailService.PropertyOrigin.Inherited)]
- public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; }
+ public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; }
///
/// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
diff --git a/generated/Communication/EmailService.Autorest/generated/api/Models/Resource.cs b/generated/Communication/EmailService.Autorest/generated/api/Models/Resource.cs
index e7872fc78433..b35376a05e59 100644
--- a/generated/Communication/EmailService.Autorest/generated/api/Models/Resource.cs
+++ b/generated/Communication/EmailService.Autorest/generated/api/Models/Resource.cs
@@ -33,6 +33,24 @@ public partial class Resource :
/// Internal Acessors for SystemData
Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.SystemData()); set { {_systemData = value;} } }
+ /// Internal Acessors for SystemDataCreatedAt
+ global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); }
+
+ /// Internal Acessors for SystemDataCreatedBy
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; }
+
+ /// Internal Acessors for SystemDataCreatedByType
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; }
+
+ /// Internal Acessors for SystemDataLastModifiedAt
+ global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); }
+
+ /// Internal Acessors for SystemDataLastModifiedBy
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; }
+
+ /// Internal Acessors for SystemDataLastModifiedByType
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; }
+
/// Internal Acessors for Type
string Microsoft.Azure.PowerShell.Cmdlets.EmailService.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.EmailService.Origin(Microsoft.Azure.PowerShell.Cmdlets.EmailService.PropertyOrigin.Inlined)]
- public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); }
+ public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISystemDataInternal)SystemData).CreatedAt; }
/// The identity that created the resource.
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Origin(Microsoft.Azure.PowerShell.Cmdlets.EmailService.PropertyOrigin.Inlined)]
- public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; }
+ public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISystemDataInternal)SystemData).CreatedBy; }
/// The type of identity that created the resource.
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Origin(Microsoft.Azure.PowerShell.Cmdlets.EmailService.PropertyOrigin.Inlined)]
- public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; }
+ public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISystemDataInternal)SystemData).CreatedByType; }
/// The timestamp of resource last modification (UTC)
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Origin(Microsoft.Azure.PowerShell.Cmdlets.EmailService.PropertyOrigin.Inlined)]
- public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); }
+ public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISystemDataInternal)SystemData).LastModifiedAt; }
/// The identity that last modified the resource.
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Origin(Microsoft.Azure.PowerShell.Cmdlets.EmailService.PropertyOrigin.Inlined)]
- public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; }
+ public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISystemDataInternal)SystemData).LastModifiedBy; }
/// The type of identity that last modified the resource.
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Origin(Microsoft.Azure.PowerShell.Cmdlets.EmailService.PropertyOrigin.Inlined)]
- public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; }
+ public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISystemDataInternal)SystemData).LastModifiedByType; }
/// Backing field for property.
private string _type;
diff --git a/generated/Communication/EmailService.Autorest/generated/api/Models/SenderUsernameResource.cs b/generated/Communication/EmailService.Autorest/generated/api/Models/SenderUsernameResource.cs
index f2d2682c143e..46410b33c09b 100644
--- a/generated/Communication/EmailService.Autorest/generated/api/Models/SenderUsernameResource.cs
+++ b/generated/Communication/EmailService.Autorest/generated/api/Models/SenderUsernameResource.cs
@@ -33,25 +33,43 @@ public partial class SenderUsernameResource :
public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__proxyResource).Id; }
/// Internal Acessors for Id
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__proxyResource).Id = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__proxyResource).Id = value ?? null; }
/// Internal Acessors for Name
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__proxyResource).Name = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__proxyResource).Name = value ?? null; }
/// Internal Acessors for SystemData
- Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__proxyResource).SystemData = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; }
+
+ /// Internal Acessors for SystemDataCreatedAt
+ global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); }
+
+ /// Internal Acessors for SystemDataCreatedBy
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; }
+
+ /// Internal Acessors for SystemDataCreatedByType
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; }
+
+ /// Internal Acessors for SystemDataLastModifiedAt
+ global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); }
+
+ /// Internal Acessors for SystemDataLastModifiedBy
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; }
+
+ /// Internal Acessors for SystemDataLastModifiedByType
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; }
/// Internal Acessors for Type
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__proxyResource).Type = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__proxyResource).Type = value ?? null; }
/// Internal Acessors for DataLocation
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISenderUsernameResourceInternal.DataLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISenderUsernamePropertiesInternal)Property).DataLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISenderUsernamePropertiesInternal)Property).DataLocation = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISenderUsernameResourceInternal.DataLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISenderUsernamePropertiesInternal)Property).DataLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISenderUsernamePropertiesInternal)Property).DataLocation = value ?? null; }
/// Internal Acessors for Property
Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISenderUsernameProperties Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISenderUsernameResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.SenderUsernameProperties()); set { {_property = value;} } }
/// Internal Acessors for ProvisioningState
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISenderUsernameResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISenderUsernamePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISenderUsernamePropertiesInternal)Property).ProvisioningState = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISenderUsernameResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISenderUsernamePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISenderUsernamePropertiesInternal)Property).ProvisioningState = value ?? null; }
/// The name of the resource
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Origin(Microsoft.Azure.PowerShell.Cmdlets.EmailService.PropertyOrigin.Inherited)]
@@ -78,31 +96,31 @@ public partial class SenderUsernameResource :
/// Azure Resource Manager metadata containing createdBy and modifiedBy information.
///
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Origin(Microsoft.Azure.PowerShell.Cmdlets.EmailService.PropertyOrigin.Inherited)]
- internal Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__proxyResource).SystemData; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; }
/// The timestamp of resource creation (UTC).
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Origin(Microsoft.Azure.PowerShell.Cmdlets.EmailService.PropertyOrigin.Inherited)]
- public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); }
+ public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; }
/// The identity that created the resource.
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Origin(Microsoft.Azure.PowerShell.Cmdlets.EmailService.PropertyOrigin.Inherited)]
- public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; }
+ public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; }
/// The type of identity that created the resource.
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Origin(Microsoft.Azure.PowerShell.Cmdlets.EmailService.PropertyOrigin.Inherited)]
- public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; }
+ public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; }
/// The timestamp of resource last modification (UTC)
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Origin(Microsoft.Azure.PowerShell.Cmdlets.EmailService.PropertyOrigin.Inherited)]
- public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); }
+ public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; }
/// The identity that last modified the resource.
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Origin(Microsoft.Azure.PowerShell.Cmdlets.EmailService.PropertyOrigin.Inherited)]
- public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; }
+ public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; }
/// The type of identity that last modified the resource.
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Origin(Microsoft.Azure.PowerShell.Cmdlets.EmailService.PropertyOrigin.Inherited)]
- public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; }
+ public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; }
///
/// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
diff --git a/generated/Communication/EmailService.Autorest/generated/api/Models/TrackedResource.cs b/generated/Communication/EmailService.Autorest/generated/api/Models/TrackedResource.cs
index 8e7ca29f3834..62a67a6215ab 100644
--- a/generated/Communication/EmailService.Autorest/generated/api/Models/TrackedResource.cs
+++ b/generated/Communication/EmailService.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.EmailService.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).Id = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).Id = value ?? null; }
/// Internal Acessors for Name
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).Name = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).Name = value ?? null; }
/// Internal Acessors for SystemData
- Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemData = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; }
+
+ /// Internal Acessors for SystemDataCreatedAt
+ global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); }
+
+ /// Internal Acessors for SystemDataCreatedBy
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; }
+
+ /// Internal Acessors for SystemDataCreatedByType
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; }
+
+ /// Internal Acessors for SystemDataLastModifiedAt
+ global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); }
+
+ /// Internal Acessors for SystemDataLastModifiedBy
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; }
+
+ /// Internal Acessors for SystemDataLastModifiedByType
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; }
/// Internal Acessors for Type
- string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).Type = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).Type = value ?? null; }
/// The name of the resource
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Origin(Microsoft.Azure.PowerShell.Cmdlets.EmailService.PropertyOrigin.Inherited)]
@@ -53,31 +71,31 @@ public partial class TrackedResource :
/// Azure Resource Manager metadata containing createdBy and modifiedBy information.
///
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Origin(Microsoft.Azure.PowerShell.Cmdlets.EmailService.PropertyOrigin.Inherited)]
- internal Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemData; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; }
/// The timestamp of resource creation (UTC).
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Origin(Microsoft.Azure.PowerShell.Cmdlets.EmailService.PropertyOrigin.Inherited)]
- public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); }
+ public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataCreatedAt; }
/// The identity that created the resource.
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Origin(Microsoft.Azure.PowerShell.Cmdlets.EmailService.PropertyOrigin.Inherited)]
- public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; }
+ public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataCreatedBy; }
/// The type of identity that created the resource.
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Origin(Microsoft.Azure.PowerShell.Cmdlets.EmailService.PropertyOrigin.Inherited)]
- public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; }
+ public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataCreatedByType; }
/// The timestamp of resource last modification (UTC)
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Origin(Microsoft.Azure.PowerShell.Cmdlets.EmailService.PropertyOrigin.Inherited)]
- public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); }
+ public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; }
/// The identity that last modified the resource.
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Origin(Microsoft.Azure.PowerShell.Cmdlets.EmailService.PropertyOrigin.Inherited)]
- public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; }
+ public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; }
/// The type of identity that last modified the resource.
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Origin(Microsoft.Azure.PowerShell.Cmdlets.EmailService.PropertyOrigin.Inherited)]
- public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; }
+ public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; }
/// Backing field for property.
private Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ITrackedResourceTags _tag;
@@ -117,7 +135,7 @@ public partial interface ITrackedResource :
{
/// The geo-location where the resource lives
[Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.Info(
- Required = true,
+ Required = false,
ReadOnly = false,
Read = true,
Create = true,
diff --git a/generated/Communication/EmailService.Autorest/generated/cmdlets/InvokeAzEmailServiceInitiateDomainVerification_Initiate.cs b/generated/Communication/EmailService.Autorest/generated/cmdlets/InvokeAzEmailServiceInitiateDomainVerification_Initiate.cs
index c8fae295fc4a..8a04f4bb44fa 100644
--- a/generated/Communication/EmailService.Autorest/generated/cmdlets/InvokeAzEmailServiceInitiateDomainVerification_Initiate.cs
+++ b/generated/Communication/EmailService.Autorest/generated/cmdlets/InvokeAzEmailServiceInitiateDomainVerification_Initiate.cs
@@ -40,15 +40,6 @@ public partial class InvokeAzEmailServiceInitiateDomainVerification_Initiate : 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.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
@@ -151,6 +142,13 @@ public partial class InvokeAzEmailServiceInitiateDomainVerification_Initiate : g
[global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Body)]
public Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationParameter Parameter { get => this._parameter; set => this._parameter = value; }
+ ///
+ /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default.
+ ///
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
+ public global::System.Management.Automation.SwitchParameter PassThru { get; set; }
+
///
/// The instance of the that the remote call will use.
///
@@ -217,6 +215,16 @@ public partial class InvokeAzEmailServiceInitiateDomainVerification_Initiate : g
partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow);
+ ///
+ /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens
+ /// on that response. Implement this method in a partial class to enable this behavior
+ ///
+ /// the raw response message as an global::System.Net.Http.HttpResponseMessage.
+ /// /// Determines if the rest of the onOk method should be processed, or if the method should return
+ /// immediately (set to true to skip further processing )
+
+ partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow);
+
///
/// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet)
///
@@ -263,11 +271,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EmailService.Cmdlets.InvokeAzEmailServ
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EmailService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
if (telemetryInfo != null)
{
@@ -481,7 +484,7 @@ protected override void ProcessRecord()
try
{
await ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
- await this.Client.DomainsInitiateVerification(SubscriptionId, ResourceGroupName, EmailServiceName, DomainName, Parameter, onDefault, this, Pipeline);
+ await this.Client.DomainsInitiateVerification(SubscriptionId, ResourceGroupName, EmailServiceName, DomainName, Parameter, onOk, onDefault, this, Pipeline);
await ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
catch (Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.UndeclaredResponseException urexception)
@@ -561,5 +564,29 @@ protected override void StopProcessing()
}
}
}
+
+ /// a delegate that is called when the remote service returns 200 (OK).
+ /// the raw response message as an global::System.Net.Http.HttpResponseMessage.
+ ///
+ /// A that will be complete when handling of the method is completed.
+ ///
+ private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage)
+ {
+ using( NoSynchronizationContext )
+ {
+ var _returnNow = global::System.Threading.Tasks.Task.FromResult(false);
+ overrideOnOk(responseMessage, ref _returnNow);
+ // if overrideOnOk has returned true, then return right away.
+ if ((null != _returnNow && await _returnNow))
+ {
+ return ;
+ }
+ // onOk - response for 200 /
+ if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru"))
+ {
+ WriteObject(true);
+ }
+ }
+ }
}
}
\ No newline at end of file
diff --git a/generated/Communication/EmailService.Autorest/generated/cmdlets/InvokeAzEmailServiceInitiateDomainVerification_InitiateExpanded.cs b/generated/Communication/EmailService.Autorest/generated/cmdlets/InvokeAzEmailServiceInitiateDomainVerification_InitiateExpanded.cs
index 3563b0f19f0e..ef14142daffd 100644
--- a/generated/Communication/EmailService.Autorest/generated/cmdlets/InvokeAzEmailServiceInitiateDomainVerification_InitiateExpanded.cs
+++ b/generated/Communication/EmailService.Autorest/generated/cmdlets/InvokeAzEmailServiceInitiateDomainVerification_InitiateExpanded.cs
@@ -40,18 +40,9 @@ public partial class InvokeAzEmailServiceInitiateDomainVerification_InitiateExpa
/// A dictionary to carry over additional data for pipeline.
private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary();
- /// A buffer to record first returned object in response.
- private object _firstResponse = null;
-
/// Input parameter for verification APIs
private Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationParameter _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.VerificationParameter();
- ///
- /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object.
- /// Two means multiple returned objects in response.
- ///
- private int _responseSize = 0;
-
/// when specified, runs this cmdlet as a PowerShell job
[global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")]
[global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
@@ -140,6 +131,13 @@ public partial class InvokeAzEmailServiceInitiateDomainVerification_InitiateExpa
[global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
public global::System.Management.Automation.SwitchParameter NoWait { get; set; }
+ ///
+ /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default.
+ ///
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
+ public global::System.Management.Automation.SwitchParameter PassThru { get; set; }
+
///
/// The instance of the that the remote call will use.
///
@@ -218,6 +216,16 @@ public partial class InvokeAzEmailServiceInitiateDomainVerification_InitiateExpa
partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow);
+ ///
+ /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens
+ /// on that response. Implement this method in a partial class to enable this behavior
+ ///
+ /// the raw response message as an global::System.Net.Http.HttpResponseMessage.
+ /// /// Determines if the rest of the onOk method should be processed, or if the method should return
+ /// immediately (set to true to skip further processing )
+
+ partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow);
+
///
/// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet)
///
@@ -266,11 +274,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EmailService.Cmdlets.InvokeAzEmailServ
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EmailService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
if (telemetryInfo != null)
{
@@ -485,7 +488,7 @@ protected override void ProcessRecord()
try
{
await ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
- await this.Client.DomainsInitiateVerification(SubscriptionId, ResourceGroupName, EmailServiceName, DomainName, _parametersBody, onDefault, this, Pipeline);
+ await this.Client.DomainsInitiateVerification(SubscriptionId, ResourceGroupName, EmailServiceName, DomainName, _parametersBody, onOk, onDefault, this, Pipeline);
await ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
catch (Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.UndeclaredResponseException urexception)
@@ -565,5 +568,29 @@ protected override void StopProcessing()
}
}
}
+
+ /// a delegate that is called when the remote service returns 200 (OK).
+ /// the raw response message as an global::System.Net.Http.HttpResponseMessage.
+ ///
+ /// A that will be complete when handling of the method is completed.
+ ///
+ private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage)
+ {
+ using( NoSynchronizationContext )
+ {
+ var _returnNow = global::System.Threading.Tasks.Task.FromResult(false);
+ overrideOnOk(responseMessage, ref _returnNow);
+ // if overrideOnOk has returned true, then return right away.
+ if ((null != _returnNow && await _returnNow))
+ {
+ return ;
+ }
+ // onOk - response for 200 /
+ if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru"))
+ {
+ WriteObject(true);
+ }
+ }
+ }
}
}
\ No newline at end of file
diff --git a/generated/Communication/EmailService.Autorest/generated/cmdlets/InvokeAzEmailServiceInitiateDomainVerification_InitiateViaIdentity.cs b/generated/Communication/EmailService.Autorest/generated/cmdlets/InvokeAzEmailServiceInitiateDomainVerification_InitiateViaIdentity.cs
index a43ece6e24d6..51bd544663cc 100644
--- a/generated/Communication/EmailService.Autorest/generated/cmdlets/InvokeAzEmailServiceInitiateDomainVerification_InitiateViaIdentity.cs
+++ b/generated/Communication/EmailService.Autorest/generated/cmdlets/InvokeAzEmailServiceInitiateDomainVerification_InitiateViaIdentity.cs
@@ -40,15 +40,6 @@ public partial class InvokeAzEmailServiceInitiateDomainVerification_InitiateViaI
/// A dictionary to carry over additional data for pipeline.
private global::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.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
@@ -131,6 +122,13 @@ public partial class InvokeAzEmailServiceInitiateDomainVerification_InitiateViaI
[global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Body)]
public Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationParameter Parameter { get => this._parameter; set => this._parameter = value; }
+ ///
+ /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default.
+ ///
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
+ public global::System.Management.Automation.SwitchParameter PassThru { get; set; }
+
///
/// The instance of the that the remote call will use.
///
@@ -164,6 +162,16 @@ public partial class InvokeAzEmailServiceInitiateDomainVerification_InitiateViaI
partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow);
+ ///
+ /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens
+ /// on that response. Implement this method in a partial class to enable this behavior
+ ///
+ /// the raw response message as an global::System.Net.Http.HttpResponseMessage.
+ /// /// Determines if the rest of the onOk method should be processed, or if the method should return
+ /// immediately (set to true to skip further processing )
+
+ partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow);
+
///
/// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet)
///
@@ -208,11 +216,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EmailService.Cmdlets.InvokeAzEmailServ
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EmailService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
if (telemetryInfo != null)
{
@@ -429,7 +432,7 @@ protected override void ProcessRecord()
await ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
if (InputObject?.Id != null)
{
- await this.Client.DomainsInitiateVerificationViaIdentity(InputObject.Id, Parameter, onDefault, this, Pipeline);
+ await this.Client.DomainsInitiateVerificationViaIdentity(InputObject.Id, Parameter, onOk, onDefault, this, Pipeline);
}
else
{
@@ -450,7 +453,7 @@ protected override void ProcessRecord()
{
ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DomainName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) );
}
- await this.Client.DomainsInitiateVerification(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.EmailServiceName ?? null, InputObject.DomainName ?? null, Parameter, onDefault, this, Pipeline);
+ await this.Client.DomainsInitiateVerification(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.EmailServiceName ?? null, InputObject.DomainName ?? null, Parameter, onOk, onDefault, this, Pipeline);
}
await ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
@@ -531,5 +534,29 @@ protected override void StopProcessing()
}
}
}
+
+ /// a delegate that is called when the remote service returns 200 (OK).
+ /// the raw response message as an global::System.Net.Http.HttpResponseMessage.
+ ///
+ /// A that will be complete when handling of the method is completed.
+ ///
+ private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage)
+ {
+ using( NoSynchronizationContext )
+ {
+ var _returnNow = global::System.Threading.Tasks.Task.FromResult(false);
+ overrideOnOk(responseMessage, ref _returnNow);
+ // if overrideOnOk has returned true, then return right away.
+ if ((null != _returnNow && await _returnNow))
+ {
+ return ;
+ }
+ // onOk - response for 200 /
+ if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru"))
+ {
+ WriteObject(true);
+ }
+ }
+ }
}
}
\ No newline at end of file
diff --git a/generated/Communication/EmailService.Autorest/generated/cmdlets/InvokeAzEmailServiceInitiateDomainVerification_InitiateViaIdentityEmailService.cs b/generated/Communication/EmailService.Autorest/generated/cmdlets/InvokeAzEmailServiceInitiateDomainVerification_InitiateViaIdentityEmailService.cs
index c54edf650d27..cc34663af338 100644
--- a/generated/Communication/EmailService.Autorest/generated/cmdlets/InvokeAzEmailServiceInitiateDomainVerification_InitiateViaIdentityEmailService.cs
+++ b/generated/Communication/EmailService.Autorest/generated/cmdlets/InvokeAzEmailServiceInitiateDomainVerification_InitiateViaIdentityEmailService.cs
@@ -40,15 +40,6 @@ public partial class InvokeAzEmailServiceInitiateDomainVerification_InitiateViaI
/// A dictionary to carry over additional data for pipeline.
private global::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.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
@@ -145,6 +136,13 @@ public partial class InvokeAzEmailServiceInitiateDomainVerification_InitiateViaI
[global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Body)]
public Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationParameter Parameter { get => this._parameter; set => this._parameter = value; }
+ ///
+ /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default.
+ ///
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
+ public global::System.Management.Automation.SwitchParameter PassThru { get; set; }
+
///
/// The instance of the that the remote call will use.
///
@@ -178,6 +176,16 @@ public partial class InvokeAzEmailServiceInitiateDomainVerification_InitiateViaI
partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow);
+ ///
+ /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens
+ /// on that response. Implement this method in a partial class to enable this behavior
+ ///
+ /// the raw response message as an global::System.Net.Http.HttpResponseMessage.
+ /// /// Determines if the rest of the onOk method should be processed, or if the method should return
+ /// immediately (set to true to skip further processing )
+
+ partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow);
+
///
/// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet)
///
@@ -223,11 +231,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EmailService.Cmdlets.InvokeAzEmailServ
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EmailService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
if (telemetryInfo != null)
{
@@ -445,7 +448,7 @@ protected override void ProcessRecord()
if (EmailServiceInputObject?.Id != null)
{
this.EmailServiceInputObject.Id += $"/domains/{(global::System.Uri.EscapeDataString(this.DomainName.ToString()))}";
- await this.Client.DomainsInitiateVerificationViaIdentity(EmailServiceInputObject.Id, Parameter, onDefault, this, Pipeline);
+ await this.Client.DomainsInitiateVerificationViaIdentity(EmailServiceInputObject.Id, Parameter, onOk, onDefault, this, Pipeline);
}
else
{
@@ -462,7 +465,7 @@ protected override void ProcessRecord()
{
ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("EmailServiceInputObject has null value for EmailServiceInputObject.EmailServiceName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, EmailServiceInputObject) );
}
- await this.Client.DomainsInitiateVerification(EmailServiceInputObject.SubscriptionId ?? null, EmailServiceInputObject.ResourceGroupName ?? null, EmailServiceInputObject.EmailServiceName ?? null, DomainName, Parameter, onDefault, this, Pipeline);
+ await this.Client.DomainsInitiateVerification(EmailServiceInputObject.SubscriptionId ?? null, EmailServiceInputObject.ResourceGroupName ?? null, EmailServiceInputObject.EmailServiceName ?? null, DomainName, Parameter, onOk, onDefault, this, Pipeline);
}
await ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
@@ -543,5 +546,29 @@ protected override void StopProcessing()
}
}
}
+
+ /// a delegate that is called when the remote service returns 200 (OK).
+ /// the raw response message as an global::System.Net.Http.HttpResponseMessage.
+ ///
+ /// A that will be complete when handling of the method is completed.
+ ///
+ private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage)
+ {
+ using( NoSynchronizationContext )
+ {
+ var _returnNow = global::System.Threading.Tasks.Task.FromResult(false);
+ overrideOnOk(responseMessage, ref _returnNow);
+ // if overrideOnOk has returned true, then return right away.
+ if ((null != _returnNow && await _returnNow))
+ {
+ return ;
+ }
+ // onOk - response for 200 /
+ if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru"))
+ {
+ WriteObject(true);
+ }
+ }
+ }
}
}
\ No newline at end of file
diff --git a/generated/Communication/EmailService.Autorest/generated/cmdlets/InvokeAzEmailServiceInitiateDomainVerification_InitiateViaIdentityEmailServiceExpanded.cs b/generated/Communication/EmailService.Autorest/generated/cmdlets/InvokeAzEmailServiceInitiateDomainVerification_InitiateViaIdentityEmailServiceExpanded.cs
index 0e03da29164d..63463771a437 100644
--- a/generated/Communication/EmailService.Autorest/generated/cmdlets/InvokeAzEmailServiceInitiateDomainVerification_InitiateViaIdentityEmailServiceExpanded.cs
+++ b/generated/Communication/EmailService.Autorest/generated/cmdlets/InvokeAzEmailServiceInitiateDomainVerification_InitiateViaIdentityEmailServiceExpanded.cs
@@ -40,18 +40,9 @@ public partial class InvokeAzEmailServiceInitiateDomainVerification_InitiateViaI
/// A dictionary to carry over additional data for pipeline.
private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary();
- /// A buffer to record first returned object in response.
- private object _firstResponse = null;
-
/// Input parameter for verification APIs
private Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationParameter _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.VerificationParameter();
- ///
- /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object.
- /// Two means multiple returned objects in response.
- ///
- private int _responseSize = 0;
-
/// when specified, runs this cmdlet as a PowerShell job
[global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")]
[global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
@@ -134,6 +125,13 @@ public partial class InvokeAzEmailServiceInitiateDomainVerification_InitiateViaI
[global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
public global::System.Management.Automation.SwitchParameter NoWait { get; set; }
+ ///
+ /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default.
+ ///
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
+ public global::System.Management.Automation.SwitchParameter PassThru { get; set; }
+
///
/// The instance of the that the remote call will use.
///
@@ -179,6 +177,16 @@ public partial class InvokeAzEmailServiceInitiateDomainVerification_InitiateViaI
partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow);
+ ///
+ /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens
+ /// on that response. Implement this method in a partial class to enable this behavior
+ ///
+ /// the raw response message as an global::System.Net.Http.HttpResponseMessage.
+ /// /// Determines if the rest of the onOk method should be processed, or if the method should return
+ /// immediately (set to true to skip further processing )
+
+ partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow);
+
///
/// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet)
///
@@ -224,11 +232,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EmailService.Cmdlets.InvokeAzEmailServ
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EmailService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
if (telemetryInfo != null)
{
@@ -446,7 +449,7 @@ protected override void ProcessRecord()
if (EmailServiceInputObject?.Id != null)
{
this.EmailServiceInputObject.Id += $"/domains/{(global::System.Uri.EscapeDataString(this.DomainName.ToString()))}";
- await this.Client.DomainsInitiateVerificationViaIdentity(EmailServiceInputObject.Id, _parametersBody, onDefault, this, Pipeline);
+ await this.Client.DomainsInitiateVerificationViaIdentity(EmailServiceInputObject.Id, _parametersBody, onOk, onDefault, this, Pipeline);
}
else
{
@@ -463,7 +466,7 @@ protected override void ProcessRecord()
{
ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("EmailServiceInputObject has null value for EmailServiceInputObject.EmailServiceName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, EmailServiceInputObject) );
}
- await this.Client.DomainsInitiateVerification(EmailServiceInputObject.SubscriptionId ?? null, EmailServiceInputObject.ResourceGroupName ?? null, EmailServiceInputObject.EmailServiceName ?? null, DomainName, _parametersBody, onDefault, this, Pipeline);
+ await this.Client.DomainsInitiateVerification(EmailServiceInputObject.SubscriptionId ?? null, EmailServiceInputObject.ResourceGroupName ?? null, EmailServiceInputObject.EmailServiceName ?? null, DomainName, _parametersBody, onOk, onDefault, this, Pipeline);
}
await ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
@@ -544,5 +547,29 @@ protected override void StopProcessing()
}
}
}
+
+ /// a delegate that is called when the remote service returns 200 (OK).
+ /// the raw response message as an global::System.Net.Http.HttpResponseMessage.
+ ///
+ /// A that will be complete when handling of the method is completed.
+ ///
+ private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage)
+ {
+ using( NoSynchronizationContext )
+ {
+ var _returnNow = global::System.Threading.Tasks.Task.FromResult(false);
+ overrideOnOk(responseMessage, ref _returnNow);
+ // if overrideOnOk has returned true, then return right away.
+ if ((null != _returnNow && await _returnNow))
+ {
+ return ;
+ }
+ // onOk - response for 200 /
+ if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru"))
+ {
+ WriteObject(true);
+ }
+ }
+ }
}
}
\ No newline at end of file
diff --git a/generated/Communication/EmailService.Autorest/generated/cmdlets/InvokeAzEmailServiceInitiateDomainVerification_InitiateViaIdentityExpanded.cs b/generated/Communication/EmailService.Autorest/generated/cmdlets/InvokeAzEmailServiceInitiateDomainVerification_InitiateViaIdentityExpanded.cs
index bc6ec3f586d3..60f22fd2ed4c 100644
--- a/generated/Communication/EmailService.Autorest/generated/cmdlets/InvokeAzEmailServiceInitiateDomainVerification_InitiateViaIdentityExpanded.cs
+++ b/generated/Communication/EmailService.Autorest/generated/cmdlets/InvokeAzEmailServiceInitiateDomainVerification_InitiateViaIdentityExpanded.cs
@@ -40,18 +40,9 @@ public partial class InvokeAzEmailServiceInitiateDomainVerification_InitiateViaI
/// A dictionary to carry over additional data for pipeline.
private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary();
- /// A buffer to record first returned object in response.
- private object _firstResponse = null;
-
/// Input parameter for verification APIs
private Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationParameter _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.VerificationParameter();
- ///
- /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object.
- /// Two means multiple returned objects in response.
- ///
- private int _responseSize = 0;
-
/// when specified, runs this cmdlet as a PowerShell job
[global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")]
[global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
@@ -120,6 +111,13 @@ public partial class InvokeAzEmailServiceInitiateDomainVerification_InitiateViaI
[global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
public global::System.Management.Automation.SwitchParameter NoWait { get; set; }
+ ///
+ /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default.
+ ///
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
+ public global::System.Management.Automation.SwitchParameter PassThru { get; set; }
+
///
/// The instance of the that the remote call will use.
///
@@ -165,6 +163,16 @@ public partial class InvokeAzEmailServiceInitiateDomainVerification_InitiateViaI
partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow);
+ ///
+ /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens
+ /// on that response. Implement this method in a partial class to enable this behavior
+ ///
+ /// the raw response message as an global::System.Net.Http.HttpResponseMessage.
+ /// /// Determines if the rest of the onOk method should be processed, or if the method should return
+ /// immediately (set to true to skip further processing )
+
+ partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow);
+
///
/// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet)
///
@@ -209,11 +217,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EmailService.Cmdlets.InvokeAzEmailServ
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EmailService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
if (telemetryInfo != null)
{
@@ -430,7 +433,7 @@ protected override void ProcessRecord()
await ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
if (InputObject?.Id != null)
{
- await this.Client.DomainsInitiateVerificationViaIdentity(InputObject.Id, _parametersBody, onDefault, this, Pipeline);
+ await this.Client.DomainsInitiateVerificationViaIdentity(InputObject.Id, _parametersBody, onOk, onDefault, this, Pipeline);
}
else
{
@@ -451,7 +454,7 @@ protected override void ProcessRecord()
{
ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DomainName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) );
}
- await this.Client.DomainsInitiateVerification(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.EmailServiceName ?? null, InputObject.DomainName ?? null, _parametersBody, onDefault, this, Pipeline);
+ await this.Client.DomainsInitiateVerification(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.EmailServiceName ?? null, InputObject.DomainName ?? null, _parametersBody, onOk, onDefault, this, Pipeline);
}
await ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
@@ -532,5 +535,29 @@ protected override void StopProcessing()
}
}
}
+
+ /// a delegate that is called when the remote service returns 200 (OK).
+ /// the raw response message as an global::System.Net.Http.HttpResponseMessage.
+ ///
+ /// A that will be complete when handling of the method is completed.
+ ///
+ private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage)
+ {
+ using( NoSynchronizationContext )
+ {
+ var _returnNow = global::System.Threading.Tasks.Task.FromResult(false);
+ overrideOnOk(responseMessage, ref _returnNow);
+ // if overrideOnOk has returned true, then return right away.
+ if ((null != _returnNow && await _returnNow))
+ {
+ return ;
+ }
+ // onOk - response for 200 /
+ if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru"))
+ {
+ WriteObject(true);
+ }
+ }
+ }
}
}
\ No newline at end of file
diff --git a/generated/Communication/EmailService.Autorest/generated/cmdlets/InvokeAzEmailServiceInitiateDomainVerification_InitiateViaJsonFilePath.cs b/generated/Communication/EmailService.Autorest/generated/cmdlets/InvokeAzEmailServiceInitiateDomainVerification_InitiateViaJsonFilePath.cs
index 1111a0790691..ae07c79bd695 100644
--- a/generated/Communication/EmailService.Autorest/generated/cmdlets/InvokeAzEmailServiceInitiateDomainVerification_InitiateViaJsonFilePath.cs
+++ b/generated/Communication/EmailService.Autorest/generated/cmdlets/InvokeAzEmailServiceInitiateDomainVerification_InitiateViaJsonFilePath.cs
@@ -41,17 +41,8 @@ public partial class InvokeAzEmailServiceInitiateDomainVerification_InitiateViaJ
/// A dictionary to carry over additional data for pipeline.
private 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.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
@@ -153,6 +144,13 @@ public partial class InvokeAzEmailServiceInitiateDomainVerification_InitiateViaJ
[global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
public global::System.Management.Automation.SwitchParameter NoWait { get; set; }
+ ///
+ /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default.
+ ///
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
+ public global::System.Management.Automation.SwitchParameter PassThru { get; set; }
+
///
/// The instance of the that the remote call will use.
///
@@ -219,6 +217,16 @@ public partial class InvokeAzEmailServiceInitiateDomainVerification_InitiateViaJ
partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow);
+ ///
+ /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens
+ /// on that response. Implement this method in a partial class to enable this behavior
+ ///
+ /// the raw response message as an global::System.Net.Http.HttpResponseMessage.
+ /// /// Determines if the rest of the onOk method should be processed, or if the method should return
+ /// immediately (set to true to skip further processing )
+
+ partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow);
+
///
/// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet)
///
@@ -267,11 +275,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EmailService.Cmdlets.InvokeAzEmailServ
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EmailService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
if (telemetryInfo != null)
{
@@ -486,7 +489,7 @@ protected override void ProcessRecord()
try
{
await ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
- await this.Client.DomainsInitiateVerificationViaJsonString(SubscriptionId, ResourceGroupName, EmailServiceName, DomainName, _jsonString, onDefault, this, Pipeline);
+ await this.Client.DomainsInitiateVerificationViaJsonString(SubscriptionId, ResourceGroupName, EmailServiceName, DomainName, _jsonString, onOk, onDefault, this, Pipeline);
await ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
catch (Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.UndeclaredResponseException urexception)
@@ -566,5 +569,29 @@ protected override void StopProcessing()
}
}
}
+
+ /// a delegate that is called when the remote service returns 200 (OK).
+ /// the raw response message as an global::System.Net.Http.HttpResponseMessage.
+ ///
+ /// A that will be complete when handling of the method is completed.
+ ///
+ private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage)
+ {
+ using( NoSynchronizationContext )
+ {
+ var _returnNow = global::System.Threading.Tasks.Task.FromResult(false);
+ overrideOnOk(responseMessage, ref _returnNow);
+ // if overrideOnOk has returned true, then return right away.
+ if ((null != _returnNow && await _returnNow))
+ {
+ return ;
+ }
+ // onOk - response for 200 /
+ if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru"))
+ {
+ WriteObject(true);
+ }
+ }
+ }
}
}
\ No newline at end of file
diff --git a/generated/Communication/EmailService.Autorest/generated/cmdlets/InvokeAzEmailServiceInitiateDomainVerification_InitiateViaJsonString.cs b/generated/Communication/EmailService.Autorest/generated/cmdlets/InvokeAzEmailServiceInitiateDomainVerification_InitiateViaJsonString.cs
index 5abcdca32d11..d09b220665fa 100644
--- a/generated/Communication/EmailService.Autorest/generated/cmdlets/InvokeAzEmailServiceInitiateDomainVerification_InitiateViaJsonString.cs
+++ b/generated/Communication/EmailService.Autorest/generated/cmdlets/InvokeAzEmailServiceInitiateDomainVerification_InitiateViaJsonString.cs
@@ -41,15 +41,6 @@ public partial class InvokeAzEmailServiceInitiateDomainVerification_InitiateViaJ
/// A dictionary to carry over additional data for pipeline.
private global::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.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
@@ -151,6 +142,13 @@ public partial class InvokeAzEmailServiceInitiateDomainVerification_InitiateViaJ
[global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
public global::System.Management.Automation.SwitchParameter NoWait { get; set; }
+ ///
+ /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default.
+ ///
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
+ public global::System.Management.Automation.SwitchParameter PassThru { get; set; }
+
///
/// The instance of the that the remote call will use.
///
@@ -217,6 +215,16 @@ public partial class InvokeAzEmailServiceInitiateDomainVerification_InitiateViaJ
partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow);
+ ///
+ /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens
+ /// on that response. Implement this method in a partial class to enable this behavior
+ ///
+ /// the raw response message as an global::System.Net.Http.HttpResponseMessage.
+ /// /// Determines if the rest of the onOk method should be processed, or if the method should return
+ /// immediately (set to true to skip further processing )
+
+ partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow);
+
///
/// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet)
///
@@ -265,11 +273,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EmailService.Cmdlets.InvokeAzEmailServ
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EmailService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
if (telemetryInfo != null)
{
@@ -484,7 +487,7 @@ protected override void ProcessRecord()
try
{
await ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
- await this.Client.DomainsInitiateVerificationViaJsonString(SubscriptionId, ResourceGroupName, EmailServiceName, DomainName, _jsonString, onDefault, this, Pipeline);
+ await this.Client.DomainsInitiateVerificationViaJsonString(SubscriptionId, ResourceGroupName, EmailServiceName, DomainName, _jsonString, onOk, onDefault, this, Pipeline);
await ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
catch (Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.UndeclaredResponseException urexception)
@@ -564,5 +567,29 @@ protected override void StopProcessing()
}
}
}
+
+ /// a delegate that is called when the remote service returns 200 (OK).
+ /// the raw response message as an global::System.Net.Http.HttpResponseMessage.
+ ///
+ /// A that will be complete when handling of the method is completed.
+ ///
+ private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage)
+ {
+ using( NoSynchronizationContext )
+ {
+ var _returnNow = global::System.Threading.Tasks.Task.FromResult(false);
+ overrideOnOk(responseMessage, ref _returnNow);
+ // if overrideOnOk has returned true, then return right away.
+ if ((null != _returnNow && await _returnNow))
+ {
+ return ;
+ }
+ // onOk - response for 200 /
+ if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru"))
+ {
+ WriteObject(true);
+ }
+ }
+ }
}
}
\ No newline at end of file
diff --git a/generated/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceDomain_CreateExpanded.cs b/generated/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceDomain_CreateExpanded.cs
index a669e0041840..b8662db9d3b8 100644
--- a/generated/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceDomain_CreateExpanded.cs
+++ b/generated/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceDomain_CreateExpanded.cs
@@ -42,18 +42,9 @@ public partial class NewAzEmailServiceDomain_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 class representing a Domains resource.
private Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResource _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.DomainResource();
- ///
- /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object.
- /// Two means multiple returned objects in response.
- ///
- private int _responseSize = 0;
-
/// when specified, runs this cmdlet as a PowerShell job
[global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")]
[global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
@@ -319,11 +310,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EmailService.Cmdlets.NewAzEmailService
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EmailService.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.EmailService.Models.IDomainResource
var result = (await response);
- if (null != result)
- {
- if (0 == _responseSize)
- {
- _firstResponse = result;
- _responseSize = 1;
- }
- else
- {
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject());
- }
- WriteObject(result.AddMultipleTypeNameIntoPSObject());
- _responseSize = 2;
- }
- }
+ WriteObject(result, false);
}
}
}
diff --git a/generated/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceDomain_CreateViaIdentityEmailService.cs b/generated/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceDomain_CreateViaIdentityEmailService.cs
index 575f1008793f..c028017bec72 100644
--- a/generated/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceDomain_CreateViaIdentityEmailService.cs
+++ b/generated/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceDomain_CreateViaIdentityEmailService.cs
@@ -42,15 +42,6 @@ public partial class NewAzEmailServiceDomain_CreateViaIdentityEmailService : 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.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
@@ -236,11 +227,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EmailService.Cmdlets.NewAzEmailService
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EmailService.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.EmailService.Models.IDomainResource
var result = (await response);
- if (null != result)
- {
- if (0 == _responseSize)
- {
- _firstResponse = result;
- _responseSize = 1;
- }
- else
- {
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject());
- }
- WriteObject(result.AddMultipleTypeNameIntoPSObject());
- _responseSize = 2;
- }
- }
+ WriteObject(result, false);
}
}
}
diff --git a/generated/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceDomain_CreateViaIdentityEmailServiceExpanded.cs b/generated/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceDomain_CreateViaIdentityEmailServiceExpanded.cs
index 1fbdc13166b2..e3d9da60ef61 100644
--- a/generated/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceDomain_CreateViaIdentityEmailServiceExpanded.cs
+++ b/generated/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceDomain_CreateViaIdentityEmailServiceExpanded.cs
@@ -42,18 +42,9 @@ public partial class NewAzEmailServiceDomain_CreateViaIdentityEmailServiceExpand
/// A dictionary to carry over additional data for pipeline.
private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary();
- /// A buffer to record first returned object in response.
- private object _firstResponse = null;
-
/// A class representing a Domains resource.
private Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResource _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.DomainResource();
- ///
- /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object.
- /// Two means multiple returned objects in response.
- ///
- private int _responseSize = 0;
-
/// when specified, runs this cmdlet as a PowerShell job
[global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")]
[global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
@@ -279,11 +270,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EmailService.Cmdlets.NewAzEmailService
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EmailService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
if (telemetryInfo != null)
{
@@ -621,24 +607,7 @@ protected override void StopProcessing()
// onOk - response for 200 / application/json
// (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResource
var result = (await response);
- if (null != result)
- {
- if (0 == _responseSize)
- {
- _firstResponse = result;
- _responseSize = 1;
- }
- else
- {
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject());
- }
- WriteObject(result.AddMultipleTypeNameIntoPSObject());
- _responseSize = 2;
- }
- }
+ WriteObject(result, false);
}
}
}
diff --git a/generated/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceDomain_CreateViaJsonFilePath.cs b/generated/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceDomain_CreateViaJsonFilePath.cs
index 89602c8c3215..1ee30b0d7e7d 100644
--- a/generated/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceDomain_CreateViaJsonFilePath.cs
+++ b/generated/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceDomain_CreateViaJsonFilePath.cs
@@ -43,17 +43,8 @@ public partial class NewAzEmailServiceDomain_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.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
@@ -280,11 +271,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EmailService.Cmdlets.NewAzEmailService
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EmailService.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.EmailService.Models.IDomainResource
var result = (await response);
- if (null != result)
- {
- if (0 == _responseSize)
- {
- _firstResponse = result;
- _responseSize = 1;
- }
- else
- {
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject());
- }
- WriteObject(result.AddMultipleTypeNameIntoPSObject());
- _responseSize = 2;
- }
- }
+ WriteObject(result, false);
}
}
}
diff --git a/generated/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceDomain_CreateViaJsonString.cs b/generated/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceDomain_CreateViaJsonString.cs
index 02720a66feda..79ac5c2b7ee9 100644
--- a/generated/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceDomain_CreateViaJsonString.cs
+++ b/generated/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceDomain_CreateViaJsonString.cs
@@ -43,15 +43,6 @@ public partial class NewAzEmailServiceDomain_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.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
@@ -278,11 +269,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EmailService.Cmdlets.NewAzEmailService
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EmailService.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.EmailService.Models.IDomainResource
var result = (await response);
- if (null != result)
- {
- if (0 == _responseSize)
- {
- _firstResponse = result;
- _responseSize = 1;
- }
- else
- {
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject());
- }
- WriteObject(result.AddMultipleTypeNameIntoPSObject());
- _responseSize = 2;
- }
- }
+ WriteObject(result, false);
}
}
}
diff --git a/generated/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailService_CreateExpanded.cs b/generated/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailService_CreateExpanded.cs
index 81ec2f14b732..d449ca05bb21 100644
--- a/generated/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailService_CreateExpanded.cs
+++ b/generated/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailService_CreateExpanded.cs
@@ -40,18 +40,9 @@ public partial class NewAzEmailService_CreateExpanded : 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 class representing an EmailService resource.
private Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IEmailServiceResource _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.EmailServiceResource();
- ///
- /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object.
- /// Two means multiple returned objects in response.
- ///
- private int _responseSize = 0;
-
/// when specified, runs this cmdlet as a PowerShell job
[global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")]
[global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
@@ -289,11 +280,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EmailService.Cmdlets.NewAzEmailService
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EmailService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
if (telemetryInfo != null)
{
@@ -609,24 +595,7 @@ protected override void StopProcessing()
// onOk - response for 200 / application/json
// (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IEmailServiceResource
var result = (await response);
- if (null != result)
- {
- if (0 == _responseSize)
- {
- _firstResponse = result;
- _responseSize = 1;
- }
- else
- {
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject());
- }
- WriteObject(result.AddMultipleTypeNameIntoPSObject());
- _responseSize = 2;
- }
- }
+ WriteObject(result, false);
}
}
}
diff --git a/generated/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailService_CreateViaJsonFilePath.cs b/generated/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailService_CreateViaJsonFilePath.cs
index cbe611c31c31..bf71079aea97 100644
--- a/generated/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailService_CreateViaJsonFilePath.cs
+++ b/generated/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailService_CreateViaJsonFilePath.cs
@@ -41,17 +41,8 @@ public partial class NewAzEmailService_CreateViaJsonFilePath : 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;
-
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.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
@@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EmailService.Cmdlets.NewAzEmailService
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EmailService.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.EmailService.Models.IEmailServiceResource
var result = (await response);
- if (null != result)
- {
- if (0 == _responseSize)
- {
- _firstResponse = result;
- _responseSize = 1;
- }
- else
- {
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject());
- }
- WriteObject(result.AddMultipleTypeNameIntoPSObject());
- _responseSize = 2;
- }
- }
+ WriteObject(result, false);
}
}
}
diff --git a/generated/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailService_CreateViaJsonString.cs b/generated/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailService_CreateViaJsonString.cs
index b0867592d58f..441f670be93c 100644
--- a/generated/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailService_CreateViaJsonString.cs
+++ b/generated/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailService_CreateViaJsonString.cs
@@ -41,15 +41,6 @@ public partial class NewAzEmailService_CreateViaJsonString : 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.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
@@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EmailService.Cmdlets.NewAzEmailService
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EmailService.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.EmailService.Models.IEmailServiceResource
var result = (await response);
- if (null != result)
- {
- if (0 == _responseSize)
- {
- _firstResponse = result;
- _responseSize = 1;
- }
- else
- {
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject());
- }
- WriteObject(result.AddMultipleTypeNameIntoPSObject());
- _responseSize = 2;
- }
- }
+ WriteObject(result, false);
}
}
}
diff --git a/generated/Communication/EmailService.Autorest/generated/cmdlets/RemoveAzEmailServiceDomain_Delete.cs b/generated/Communication/EmailService.Autorest/generated/cmdlets/RemoveAzEmailServiceDomain_Delete.cs
index 7df708672282..cd0064e7ff30 100644
--- a/generated/Communication/EmailService.Autorest/generated/cmdlets/RemoveAzEmailServiceDomain_Delete.cs
+++ b/generated/Communication/EmailService.Autorest/generated/cmdlets/RemoveAzEmailServiceDomain_Delete.cs
@@ -40,15 +40,6 @@ public partial class RemoveAzEmailServiceDomain_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.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
@@ -276,11 +267,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EmailService.Cmdlets.RemoveAzEmailServ
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EmailService.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/Communication/EmailService.Autorest/generated/cmdlets/RemoveAzEmailServiceDomain_DeleteViaIdentity.cs b/generated/Communication/EmailService.Autorest/generated/cmdlets/RemoveAzEmailServiceDomain_DeleteViaIdentity.cs
index e4576a0905dc..021cd3be36a5 100644
--- a/generated/Communication/EmailService.Autorest/generated/cmdlets/RemoveAzEmailServiceDomain_DeleteViaIdentity.cs
+++ b/generated/Communication/EmailService.Autorest/generated/cmdlets/RemoveAzEmailServiceDomain_DeleteViaIdentity.cs
@@ -40,15 +40,6 @@ public partial class RemoveAzEmailServiceDomain_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.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
@@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EmailService.Cmdlets.RemoveAzEmailServ
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EmailService.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/Communication/EmailService.Autorest/generated/cmdlets/RemoveAzEmailServiceDomain_DeleteViaIdentityEmailService.cs b/generated/Communication/EmailService.Autorest/generated/cmdlets/RemoveAzEmailServiceDomain_DeleteViaIdentityEmailService.cs
index da741d805dbc..b53724f08552 100644
--- a/generated/Communication/EmailService.Autorest/generated/cmdlets/RemoveAzEmailServiceDomain_DeleteViaIdentityEmailService.cs
+++ b/generated/Communication/EmailService.Autorest/generated/cmdlets/RemoveAzEmailServiceDomain_DeleteViaIdentityEmailService.cs
@@ -40,15 +40,6 @@ public partial class RemoveAzEmailServiceDomain_DeleteViaIdentityEmailService :
/// A dictionary to carry over additional data for pipeline.
private global::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.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
@@ -236,11 +227,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EmailService.Cmdlets.RemoveAzEmailServ
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EmailService.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/Communication/EmailService.Autorest/generated/cmdlets/RemoveAzEmailServiceSenderUsername_Delete.cs b/generated/Communication/EmailService.Autorest/generated/cmdlets/RemoveAzEmailServiceSenderUsername_Delete.cs
index f3169dfa851e..73cd88ec1810 100644
--- a/generated/Communication/EmailService.Autorest/generated/cmdlets/RemoveAzEmailServiceSenderUsername_Delete.cs
+++ b/generated/Communication/EmailService.Autorest/generated/cmdlets/RemoveAzEmailServiceSenderUsername_Delete.cs
@@ -522,7 +522,7 @@ protected override void StopProcessing()
return ;
}
// onNoContent - response for 204 /
- if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru"))
+ if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru"))
{
WriteObject(true);
}
@@ -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/Communication/EmailService.Autorest/generated/cmdlets/RemoveAzEmailServiceSenderUsername_DeleteViaIdentity.cs b/generated/Communication/EmailService.Autorest/generated/cmdlets/RemoveAzEmailServiceSenderUsername_DeleteViaIdentity.cs
index 5a72caa8370f..2135b1d6756b 100644
--- a/generated/Communication/EmailService.Autorest/generated/cmdlets/RemoveAzEmailServiceSenderUsername_DeleteViaIdentity.cs
+++ b/generated/Communication/EmailService.Autorest/generated/cmdlets/RemoveAzEmailServiceSenderUsername_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/Communication/EmailService.Autorest/generated/cmdlets/RemoveAzEmailServiceSenderUsername_DeleteViaIdentityDomain.cs b/generated/Communication/EmailService.Autorest/generated/cmdlets/RemoveAzEmailServiceSenderUsername_DeleteViaIdentityDomain.cs
index f85d2c4bbb1e..291b466f3fe8 100644
--- a/generated/Communication/EmailService.Autorest/generated/cmdlets/RemoveAzEmailServiceSenderUsername_DeleteViaIdentityDomain.cs
+++ b/generated/Communication/EmailService.Autorest/generated/cmdlets/RemoveAzEmailServiceSenderUsername_DeleteViaIdentityDomain.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/Communication/EmailService.Autorest/generated/cmdlets/RemoveAzEmailServiceSenderUsername_DeleteViaIdentityEmailService.cs b/generated/Communication/EmailService.Autorest/generated/cmdlets/RemoveAzEmailServiceSenderUsername_DeleteViaIdentityEmailService.cs
index ef8048b6f3e7..135070380f0c 100644
--- a/generated/Communication/EmailService.Autorest/generated/cmdlets/RemoveAzEmailServiceSenderUsername_DeleteViaIdentityEmailService.cs
+++ b/generated/Communication/EmailService.Autorest/generated/cmdlets/RemoveAzEmailServiceSenderUsername_DeleteViaIdentityEmailService.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/Communication/EmailService.Autorest/generated/cmdlets/RemoveAzEmailService_Delete.cs b/generated/Communication/EmailService.Autorest/generated/cmdlets/RemoveAzEmailService_Delete.cs
index 8b8ba7ce8512..9a6f364afcb7 100644
--- a/generated/Communication/EmailService.Autorest/generated/cmdlets/RemoveAzEmailService_Delete.cs
+++ b/generated/Communication/EmailService.Autorest/generated/cmdlets/RemoveAzEmailService_Delete.cs
@@ -40,15 +40,6 @@ public partial class RemoveAzEmailService_Delete : 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;
-
- ///
- /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object.
- /// Two means multiple returned objects in response.
- ///
- private int _responseSize = 0;
-
/// when specified, runs this cmdlet as a PowerShell job
[global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")]
[global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
@@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EmailService.Cmdlets.RemoveAzEmailServ
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EmailService.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/Communication/EmailService.Autorest/generated/cmdlets/RemoveAzEmailService_DeleteViaIdentity.cs b/generated/Communication/EmailService.Autorest/generated/cmdlets/RemoveAzEmailService_DeleteViaIdentity.cs
index 92519e910d8f..0ad9ffbe3e3b 100644
--- a/generated/Communication/EmailService.Autorest/generated/cmdlets/RemoveAzEmailService_DeleteViaIdentity.cs
+++ b/generated/Communication/EmailService.Autorest/generated/cmdlets/RemoveAzEmailService_DeleteViaIdentity.cs
@@ -40,15 +40,6 @@ public partial class RemoveAzEmailService_DeleteViaIdentity : 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.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
@@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EmailService.Cmdlets.RemoveAzEmailServ
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EmailService.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/Communication/EmailService.Autorest/generated/cmdlets/StopAzEmailServiceDomainVerification_Cancel.cs b/generated/Communication/EmailService.Autorest/generated/cmdlets/StopAzEmailServiceDomainVerification_Cancel.cs
index 999cc1eaa129..005a50350a3d 100644
--- a/generated/Communication/EmailService.Autorest/generated/cmdlets/StopAzEmailServiceDomainVerification_Cancel.cs
+++ b/generated/Communication/EmailService.Autorest/generated/cmdlets/StopAzEmailServiceDomainVerification_Cancel.cs
@@ -40,15 +40,6 @@ public partial class StopAzEmailServiceDomainVerification_Cancel : 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.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
@@ -151,6 +142,13 @@ public partial class StopAzEmailServiceDomainVerification_Cancel : global::Syste
[global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Body)]
public Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationParameter Parameter { get => this._parameter; set => this._parameter = value; }
+ ///
+ /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default.
+ ///
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
+ public global::System.Management.Automation.SwitchParameter PassThru { get; set; }
+
///
/// The instance of the that the remote call will use.
///
@@ -217,6 +215,16 @@ public partial class StopAzEmailServiceDomainVerification_Cancel : global::Syste
partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow);
+ ///
+ /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens
+ /// on that response. Implement this method in a partial class to enable this behavior
+ ///
+ /// the raw response message as an global::System.Net.Http.HttpResponseMessage.
+ /// /// Determines if the rest of the onOk method should be processed, or if the method should return
+ /// immediately (set to true to skip further processing )
+
+ partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow);
+
///
/// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet)
///
@@ -263,11 +271,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EmailService.Cmdlets.StopAzEmailServic
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EmailService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
if (telemetryInfo != null)
{
@@ -473,7 +476,7 @@ protected override void ProcessRecord()
try
{
await ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
- await this.Client.DomainsCancelVerification(SubscriptionId, ResourceGroupName, EmailServiceName, DomainName, Parameter, onDefault, this, Pipeline);
+ await this.Client.DomainsCancelVerification(SubscriptionId, ResourceGroupName, EmailServiceName, DomainName, Parameter, onOk, onDefault, this, Pipeline);
await ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
catch (Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.UndeclaredResponseException urexception)
@@ -561,5 +564,29 @@ protected override void StopProcessing()
}
}
}
+
+ /// a delegate that is called when the remote service returns 200 (OK).
+ /// the raw response message as an global::System.Net.Http.HttpResponseMessage.
+ ///
+ /// A that will be complete when handling of the method is completed.
+ ///
+ private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage)
+ {
+ using( NoSynchronizationContext )
+ {
+ var _returnNow = global::System.Threading.Tasks.Task.FromResult(false);
+ overrideOnOk(responseMessage, ref _returnNow);
+ // if overrideOnOk has returned true, then return right away.
+ if ((null != _returnNow && await _returnNow))
+ {
+ return ;
+ }
+ // onOk - response for 200 /
+ if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru"))
+ {
+ WriteObject(true);
+ }
+ }
+ }
}
}
\ No newline at end of file
diff --git a/generated/Communication/EmailService.Autorest/generated/cmdlets/StopAzEmailServiceDomainVerification_CancelExpanded.cs b/generated/Communication/EmailService.Autorest/generated/cmdlets/StopAzEmailServiceDomainVerification_CancelExpanded.cs
index aacda3776b7d..44af49811530 100644
--- a/generated/Communication/EmailService.Autorest/generated/cmdlets/StopAzEmailServiceDomainVerification_CancelExpanded.cs
+++ b/generated/Communication/EmailService.Autorest/generated/cmdlets/StopAzEmailServiceDomainVerification_CancelExpanded.cs
@@ -40,18 +40,9 @@ public partial class StopAzEmailServiceDomainVerification_CancelExpanded : 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;
-
/// Input parameter for verification APIs
private Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationParameter _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.VerificationParameter();
- ///
- /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object.
- /// Two means multiple returned objects in response.
- ///
- private int _responseSize = 0;
-
/// when specified, runs this cmdlet as a PowerShell job
[global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")]
[global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
@@ -140,6 +131,13 @@ public partial class StopAzEmailServiceDomainVerification_CancelExpanded : globa
[global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
public global::System.Management.Automation.SwitchParameter NoWait { get; set; }
+ ///
+ /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default.
+ ///
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
+ public global::System.Management.Automation.SwitchParameter PassThru { get; set; }
+
///
/// The instance of the that the remote call will use.
///
@@ -218,6 +216,16 @@ public partial class StopAzEmailServiceDomainVerification_CancelExpanded : globa
partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow);
+ ///
+ /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens
+ /// on that response. Implement this method in a partial class to enable this behavior
+ ///
+ /// the raw response message as an global::System.Net.Http.HttpResponseMessage.
+ /// /// Determines if the rest of the onOk method should be processed, or if the method should return
+ /// immediately (set to true to skip further processing )
+
+ partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow);
+
///
/// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet)
///
@@ -264,11 +272,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EmailService.Cmdlets.StopAzEmailServic
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EmailService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
if (telemetryInfo != null)
{
@@ -474,7 +477,7 @@ protected override void ProcessRecord()
try
{
await ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
- await this.Client.DomainsCancelVerification(SubscriptionId, ResourceGroupName, EmailServiceName, DomainName, _parametersBody, onDefault, this, Pipeline);
+ await this.Client.DomainsCancelVerification(SubscriptionId, ResourceGroupName, EmailServiceName, DomainName, _parametersBody, onOk, onDefault, this, Pipeline);
await ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
catch (Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.UndeclaredResponseException urexception)
@@ -562,5 +565,29 @@ protected override void StopProcessing()
}
}
}
+
+ /// a delegate that is called when the remote service returns 200 (OK).
+ /// the raw response message as an global::System.Net.Http.HttpResponseMessage.
+ ///
+ /// A that will be complete when handling of the method is completed.
+ ///
+ private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage)
+ {
+ using( NoSynchronizationContext )
+ {
+ var _returnNow = global::System.Threading.Tasks.Task.FromResult(false);
+ overrideOnOk(responseMessage, ref _returnNow);
+ // if overrideOnOk has returned true, then return right away.
+ if ((null != _returnNow && await _returnNow))
+ {
+ return ;
+ }
+ // onOk - response for 200 /
+ if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru"))
+ {
+ WriteObject(true);
+ }
+ }
+ }
}
}
\ No newline at end of file
diff --git a/generated/Communication/EmailService.Autorest/generated/cmdlets/StopAzEmailServiceDomainVerification_CancelViaIdentity.cs b/generated/Communication/EmailService.Autorest/generated/cmdlets/StopAzEmailServiceDomainVerification_CancelViaIdentity.cs
index 6be8d4dddba3..a5084effee6d 100644
--- a/generated/Communication/EmailService.Autorest/generated/cmdlets/StopAzEmailServiceDomainVerification_CancelViaIdentity.cs
+++ b/generated/Communication/EmailService.Autorest/generated/cmdlets/StopAzEmailServiceDomainVerification_CancelViaIdentity.cs
@@ -40,15 +40,6 @@ public partial class StopAzEmailServiceDomainVerification_CancelViaIdentity : 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.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
@@ -131,6 +122,13 @@ public partial class StopAzEmailServiceDomainVerification_CancelViaIdentity : gl
[global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Body)]
public Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationParameter Parameter { get => this._parameter; set => this._parameter = value; }
+ ///
+ /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default.
+ ///
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
+ public global::System.Management.Automation.SwitchParameter PassThru { get; set; }
+
///
/// The instance of the that the remote call will use.
///
@@ -164,6 +162,16 @@ public partial class StopAzEmailServiceDomainVerification_CancelViaIdentity : gl
partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow);
+ ///
+ /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens
+ /// on that response. Implement this method in a partial class to enable this behavior
+ ///
+ /// the raw response message as an global::System.Net.Http.HttpResponseMessage.
+ /// /// Determines if the rest of the onOk method should be processed, or if the method should return
+ /// immediately (set to true to skip further processing )
+
+ partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow);
+
///
/// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet)
///
@@ -206,11 +214,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EmailService.Cmdlets.StopAzEmailServic
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EmailService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
if (telemetryInfo != null)
{
@@ -418,7 +421,7 @@ protected override void ProcessRecord()
await ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
if (InputObject?.Id != null)
{
- await this.Client.DomainsCancelVerificationViaIdentity(InputObject.Id, Parameter, onDefault, this, Pipeline);
+ await this.Client.DomainsCancelVerificationViaIdentity(InputObject.Id, Parameter, onOk, onDefault, this, Pipeline);
}
else
{
@@ -439,7 +442,7 @@ protected override void ProcessRecord()
{
ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DomainName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) );
}
- await this.Client.DomainsCancelVerification(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.EmailServiceName ?? null, InputObject.DomainName ?? null, Parameter, onDefault, this, Pipeline);
+ await this.Client.DomainsCancelVerification(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.EmailServiceName ?? null, InputObject.DomainName ?? null, Parameter, onOk, onDefault, this, Pipeline);
}
await ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
@@ -528,5 +531,29 @@ protected override void StopProcessing()
}
}
}
+
+ /// a delegate that is called when the remote service returns 200 (OK).
+ /// the raw response message as an global::System.Net.Http.HttpResponseMessage.
+ ///
+ /// A that will be complete when handling of the method is completed.
+ ///
+ private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage)
+ {
+ using( NoSynchronizationContext )
+ {
+ var _returnNow = global::System.Threading.Tasks.Task.FromResult(false);
+ overrideOnOk(responseMessage, ref _returnNow);
+ // if overrideOnOk has returned true, then return right away.
+ if ((null != _returnNow && await _returnNow))
+ {
+ return ;
+ }
+ // onOk - response for 200 /
+ if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru"))
+ {
+ WriteObject(true);
+ }
+ }
+ }
}
}
\ No newline at end of file
diff --git a/generated/Communication/EmailService.Autorest/generated/cmdlets/StopAzEmailServiceDomainVerification_CancelViaIdentityEmailService.cs b/generated/Communication/EmailService.Autorest/generated/cmdlets/StopAzEmailServiceDomainVerification_CancelViaIdentityEmailService.cs
index 2a9cb94ddd4d..3ef15471bab1 100644
--- a/generated/Communication/EmailService.Autorest/generated/cmdlets/StopAzEmailServiceDomainVerification_CancelViaIdentityEmailService.cs
+++ b/generated/Communication/EmailService.Autorest/generated/cmdlets/StopAzEmailServiceDomainVerification_CancelViaIdentityEmailService.cs
@@ -40,15 +40,6 @@ public partial class StopAzEmailServiceDomainVerification_CancelViaIdentityEmail
/// A dictionary to carry over additional data for pipeline.
private global::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.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
@@ -145,6 +136,13 @@ public partial class StopAzEmailServiceDomainVerification_CancelViaIdentityEmail
[global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Body)]
public Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationParameter Parameter { get => this._parameter; set => this._parameter = value; }
+ ///
+ /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default.
+ ///
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
+ public global::System.Management.Automation.SwitchParameter PassThru { get; set; }
+
///
/// The instance of the that the remote call will use.
///
@@ -178,6 +176,16 @@ public partial class StopAzEmailServiceDomainVerification_CancelViaIdentityEmail
partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow);
+ ///
+ /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens
+ /// on that response. Implement this method in a partial class to enable this behavior
+ ///
+ /// the raw response message as an global::System.Net.Http.HttpResponseMessage.
+ /// /// Determines if the rest of the onOk method should be processed, or if the method should return
+ /// immediately (set to true to skip further processing )
+
+ partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow);
+
///
/// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet)
///
@@ -223,11 +231,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EmailService.Cmdlets.StopAzEmailServic
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EmailService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
if (telemetryInfo != null)
{
@@ -436,7 +439,7 @@ protected override void ProcessRecord()
if (EmailServiceInputObject?.Id != null)
{
this.EmailServiceInputObject.Id += $"/domains/{(global::System.Uri.EscapeDataString(this.DomainName.ToString()))}";
- await this.Client.DomainsCancelVerificationViaIdentity(EmailServiceInputObject.Id, Parameter, onDefault, this, Pipeline);
+ await this.Client.DomainsCancelVerificationViaIdentity(EmailServiceInputObject.Id, Parameter, onOk, onDefault, this, Pipeline);
}
else
{
@@ -453,7 +456,7 @@ protected override void ProcessRecord()
{
ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("EmailServiceInputObject has null value for EmailServiceInputObject.EmailServiceName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, EmailServiceInputObject) );
}
- await this.Client.DomainsCancelVerification(EmailServiceInputObject.SubscriptionId ?? null, EmailServiceInputObject.ResourceGroupName ?? null, EmailServiceInputObject.EmailServiceName ?? null, DomainName, Parameter, onDefault, this, Pipeline);
+ await this.Client.DomainsCancelVerification(EmailServiceInputObject.SubscriptionId ?? null, EmailServiceInputObject.ResourceGroupName ?? null, EmailServiceInputObject.EmailServiceName ?? null, DomainName, Parameter, onOk, onDefault, this, Pipeline);
}
await ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
@@ -543,5 +546,29 @@ protected override void StopProcessing()
}
}
}
+
+ /// a delegate that is called when the remote service returns 200 (OK).
+ /// the raw response message as an global::System.Net.Http.HttpResponseMessage.
+ ///
+ /// A that will be complete when handling of the method is completed.
+ ///
+ private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage)
+ {
+ using( NoSynchronizationContext )
+ {
+ var _returnNow = global::System.Threading.Tasks.Task.FromResult(false);
+ overrideOnOk(responseMessage, ref _returnNow);
+ // if overrideOnOk has returned true, then return right away.
+ if ((null != _returnNow && await _returnNow))
+ {
+ return ;
+ }
+ // onOk - response for 200 /
+ if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru"))
+ {
+ WriteObject(true);
+ }
+ }
+ }
}
}
\ No newline at end of file
diff --git a/generated/Communication/EmailService.Autorest/generated/cmdlets/StopAzEmailServiceDomainVerification_CancelViaIdentityEmailServiceExpanded.cs b/generated/Communication/EmailService.Autorest/generated/cmdlets/StopAzEmailServiceDomainVerification_CancelViaIdentityEmailServiceExpanded.cs
index 018db42933ec..966ad320f926 100644
--- a/generated/Communication/EmailService.Autorest/generated/cmdlets/StopAzEmailServiceDomainVerification_CancelViaIdentityEmailServiceExpanded.cs
+++ b/generated/Communication/EmailService.Autorest/generated/cmdlets/StopAzEmailServiceDomainVerification_CancelViaIdentityEmailServiceExpanded.cs
@@ -40,18 +40,9 @@ public partial class StopAzEmailServiceDomainVerification_CancelViaIdentityEmail
/// A dictionary to carry over additional data for pipeline.
private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary();
- /// A buffer to record first returned object in response.
- private object _firstResponse = null;
-
/// Input parameter for verification APIs
private Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationParameter _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.VerificationParameter();
- ///
- /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object.
- /// Two means multiple returned objects in response.
- ///
- private int _responseSize = 0;
-
/// when specified, runs this cmdlet as a PowerShell job
[global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")]
[global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
@@ -134,6 +125,13 @@ public partial class StopAzEmailServiceDomainVerification_CancelViaIdentityEmail
[global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
public global::System.Management.Automation.SwitchParameter NoWait { get; set; }
+ ///
+ /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default.
+ ///
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
+ public global::System.Management.Automation.SwitchParameter PassThru { get; set; }
+
///
/// The instance of the that the remote call will use.
///
@@ -179,6 +177,16 @@ public partial class StopAzEmailServiceDomainVerification_CancelViaIdentityEmail
partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow);
+ ///
+ /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens
+ /// on that response. Implement this method in a partial class to enable this behavior
+ ///
+ /// the raw response message as an global::System.Net.Http.HttpResponseMessage.
+ /// /// Determines if the rest of the onOk method should be processed, or if the method should return
+ /// immediately (set to true to skip further processing )
+
+ partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow);
+
///
/// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet)
///
@@ -224,11 +232,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EmailService.Cmdlets.StopAzEmailServic
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EmailService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
if (telemetryInfo != null)
{
@@ -437,7 +440,7 @@ protected override void ProcessRecord()
if (EmailServiceInputObject?.Id != null)
{
this.EmailServiceInputObject.Id += $"/domains/{(global::System.Uri.EscapeDataString(this.DomainName.ToString()))}";
- await this.Client.DomainsCancelVerificationViaIdentity(EmailServiceInputObject.Id, _parametersBody, onDefault, this, Pipeline);
+ await this.Client.DomainsCancelVerificationViaIdentity(EmailServiceInputObject.Id, _parametersBody, onOk, onDefault, this, Pipeline);
}
else
{
@@ -454,7 +457,7 @@ protected override void ProcessRecord()
{
ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("EmailServiceInputObject has null value for EmailServiceInputObject.EmailServiceName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, EmailServiceInputObject) );
}
- await this.Client.DomainsCancelVerification(EmailServiceInputObject.SubscriptionId ?? null, EmailServiceInputObject.ResourceGroupName ?? null, EmailServiceInputObject.EmailServiceName ?? null, DomainName, _parametersBody, onDefault, this, Pipeline);
+ await this.Client.DomainsCancelVerification(EmailServiceInputObject.SubscriptionId ?? null, EmailServiceInputObject.ResourceGroupName ?? null, EmailServiceInputObject.EmailServiceName ?? null, DomainName, _parametersBody, onOk, onDefault, this, Pipeline);
}
await ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
@@ -544,5 +547,29 @@ protected override void StopProcessing()
}
}
}
+
+ /// a delegate that is called when the remote service returns 200 (OK).
+ /// the raw response message as an global::System.Net.Http.HttpResponseMessage.
+ ///
+ /// A that will be complete when handling of the method is completed.
+ ///
+ private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage)
+ {
+ using( NoSynchronizationContext )
+ {
+ var _returnNow = global::System.Threading.Tasks.Task.FromResult(false);
+ overrideOnOk(responseMessage, ref _returnNow);
+ // if overrideOnOk has returned true, then return right away.
+ if ((null != _returnNow && await _returnNow))
+ {
+ return ;
+ }
+ // onOk - response for 200 /
+ if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru"))
+ {
+ WriteObject(true);
+ }
+ }
+ }
}
}
\ No newline at end of file
diff --git a/generated/Communication/EmailService.Autorest/generated/cmdlets/StopAzEmailServiceDomainVerification_CancelViaIdentityExpanded.cs b/generated/Communication/EmailService.Autorest/generated/cmdlets/StopAzEmailServiceDomainVerification_CancelViaIdentityExpanded.cs
index 298743219737..32af8bc318a6 100644
--- a/generated/Communication/EmailService.Autorest/generated/cmdlets/StopAzEmailServiceDomainVerification_CancelViaIdentityExpanded.cs
+++ b/generated/Communication/EmailService.Autorest/generated/cmdlets/StopAzEmailServiceDomainVerification_CancelViaIdentityExpanded.cs
@@ -40,18 +40,9 @@ public partial class StopAzEmailServiceDomainVerification_CancelViaIdentityExpan
/// A dictionary to carry over additional data for pipeline.
private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary();
- /// A buffer to record first returned object in response.
- private object _firstResponse = null;
-
/// Input parameter for verification APIs
private Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IVerificationParameter _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.VerificationParameter();
- ///
- /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object.
- /// Two means multiple returned objects in response.
- ///
- private int _responseSize = 0;
-
/// when specified, runs this cmdlet as a PowerShell job
[global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")]
[global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
@@ -120,6 +111,13 @@ public partial class StopAzEmailServiceDomainVerification_CancelViaIdentityExpan
[global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
public global::System.Management.Automation.SwitchParameter NoWait { get; set; }
+ ///
+ /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default.
+ ///
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
+ public global::System.Management.Automation.SwitchParameter PassThru { get; set; }
+
///
/// The instance of the that the remote call will use.
///
@@ -165,6 +163,16 @@ public partial class StopAzEmailServiceDomainVerification_CancelViaIdentityExpan
partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow);
+ ///
+ /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens
+ /// on that response. Implement this method in a partial class to enable this behavior
+ ///
+ /// the raw response message as an global::System.Net.Http.HttpResponseMessage.
+ /// /// Determines if the rest of the onOk method should be processed, or if the method should return
+ /// immediately (set to true to skip further processing )
+
+ partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow);
+
///
/// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet)
///
@@ -209,11 +217,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EmailService.Cmdlets.StopAzEmailServic
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EmailService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
if (telemetryInfo != null)
{
@@ -421,7 +424,7 @@ protected override void ProcessRecord()
await ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
if (InputObject?.Id != null)
{
- await this.Client.DomainsCancelVerificationViaIdentity(InputObject.Id, _parametersBody, onDefault, this, Pipeline);
+ await this.Client.DomainsCancelVerificationViaIdentity(InputObject.Id, _parametersBody, onOk, onDefault, this, Pipeline);
}
else
{
@@ -442,7 +445,7 @@ protected override void ProcessRecord()
{
ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DomainName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) );
}
- await this.Client.DomainsCancelVerification(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.EmailServiceName ?? null, InputObject.DomainName ?? null, _parametersBody, onDefault, this, Pipeline);
+ await this.Client.DomainsCancelVerification(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.EmailServiceName ?? null, InputObject.DomainName ?? null, _parametersBody, onOk, onDefault, this, Pipeline);
}
await ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
@@ -532,5 +535,29 @@ protected override void StopProcessing()
}
}
}
+
+ /// a delegate that is called when the remote service returns 200 (OK).
+ /// the raw response message as an global::System.Net.Http.HttpResponseMessage.
+ ///
+ /// A that will be complete when handling of the method is completed.
+ ///
+ private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage)
+ {
+ using( NoSynchronizationContext )
+ {
+ var _returnNow = global::System.Threading.Tasks.Task.FromResult(false);
+ overrideOnOk(responseMessage, ref _returnNow);
+ // if overrideOnOk has returned true, then return right away.
+ if ((null != _returnNow && await _returnNow))
+ {
+ return ;
+ }
+ // onOk - response for 200 /
+ if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru"))
+ {
+ WriteObject(true);
+ }
+ }
+ }
}
}
\ No newline at end of file
diff --git a/generated/Communication/EmailService.Autorest/generated/cmdlets/StopAzEmailServiceDomainVerification_CancelViaJsonFilePath.cs b/generated/Communication/EmailService.Autorest/generated/cmdlets/StopAzEmailServiceDomainVerification_CancelViaJsonFilePath.cs
index a86249e99c7e..91a7c673846c 100644
--- a/generated/Communication/EmailService.Autorest/generated/cmdlets/StopAzEmailServiceDomainVerification_CancelViaJsonFilePath.cs
+++ b/generated/Communication/EmailService.Autorest/generated/cmdlets/StopAzEmailServiceDomainVerification_CancelViaJsonFilePath.cs
@@ -41,17 +41,8 @@ public partial class StopAzEmailServiceDomainVerification_CancelViaJsonFilePath
/// A dictionary to carry over additional data for pipeline.
private 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.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
@@ -153,6 +144,13 @@ public partial class StopAzEmailServiceDomainVerification_CancelViaJsonFilePath
[global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
public global::System.Management.Automation.SwitchParameter NoWait { get; set; }
+ ///
+ /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default.
+ ///
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
+ public global::System.Management.Automation.SwitchParameter PassThru { get; set; }
+
///
/// The instance of the that the remote call will use.
///
@@ -219,6 +217,16 @@ public partial class StopAzEmailServiceDomainVerification_CancelViaJsonFilePath
partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow);
+ ///
+ /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens
+ /// on that response. Implement this method in a partial class to enable this behavior
+ ///
+ /// the raw response message as an global::System.Net.Http.HttpResponseMessage.
+ /// /// Determines if the rest of the onOk method should be processed, or if the method should return
+ /// immediately (set to true to skip further processing )
+
+ partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow);
+
///
/// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet)
///
@@ -267,11 +275,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EmailService.Cmdlets.StopAzEmailServic
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EmailService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
if (telemetryInfo != null)
{
@@ -477,7 +480,7 @@ protected override void ProcessRecord()
try
{
await ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
- await this.Client.DomainsCancelVerificationViaJsonString(SubscriptionId, ResourceGroupName, EmailServiceName, DomainName, _jsonString, onDefault, this, Pipeline);
+ await this.Client.DomainsCancelVerificationViaJsonString(SubscriptionId, ResourceGroupName, EmailServiceName, DomainName, _jsonString, onOk, onDefault, this, Pipeline);
await ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
catch (Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.UndeclaredResponseException urexception)
@@ -565,5 +568,29 @@ protected override void StopProcessing()
}
}
}
+
+ /// a delegate that is called when the remote service returns 200 (OK).
+ /// the raw response message as an global::System.Net.Http.HttpResponseMessage.
+ ///
+ /// A that will be complete when handling of the method is completed.
+ ///
+ private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage)
+ {
+ using( NoSynchronizationContext )
+ {
+ var _returnNow = global::System.Threading.Tasks.Task.FromResult(false);
+ overrideOnOk(responseMessage, ref _returnNow);
+ // if overrideOnOk has returned true, then return right away.
+ if ((null != _returnNow && await _returnNow))
+ {
+ return ;
+ }
+ // onOk - response for 200 /
+ if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru"))
+ {
+ WriteObject(true);
+ }
+ }
+ }
}
}
\ No newline at end of file
diff --git a/generated/Communication/EmailService.Autorest/generated/cmdlets/StopAzEmailServiceDomainVerification_CancelViaJsonString.cs b/generated/Communication/EmailService.Autorest/generated/cmdlets/StopAzEmailServiceDomainVerification_CancelViaJsonString.cs
index 76bc461026d9..73f5a379271d 100644
--- a/generated/Communication/EmailService.Autorest/generated/cmdlets/StopAzEmailServiceDomainVerification_CancelViaJsonString.cs
+++ b/generated/Communication/EmailService.Autorest/generated/cmdlets/StopAzEmailServiceDomainVerification_CancelViaJsonString.cs
@@ -41,15 +41,6 @@ public partial class StopAzEmailServiceDomainVerification_CancelViaJsonString :
/// A dictionary to carry over additional data for pipeline.
private global::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.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
@@ -151,6 +142,13 @@ public partial class StopAzEmailServiceDomainVerification_CancelViaJsonString :
[global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
public global::System.Management.Automation.SwitchParameter NoWait { get; set; }
+ ///
+ /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default.
+ ///
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
+ public global::System.Management.Automation.SwitchParameter PassThru { get; set; }
+
///
/// The instance of the that the remote call will use.
///
@@ -217,6 +215,16 @@ public partial class StopAzEmailServiceDomainVerification_CancelViaJsonString :
partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow);
+ ///
+ /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens
+ /// on that response. Implement this method in a partial class to enable this behavior
+ ///
+ /// the raw response message as an global::System.Net.Http.HttpResponseMessage.
+ /// /// Determines if the rest of the onOk method should be processed, or if the method should return
+ /// immediately (set to true to skip further processing )
+
+ partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow);
+
///
/// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet)
///
@@ -265,11 +273,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EmailService.Cmdlets.StopAzEmailServic
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EmailService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
if (telemetryInfo != null)
{
@@ -475,7 +478,7 @@ protected override void ProcessRecord()
try
{
await ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
- await this.Client.DomainsCancelVerificationViaJsonString(SubscriptionId, ResourceGroupName, EmailServiceName, DomainName, _jsonString, onDefault, this, Pipeline);
+ await this.Client.DomainsCancelVerificationViaJsonString(SubscriptionId, ResourceGroupName, EmailServiceName, DomainName, _jsonString, onOk, onDefault, this, Pipeline);
await ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
catch (Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.UndeclaredResponseException urexception)
@@ -563,5 +566,29 @@ protected override void StopProcessing()
}
}
}
+
+ /// a delegate that is called when the remote service returns 200 (OK).
+ /// the raw response message as an global::System.Net.Http.HttpResponseMessage.
+ ///
+ /// A that will be complete when handling of the method is completed.
+ ///
+ private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage)
+ {
+ using( NoSynchronizationContext )
+ {
+ var _returnNow = global::System.Threading.Tasks.Task.FromResult(false);
+ overrideOnOk(responseMessage, ref _returnNow);
+ // if overrideOnOk has returned true, then return right away.
+ if ((null != _returnNow && await _returnNow))
+ {
+ return ;
+ }
+ // onOk - response for 200 /
+ if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru"))
+ {
+ WriteObject(true);
+ }
+ }
+ }
}
}
\ No newline at end of file
diff --git a/generated/Communication/EmailService.Autorest/generated/cmdlets/UpdateAzEmailServiceDomain_UpdateExpanded.cs b/generated/Communication/EmailService.Autorest/generated/cmdlets/UpdateAzEmailServiceDomain_UpdateExpanded.cs
index a5d8addbf5ff..d0a8e13807d5 100644
--- a/generated/Communication/EmailService.Autorest/generated/cmdlets/UpdateAzEmailServiceDomain_UpdateExpanded.cs
+++ b/generated/Communication/EmailService.Autorest/generated/cmdlets/UpdateAzEmailServiceDomain_UpdateExpanded.cs
@@ -40,18 +40,9 @@ public partial class UpdateAzEmailServiceDomain_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 class that describes the PATCH request parameters of a Domains resource.
private Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IUpdateDomainRequestParameters _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.UpdateDomainRequestParameters();
- ///
- /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object.
- /// Two means multiple returned objects in response.
- ///
- private int _responseSize = 0;
-
/// when specified, runs this cmdlet as a PowerShell job
[global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")]
[global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
@@ -291,11 +282,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EmailService.Cmdlets.UpdateAzEmailServ
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EmailService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
if (telemetryInfo != null)
{
@@ -611,24 +597,7 @@ public UpdateAzEmailServiceDomain_UpdateExpanded()
// onOk - response for 200 / application/json
// (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResource
var result = (await response);
- if (null != result)
- {
- if (0 == _responseSize)
- {
- _firstResponse = result;
- _responseSize = 1;
- }
- else
- {
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject());
- }
- WriteObject(result.AddMultipleTypeNameIntoPSObject());
- _responseSize = 2;
- }
- }
+ WriteObject(result, false);
}
}
}
diff --git a/generated/Communication/EmailService.Autorest/generated/cmdlets/UpdateAzEmailServiceDomain_UpdateViaIdentityEmailService.cs b/generated/Communication/EmailService.Autorest/generated/cmdlets/UpdateAzEmailServiceDomain_UpdateViaIdentityEmailService.cs
index be1816d25a83..a23991f2a200 100644
--- a/generated/Communication/EmailService.Autorest/generated/cmdlets/UpdateAzEmailServiceDomain_UpdateViaIdentityEmailService.cs
+++ b/generated/Communication/EmailService.Autorest/generated/cmdlets/UpdateAzEmailServiceDomain_UpdateViaIdentityEmailService.cs
@@ -40,15 +40,6 @@ public partial class UpdateAzEmailServiceDomain_UpdateViaIdentityEmailService :
/// A dictionary to carry over additional data for pipeline.
private global::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.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
@@ -236,11 +227,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EmailService.Cmdlets.UpdateAzEmailServ
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EmailService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
if (telemetryInfo != null)
{
@@ -577,24 +563,7 @@ public UpdateAzEmailServiceDomain_UpdateViaIdentityEmailService()
// onOk - response for 200 / application/json
// (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResource
var result = (await response);
- if (null != result)
- {
- if (0 == _responseSize)
- {
- _firstResponse = result;
- _responseSize = 1;
- }
- else
- {
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject());
- }
- WriteObject(result.AddMultipleTypeNameIntoPSObject());
- _responseSize = 2;
- }
- }
+ WriteObject(result, false);
}
}
}
diff --git a/generated/Communication/EmailService.Autorest/generated/cmdlets/UpdateAzEmailServiceDomain_UpdateViaIdentityEmailServiceExpanded.cs b/generated/Communication/EmailService.Autorest/generated/cmdlets/UpdateAzEmailServiceDomain_UpdateViaIdentityEmailServiceExpanded.cs
index c91844615fd2..ab40a00acc71 100644
--- a/generated/Communication/EmailService.Autorest/generated/cmdlets/UpdateAzEmailServiceDomain_UpdateViaIdentityEmailServiceExpanded.cs
+++ b/generated/Communication/EmailService.Autorest/generated/cmdlets/UpdateAzEmailServiceDomain_UpdateViaIdentityEmailServiceExpanded.cs
@@ -40,18 +40,9 @@ public partial class UpdateAzEmailServiceDomain_UpdateViaIdentityEmailServiceExp
/// A dictionary to carry over additional data for pipeline.
private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary();
- /// A buffer to record first returned object in response.
- private object _firstResponse = null;
-
/// A class that describes the PATCH request parameters of a Domains resource.
private Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IUpdateDomainRequestParameters _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.UpdateDomainRequestParameters();
- ///
- /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object.
- /// Two means multiple returned objects in response.
- ///
- private int _responseSize = 0;
-
/// when specified, runs this cmdlet as a PowerShell job
[global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")]
[global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
@@ -251,11 +242,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EmailService.Cmdlets.UpdateAzEmailServ
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EmailService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
if (telemetryInfo != null)
{
@@ -593,24 +579,7 @@ public UpdateAzEmailServiceDomain_UpdateViaIdentityEmailServiceExpanded()
// onOk - response for 200 / application/json
// (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResource
var result = (await response);
- if (null != result)
- {
- if (0 == _responseSize)
- {
- _firstResponse = result;
- _responseSize = 1;
- }
- else
- {
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject());
- }
- WriteObject(result.AddMultipleTypeNameIntoPSObject());
- _responseSize = 2;
- }
- }
+ WriteObject(result, false);
}
}
}
diff --git a/generated/Communication/EmailService.Autorest/generated/cmdlets/UpdateAzEmailServiceDomain_UpdateViaIdentityExpanded.cs b/generated/Communication/EmailService.Autorest/generated/cmdlets/UpdateAzEmailServiceDomain_UpdateViaIdentityExpanded.cs
index b2a32da258bd..72d5bc6ec599 100644
--- a/generated/Communication/EmailService.Autorest/generated/cmdlets/UpdateAzEmailServiceDomain_UpdateViaIdentityExpanded.cs
+++ b/generated/Communication/EmailService.Autorest/generated/cmdlets/UpdateAzEmailServiceDomain_UpdateViaIdentityExpanded.cs
@@ -40,18 +40,9 @@ public partial class UpdateAzEmailServiceDomain_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 class that describes the PATCH request parameters of a Domains resource.
private Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IUpdateDomainRequestParameters _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.UpdateDomainRequestParameters();
- ///
- /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object.
- /// Two means multiple returned objects in response.
- ///
- private int _responseSize = 0;
-
/// when specified, runs this cmdlet as a PowerShell job
[global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")]
[global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
@@ -233,11 +224,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EmailService.Cmdlets.UpdateAzEmailServ
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EmailService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
if (telemetryInfo != null)
{
@@ -577,24 +563,7 @@ public UpdateAzEmailServiceDomain_UpdateViaIdentityExpanded()
// onOk - response for 200 / application/json
// (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResource
var result = (await response);
- if (null != result)
- {
- if (0 == _responseSize)
- {
- _firstResponse = result;
- _responseSize = 1;
- }
- else
- {
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject());
- }
- WriteObject(result.AddMultipleTypeNameIntoPSObject());
- _responseSize = 2;
- }
- }
+ WriteObject(result, false);
}
}
}
diff --git a/generated/Communication/EmailService.Autorest/generated/cmdlets/UpdateAzEmailServiceDomain_UpdateViaJsonFilePath.cs b/generated/Communication/EmailService.Autorest/generated/cmdlets/UpdateAzEmailServiceDomain_UpdateViaJsonFilePath.cs
index efc1a64caae9..a16cd1619c7c 100644
--- a/generated/Communication/EmailService.Autorest/generated/cmdlets/UpdateAzEmailServiceDomain_UpdateViaJsonFilePath.cs
+++ b/generated/Communication/EmailService.Autorest/generated/cmdlets/UpdateAzEmailServiceDomain_UpdateViaJsonFilePath.cs
@@ -41,17 +41,8 @@ public partial class UpdateAzEmailServiceDomain_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.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
@@ -278,11 +269,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EmailService.Cmdlets.UpdateAzEmailServ
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EmailService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
if (telemetryInfo != null)
{
@@ -598,24 +584,7 @@ public UpdateAzEmailServiceDomain_UpdateViaJsonFilePath()
// onOk - response for 200 / application/json
// (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResource
var result = (await response);
- if (null != result)
- {
- if (0 == _responseSize)
- {
- _firstResponse = result;
- _responseSize = 1;
- }
- else
- {
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject());
- }
- WriteObject(result.AddMultipleTypeNameIntoPSObject());
- _responseSize = 2;
- }
- }
+ WriteObject(result, false);
}
}
}
diff --git a/generated/Communication/EmailService.Autorest/generated/cmdlets/UpdateAzEmailServiceDomain_UpdateViaJsonString.cs b/generated/Communication/EmailService.Autorest/generated/cmdlets/UpdateAzEmailServiceDomain_UpdateViaJsonString.cs
index e27deb9f48bf..6e9499afb69d 100644
--- a/generated/Communication/EmailService.Autorest/generated/cmdlets/UpdateAzEmailServiceDomain_UpdateViaJsonString.cs
+++ b/generated/Communication/EmailService.Autorest/generated/cmdlets/UpdateAzEmailServiceDomain_UpdateViaJsonString.cs
@@ -41,15 +41,6 @@ public partial class UpdateAzEmailServiceDomain_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.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
@@ -276,11 +267,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EmailService.Cmdlets.UpdateAzEmailServ
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EmailService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
if (telemetryInfo != null)
{
@@ -596,24 +582,7 @@ public UpdateAzEmailServiceDomain_UpdateViaJsonString()
// onOk - response for 200 / application/json
// (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResource
var result = (await response);
- if (null != result)
- {
- if (0 == _responseSize)
- {
- _firstResponse = result;
- _responseSize = 1;
- }
- else
- {
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject());
- }
- WriteObject(result.AddMultipleTypeNameIntoPSObject());
- _responseSize = 2;
- }
- }
+ WriteObject(result, false);
}
}
}
diff --git a/generated/Communication/EmailService.Autorest/generated/cmdlets/UpdateAzEmailService_UpdateExpanded.cs b/generated/Communication/EmailService.Autorest/generated/cmdlets/UpdateAzEmailService_UpdateExpanded.cs
index 4d966eda973f..9d97c7300909 100644
--- a/generated/Communication/EmailService.Autorest/generated/cmdlets/UpdateAzEmailService_UpdateExpanded.cs
+++ b/generated/Communication/EmailService.Autorest/generated/cmdlets/UpdateAzEmailService_UpdateExpanded.cs
@@ -40,18 +40,9 @@ public partial class UpdateAzEmailService_UpdateExpanded : 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 class representing update parameters for EmailService resource.
private Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IEmailServiceResourceUpdate _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.EmailServiceResourceUpdate();
- ///
- /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object.
- /// Two means multiple returned objects in response.
- ///
- private int _responseSize = 0;
-
/// when specified, runs this cmdlet as a PowerShell job
[global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")]
[global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
@@ -264,11 +255,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EmailService.Cmdlets.UpdateAzEmailServ
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EmailService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
if (telemetryInfo != null)
{
@@ -584,24 +570,7 @@ public UpdateAzEmailService_UpdateExpanded()
// onOk - response for 200 / application/json
// (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IEmailServiceResource
var result = (await response);
- if (null != result)
- {
- if (0 == _responseSize)
- {
- _firstResponse = result;
- _responseSize = 1;
- }
- else
- {
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject());
- }
- WriteObject(result.AddMultipleTypeNameIntoPSObject());
- _responseSize = 2;
- }
- }
+ WriteObject(result, false);
}
}
}
diff --git a/generated/Communication/EmailService.Autorest/generated/cmdlets/UpdateAzEmailService_UpdateViaIdentityExpanded.cs b/generated/Communication/EmailService.Autorest/generated/cmdlets/UpdateAzEmailService_UpdateViaIdentityExpanded.cs
index a545c236d19b..c1f7573f364a 100644
--- a/generated/Communication/EmailService.Autorest/generated/cmdlets/UpdateAzEmailService_UpdateViaIdentityExpanded.cs
+++ b/generated/Communication/EmailService.Autorest/generated/cmdlets/UpdateAzEmailService_UpdateViaIdentityExpanded.cs
@@ -40,18 +40,9 @@ public partial class UpdateAzEmailService_UpdateViaIdentityExpanded : 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 class representing update parameters for EmailService resource.
private Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IEmailServiceResourceUpdate _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.EmailServiceResourceUpdate();
- ///
- /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object.
- /// Two means multiple returned objects in response.
- ///
- private int _responseSize = 0;
-
/// when specified, runs this cmdlet as a PowerShell job
[global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")]
[global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
@@ -221,11 +212,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EmailService.Cmdlets.UpdateAzEmailServ
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EmailService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
if (telemetryInfo != null)
{
@@ -561,24 +547,7 @@ public UpdateAzEmailService_UpdateViaIdentityExpanded()
// onOk - response for 200 / application/json
// (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IEmailServiceResource
var result = (await response);
- if (null != result)
- {
- if (0 == _responseSize)
- {
- _firstResponse = result;
- _responseSize = 1;
- }
- else
- {
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject());
- }
- WriteObject(result.AddMultipleTypeNameIntoPSObject());
- _responseSize = 2;
- }
- }
+ WriteObject(result, false);
}
}
}
diff --git a/generated/Communication/EmailService.Autorest/generated/cmdlets/UpdateAzEmailService_UpdateViaJsonFilePath.cs b/generated/Communication/EmailService.Autorest/generated/cmdlets/UpdateAzEmailService_UpdateViaJsonFilePath.cs
index f1b755fa032b..8ad3568a1391 100644
--- a/generated/Communication/EmailService.Autorest/generated/cmdlets/UpdateAzEmailService_UpdateViaJsonFilePath.cs
+++ b/generated/Communication/EmailService.Autorest/generated/cmdlets/UpdateAzEmailService_UpdateViaJsonFilePath.cs
@@ -41,17 +41,8 @@ public partial class UpdateAzEmailService_UpdateViaJsonFilePath : 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.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
@@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EmailService.Cmdlets.UpdateAzEmailServ
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EmailService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
if (telemetryInfo != null)
{
@@ -583,24 +569,7 @@ public UpdateAzEmailService_UpdateViaJsonFilePath()
// onOk - response for 200 / application/json
// (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IEmailServiceResource
var result = (await response);
- if (null != result)
- {
- if (0 == _responseSize)
- {
- _firstResponse = result;
- _responseSize = 1;
- }
- else
- {
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject());
- }
- WriteObject(result.AddMultipleTypeNameIntoPSObject());
- _responseSize = 2;
- }
- }
+ WriteObject(result, false);
}
}
}
diff --git a/generated/Communication/EmailService.Autorest/generated/cmdlets/UpdateAzEmailService_UpdateViaJsonString.cs b/generated/Communication/EmailService.Autorest/generated/cmdlets/UpdateAzEmailService_UpdateViaJsonString.cs
index 5a1043d73254..18b97bf004e0 100644
--- a/generated/Communication/EmailService.Autorest/generated/cmdlets/UpdateAzEmailService_UpdateViaJsonString.cs
+++ b/generated/Communication/EmailService.Autorest/generated/cmdlets/UpdateAzEmailService_UpdateViaJsonString.cs
@@ -41,15 +41,6 @@ public partial class UpdateAzEmailService_UpdateViaJsonString : 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.EmailService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.ParameterCategory.Runtime)]
@@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EmailService.Cmdlets.UpdateAzEmailServ
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EmailService.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
if (telemetryInfo != null)
{
@@ -581,24 +567,7 @@ public UpdateAzEmailService_UpdateViaJsonString()
// onOk - response for 200 / application/json
// (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IEmailServiceResource
var result = (await response);
- if (null != result)
- {
- if (0 == _responseSize)
- {
- _firstResponse = result;
- _responseSize = 1;
- }
- else
- {
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject());
- }
- WriteObject(result.AddMultipleTypeNameIntoPSObject());
- _responseSize = 2;
- }
- }
+ WriteObject(result, false);
}
}
}
diff --git a/generated/Communication/EmailService.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/Communication/EmailService.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs
index 0648f987d6fc..6f709f7f6d84 100644
--- a/generated/Communication/EmailService.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs
+++ b/generated/Communication/EmailService.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/Communication/EmailService.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/Communication/EmailService.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs
index a18209929ebc..044110e7aabd 100644
--- a/generated/Communication/EmailService.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs
+++ b/generated/Communication/EmailService.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs
@@ -216,6 +216,20 @@ public string GetProcessCustomAttributesAtRuntime()
{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.EmailService.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.EmailService.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.EmailService.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/Communication/EmailService.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/Communication/EmailService.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs
index 93b50ca4ac3a..80eb82b87395 100644
--- a/generated/Communication/EmailService.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs
+++ b/generated/Communication/EmailService.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